diff --git a/experimental/pedometer/classes.jar b/experimental/pedometer/classes.jar deleted file mode 100644 index c5462a88e..000000000 Binary files a/experimental/pedometer/classes.jar and /dev/null differ diff --git a/experimental/pedometer/example/android/build.gradle b/experimental/pedometer/example/android/build.gradle index 11f164c35..4c47d6997 100644 --- a/experimental/pedometer/example/android/build.gradle +++ b/experimental/pedometer/example/android/build.gradle @@ -26,7 +26,7 @@ subprojects { project.evaluationDependsOn(':app') } -task clean(type: Delete) { +tasks.register("clean", Delete) { delete rootProject.buildDir } diff --git a/experimental/pedometer/example/lib/steps_repo.dart b/experimental/pedometer/example/lib/steps_repo.dart index 22da6be3c..80a21e6b8 100644 --- a/experimental/pedometer/example/lib/steps_repo.dart +++ b/experimental/pedometer/example/lib/steps_repo.dart @@ -141,22 +141,19 @@ class _AndroidStepsRepo implements StepsRepo { final end = DateTime(now.year, now.month, now.day, h + 1).millisecondsSinceEpoch; final request = hc.AggregateRequest( - hc.Set.of1( - hc.AggregateMetric.type(hc.Long.type), - hc.StepsRecord.COUNT_TOTAL, - ), + {hc.StepsRecord.COUNT_TOTAL} + .toJSet(hc.AggregateMetric.type(jni.JLong.type)), hc.TimeRangeFilter.between( hc.Instant.ofEpochMilli(start), hc.Instant.ofEpochMilli(end), ), - hc.Set.of(jni.JObject.type), + jni.JSet.hash(jni.JObject.type), ); futures.add(client.aggregate(request)); } final data = await Future.wait(futures); return data.asMap().entries.map((entry) { - final stepsLong = - entry.value.get0(hc.Long.type, hc.StepsRecord.COUNT_TOTAL); + final stepsLong = entry.value.get0(hc.StepsRecord.COUNT_TOTAL); final steps = stepsLong.isNull ? 0 : stepsLong.intValue(); return Steps(entry.key.toString().padLeft(2, '0'), steps); }).toList(); diff --git a/experimental/pedometer/example/pubspec.yaml b/experimental/pedometer/example/pubspec.yaml index 1d44d6c09..e49693568 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.3.0 + jni: ^0.5.0 fl_chart: ^0.62.0 dev_dependencies: diff --git a/experimental/pedometer/jnigen.yaml b/experimental/pedometer/jnigen.yaml index f050cb3a3..9c412f691 100644 --- a/experimental/pedometer/jnigen.yaml +++ b/experimental/pedometer/jnigen.yaml @@ -1,10 +1,8 @@ android_sdk_config: add_gradle_deps: true + add_gradle_sources: true android_example: 'example/' -summarizer: - backend: asm - suspend_fun_to_async: true output: @@ -15,8 +13,6 @@ output: path: lib/health_connect.dart structure: single_file -class_path: - - 'classes.jar' classes: - 'androidx.health.connect.client.HealthConnectClient' - 'androidx.health.connect.client.PermissionController' @@ -26,8 +22,6 @@ classes: - 'android.content.Intent' - 'android.app.Activity' - 'java.time.Instant' - - 'java.lang.Long' - - 'java.util.Set' - 'androidx.health.connect.client.request' - 'androidx.health.connect.client.aggregate.AggregationResult' - 'androidx.health.connect.client.aggregate.AggregateMetric' diff --git a/experimental/pedometer/lib/health_connect.dart b/experimental/pedometer/lib/health_connect.dart index 292f4fda1..e4f80f29c 100644 --- a/experimental/pedometer/lib/health_connect.dart +++ b/experimental/pedometer/lib/health_connect.dart @@ -10,7 +10,9 @@ // ignore_for_file: overridden_fields // ignore_for_file: unnecessary_cast // ignore_for_file: unused_element +// ignore_for_file: unused_field // ignore_for_file: unused_import +// ignore_for_file: unused_shown_name import "dart:isolate" show ReceivePort; import "dart:ffi" as ffi; @@ -24,9 +26,8 @@ final ffi.Pointer Function(String sym) jniLookup = /// from: androidx.health.connect.client.HealthConnectClient class HealthConnectClient extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; HealthConnectClient.fromRef( jni.JObjectPtr ref, @@ -34,7 +35,6 @@ class HealthConnectClient extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $HealthConnectClientType(); - static final _get_Companion = jniLookup>( "get_HealthConnectClient__Companion") @@ -47,7 +47,10 @@ class HealthConnectClient extends jni.JObject { /// from: static public final java.lang.String DEFAULT_PROVIDER_PACKAGE_NAME static const DEFAULT_PROVIDER_PACKAGE_NAME = - "com.google.android.apps.healthdata"; + 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 _getPermissionController = jniLookup< ffi.NativeFunction< @@ -57,9 +60,10 @@ class HealthConnectClient extends jni.JObject { /// from: public abstract androidx.health.connect.client.PermissionController getPermissionController() /// The returned object must be deleted after use, by calling the `delete` method. - PermissionController getPermissionController() => - const $PermissionControllerType() - .fromRef(_getPermissionController(reference).object); + PermissionController getPermissionController() { + return const $PermissionControllerType() + .fromRef(_getPermissionController(reference).object); + } static final _insertRecords = jniLookup< ffi.NativeFunction< @@ -73,13 +77,15 @@ class HealthConnectClient extends jni.JObject { /// 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. - Future insertRecords(jni.JObject list) async { + Future insertRecords( + jni.JList list, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _insertRecords(reference, list.reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _insertRecords(reference, list.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); @@ -97,13 +103,15 @@ class HealthConnectClient extends jni.JObject { /// 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. - Future updateRecords(jni.JObject list) async { + Future updateRecords( + jni.JList list, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _updateRecords(reference, list.reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _updateRecords(reference, list.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); @@ -128,15 +136,18 @@ class HealthConnectClient extends jni.JObject { /// 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. Future deleteRecords( - jni.JObject kClass, jni.JObject list, jni.JObject list1) async { + jni.JObject kClass, + jni.JList list, + jni.JList list1, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _deleteRecords( - reference, kClass.reference, list.reference, list1.reference, $c) + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _deleteRecords(reference, kClass.reference, list.reference, list1.reference, + $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); @@ -157,14 +168,17 @@ class HealthConnectClient extends jni.JObject { /// 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. Future deleteRecords1( - jni.JObject kClass, TimeRangeFilter timeRangeFilter) async { + jni.JObject kClass, + TimeRangeFilter timeRangeFilter, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _deleteRecords1(reference, kClass.reference, timeRangeFilter.reference, $c) + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _deleteRecords1(reference, kClass.reference, timeRangeFilter.reference, + $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); @@ -183,14 +197,18 @@ class HealthConnectClient extends jni.JObject { /// 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. - Future readRecord( - jni.JObjType $T, jni.JObject kClass, jni.JString string) async { + Future readRecord<$T extends jni.JObject>( + jni.JObject kClass, + jni.JString string, { + required jni.JObjType<$T> T, + }) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _readRecord(reference, kClass.reference, string.reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _readRecord(reference, kClass.reference, string.reference, $c.reference) + .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); @@ -208,14 +226,19 @@ class HealthConnectClient extends jni.JObject { /// 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. - Future readRecords( - jni.JObjType $T, ReadRecordsRequest readRecordsRequest) async { + Future readRecords<$T extends jni.JObject>( + ReadRecordsRequest<$T> readRecordsRequest, { + jni.JObjType<$T>? T, + }) async { + T ??= jni.lowestCommonSuperType([ + (readRecordsRequest.$type as $ReadRecordsRequestType).T, + ]) as jni.JObjType<$T>; final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _readRecords(reference, readRecordsRequest.reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _readRecords(reference, readRecordsRequest.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); @@ -233,13 +256,15 @@ class HealthConnectClient extends jni.JObject { /// 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. - Future aggregate(AggregateRequest aggregateRequest) async { + Future aggregate( + AggregateRequest aggregateRequest, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _aggregate(reference, aggregateRequest.reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _aggregate(reference, aggregateRequest.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const $AggregationResultType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const $AggregationResultType().fromRef($o); @@ -256,19 +281,20 @@ class HealthConnectClient extends jni.JObject { /// 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. - Future aggregateGroupByDuration( - AggregateGroupByDurationRequest aggregateGroupByDurationRequest) async { + Future> aggregateGroupByDuration( + AggregateGroupByDurationRequest aggregateGroupByDurationRequest, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); _aggregateGroupByDuration( - reference, aggregateGroupByDurationRequest.reference, $c) + reference, aggregateGroupByDurationRequest.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); - final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + final $k = const jni.JListType(jni.JObjectType()).getClass().reference; + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } - return const jni.JObjectType().fromRef($o); + return const jni.JListType(jni.JObjectType()).fromRef($o); } static final _aggregateGroupByPeriod = jniLookup< @@ -282,19 +308,20 @@ class HealthConnectClient extends jni.JObject { /// 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. - Future aggregateGroupByPeriod( - AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest) async { + Future> aggregateGroupByPeriod( + AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); _aggregateGroupByPeriod( - reference, aggregateGroupByPeriodRequest.reference, $c) + reference, aggregateGroupByPeriodRequest.reference, $c.reference) .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); - final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + final $k = const jni.JListType(jni.JObjectType()).getClass().reference; + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } - return const jni.JObjectType().fromRef($o); + return const jni.JListType(jni.JObjectType()).fromRef($o); } static final _getChangesToken = jniLookup< @@ -309,18 +336,77 @@ class HealthConnectClient extends jni.JObject { /// 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. Future getChangesToken( - ChangesTokenRequest changesTokenRequest) async { + ChangesTokenRequest changesTokenRequest, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _getChangesToken(reference, changesTokenRequest.reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _getChangesToken(reference, changesTokenRequest.reference, $c.reference) + .object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JStringType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JStringType().fromRef($o); } + static final _registerForDataNotifications = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + "HealthConnectClient__registerForDataNotifications") + .asFunction< + jni.JniResult Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); + + /// from: public abstract java.lang.Object registerForDataNotifications(java.lang.String string, java.lang.Iterable iterable, kotlin.coroutines.Continuation continuation) + /// The returned object must be deleted after use, by calling the `delete` method. + Future registerForDataNotifications( + jni.JString string, + jni.JObject iterable, + ) async { + final $p = ReceivePort(); + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _registerForDataNotifications( + reference, string.reference, iterable.reference, $c.reference) + .object; + final $o = jni.JObjectPtr.fromAddress(await $p.first); + final $k = const jni.JObjectType().getClass().reference; + if (!jni.Jni.env.IsInstanceOf($o, $k)) { + throw "Failed"; + } + return const jni.JObjectType().fromRef($o); + } + + static final _unregisterFromDataNotifications = jniLookup< + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer, + ffi.Pointer, ffi.Pointer)>>( + "HealthConnectClient__unregisterFromDataNotifications") + .asFunction< + jni.JniResult Function(ffi.Pointer, ffi.Pointer, + 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. + Future unregisterFromDataNotifications( + jni.JString string, + ) async { + final $p = ReceivePort(); + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _unregisterFromDataNotifications(reference, string.reference, $c.reference) + .object; + final $o = jni.JObjectPtr.fromAddress(await $p.first); + final $k = const jni.JObjectType().getClass().reference; + if (!jni.Jni.env.IsInstanceOf($o, $k)) { + throw "Failed"; + } + return const jni.JObjectType().fromRef($o); + } + static final _getChanges = jniLookup< ffi.NativeFunction< jni.JniResult Function( @@ -333,13 +419,15 @@ class HealthConnectClient extends jni.JObject { /// 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. - Future getChanges(jni.JString string) async { + Future getChanges( + jni.JString string, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _getChanges(reference, string.reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _getChanges(reference, string.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); @@ -354,8 +442,12 @@ class HealthConnectClient extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: static public boolean isAvailable(android.content.Context context, java.util.List list) - static bool isAvailable(Context context, jni.JObject list) => - _isAvailable(context.reference, list.reference).boolean; + static bool isAvailable( + Context context, + jni.JList list, + ) { + return _isAvailable(context.reference, list.reference).boolean; + } static final _getOrCreate = jniLookup< ffi.NativeFunction< @@ -367,9 +459,13 @@ class HealthConnectClient extends jni.JObject { /// 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. - static HealthConnectClient getOrCreate(Context context, jni.JObject list) => - const $HealthConnectClientType() - .fromRef(_getOrCreate(context.reference, list.reference).object); + static HealthConnectClient getOrCreate( + Context context, + jni.JList list, + ) { + return const $HealthConnectClientType() + .fromRef(_getOrCreate(context.reference, list.reference).object); + } static final _isAvailable1 = jniLookup< ffi.NativeFunction< @@ -378,8 +474,11 @@ class HealthConnectClient extends jni.JObject { .asFunction)>(); /// from: static public boolean isAvailable(android.content.Context context) - static bool isAvailable1(Context context) => - _isAvailable1(context.reference).boolean; + static bool isAvailable1( + Context context, + ) { + return _isAvailable1(context.reference).boolean; + } static final _getOrCreate1 = jniLookup< ffi.NativeFunction< @@ -389,9 +488,12 @@ class HealthConnectClient extends jni.JObject { /// 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. - static HealthConnectClient getOrCreate1(Context context) => - const $HealthConnectClientType() - .fromRef(_getOrCreate1(context.reference).object); + static HealthConnectClient getOrCreate1( + Context context, + ) { + return const $HealthConnectClientType() + .fromRef(_getOrCreate1(context.reference).object); + } } class $HealthConnectClientType extends jni.JObjType { @@ -404,24 +506,27 @@ class $HealthConnectClientType extends jni.JObjType { @override HealthConnectClient fromRef(jni.JObjectPtr ref) => HealthConnectClient.fromRef(ref); -} -extension $HealthConnectClientArray on jni.JArray { - HealthConnectClient operator [](int index) { - return (elementType as $HealthConnectClientType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($HealthConnectClientType).hashCode; - void operator []=(int index, HealthConnectClient value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($HealthConnectClientType) && + other is $HealthConnectClientType; } } /// from: androidx.health.connect.client.PermissionController class PermissionController extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; PermissionController.fromRef( jni.JObjectPtr ref, @@ -429,18 +534,15 @@ class PermissionController extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $PermissionControllerType(); + static final _get_Companion = + jniLookup>( + "get_PermissionController__Companion") + .asFunction(); - static final _createRequestPermissionActivityContract = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>( - "PermissionController__createRequestPermissionActivityContract") - .asFunction)>(); - - /// from: public abstract androidx.activity.result.contract.ActivityResultContract createRequestPermissionActivityContract() + /// from: static public final androidx.health.connect.client.PermissionController$Companion Companion /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject createRequestPermissionActivityContract() => - const jni.JObjectType() - .fromRef(_createRequestPermissionActivityContract(reference).object); + static jni.JObject get Companion => + const jni.JObjectType().fromRef(_get_Companion().object); static final _getGrantedPermissions = jniLookup< ffi.NativeFunction< @@ -453,16 +555,18 @@ class PermissionController extends jni.JObject { /// 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. - Future> getGrantedPermissions(Set set0) async { + Future> getGrantedPermissions( + jni.JSet set0, + ) async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _getGrantedPermissions(reference, set0.reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _getGrantedPermissions(reference, set0.reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); - final $k = const $SetType(jni.JObjectType()).getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + final $k = const jni.JSetType(jni.JObjectType()).getClass().reference; + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } - return const $SetType(jni.JObjectType()).fromRef($o); + return const jni.JSetType(jni.JObjectType()).fromRef($o); } static final _revokeAllPermissions = jniLookup< @@ -478,15 +582,42 @@ class PermissionController extends jni.JObject { /// The returned object must be deleted after use, by calling the `delete` method. Future revokeAllPermissions() async { final $p = ReceivePort(); - final $c = jni.Jni.newPortContinuation($p); - _revokeAllPermissions(reference, $c).object; + final $c = jni.JObject.fromRef(jni.Jni.newPortContinuation($p)); + _revokeAllPermissions(reference, $c.reference).object; final $o = jni.JObjectPtr.fromAddress(await $p.first); final $k = const jni.JObjectType().getClass().reference; - if (jni.Jni.env.IsInstanceOf($o, $k) == 0) { + if (!jni.Jni.env.IsInstanceOf($o, $k)) { throw "Failed"; } return const jni.JObjectType().fromRef($o); } + + static final _createRequestPermissionResultContract = jniLookup< + ffi.NativeFunction< + jni.JniResult Function(ffi.Pointer)>>( + "PermissionController__createRequestPermissionResultContract") + .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. + static jni.JObject createRequestPermissionResultContract( + jni.JString string, + ) { + return const jni.JObjectType().fromRef( + _createRequestPermissionResultContract(string.reference).object); + } + + static final _createRequestPermissionResultContract1 = + jniLookup>( + "PermissionController__createRequestPermissionResultContract1") + .asFunction(); + + /// from: static public androidx.activity.result.contract.ActivityResultContract createRequestPermissionResultContract() + /// The returned object must be deleted after use, by calling the `delete` method. + static jni.JObject createRequestPermissionResultContract1() { + return const jni.JObjectType() + .fromRef(_createRequestPermissionResultContract1().object); + } } class $PermissionControllerType extends jni.JObjType { @@ -499,24 +630,27 @@ class $PermissionControllerType extends jni.JObjType { @override PermissionController fromRef(jni.JObjectPtr ref) => PermissionController.fromRef(ref); -} -extension $PermissionControllerArray on jni.JArray { - PermissionController operator [](int index) { - return (elementType as $PermissionControllerType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); - void operator []=(int index, PermissionController value) { - (this as jni.JArray)[index] = value; + @override + final superCount = 1; + + @override + int get hashCode => ($PermissionControllerType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($PermissionControllerType) && + other is $PermissionControllerType; } } /// from: androidx.health.connect.client.records.StepsRecord class StepsRecord extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; StepsRecord.fromRef( jni.JObjectPtr ref, @@ -524,7 +658,6 @@ class StepsRecord extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $StepsRecordType(); - static final _get_Companion = jniLookup>( "get_StepsRecord__Companion") @@ -542,8 +675,8 @@ class StepsRecord extends jni.JObject { /// 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. - static AggregateMetric get COUNT_TOTAL => - const $AggregateMetricType($LongType()) + static AggregateMetric get COUNT_TOTAL => + const $AggregateMetricType(jni.JLongType()) .fromRef(_get_COUNT_TOTAL().object); static final _ctor = jniLookup< @@ -565,11 +698,19 @@ 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) - StepsRecord(int j, Instant instant, jni.JObject zoneOffset, Instant instant1, - jni.JObject zoneOffset1, jni.JObject metadata) - : super.fromRef(_ctor(j, instant.reference, zoneOffset.reference, - instant1.reference, zoneOffset1.reference, metadata.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory StepsRecord( + int j, + Instant instant, + jni.JObject zoneOffset, + Instant instant1, + jni.JObject zoneOffset1, + jni.JObject metadata, + ) { + return StepsRecord.fromRef(_ctor(j, instant.reference, zoneOffset.reference, + instant1.reference, zoneOffset1.reference, metadata.reference) + .object); + } static final _ctor1 = jniLookup< ffi.NativeFunction< @@ -594,25 +735,28 @@ 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) - StepsRecord.ctor1( - int j, - Instant instant, - jni.JObject zoneOffset, - Instant instant1, - jni.JObject zoneOffset1, - jni.JObject metadata, - int i, - jni.JObject defaultConstructorMarker) - : super.fromRef(_ctor1( - j, - instant.reference, - zoneOffset.reference, - instant1.reference, - zoneOffset1.reference, - metadata.reference, - i, - defaultConstructorMarker.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory StepsRecord.ctor1( + int j, + Instant instant, + jni.JObject zoneOffset, + Instant instant1, + jni.JObject zoneOffset1, + jni.JObject metadata, + int i, + jni.JObject defaultConstructorMarker, + ) { + return StepsRecord.fromRef(_ctor1( + j, + instant.reference, + zoneOffset.reference, + instant1.reference, + zoneOffset1.reference, + metadata.reference, + i, + defaultConstructorMarker.reference) + .object); + } static final _getCount = jniLookup< ffi.NativeFunction< @@ -621,7 +765,9 @@ class StepsRecord extends jni.JObject { .asFunction)>(); /// from: public final long getCount() - int getCount() => _getCount(reference).long; + int getCount() { + return _getCount(reference).long; + } static final _getStartTime = jniLookup< ffi.NativeFunction< @@ -631,8 +777,9 @@ class StepsRecord extends jni.JObject { /// from: public java.time.Instant getStartTime() /// The returned object must be deleted after use, by calling the `delete` method. - Instant getStartTime() => - const $InstantType().fromRef(_getStartTime(reference).object); + Instant getStartTime() { + return const $InstantType().fromRef(_getStartTime(reference).object); + } static final _getStartZoneOffset = jniLookup< ffi.NativeFunction< @@ -642,8 +789,10 @@ class StepsRecord extends jni.JObject { /// from: public java.time.ZoneOffset getStartZoneOffset() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getStartZoneOffset() => - const jni.JObjectType().fromRef(_getStartZoneOffset(reference).object); + jni.JObject getStartZoneOffset() { + return const jni.JObjectType() + .fromRef(_getStartZoneOffset(reference).object); + } static final _getEndTime = jniLookup< ffi.NativeFunction< @@ -653,8 +802,9 @@ class StepsRecord extends jni.JObject { /// from: public java.time.Instant getEndTime() /// The returned object must be deleted after use, by calling the `delete` method. - Instant getEndTime() => - const $InstantType().fromRef(_getEndTime(reference).object); + Instant getEndTime() { + return const $InstantType().fromRef(_getEndTime(reference).object); + } static final _getEndZoneOffset = jniLookup< ffi.NativeFunction< @@ -664,8 +814,9 @@ class StepsRecord extends jni.JObject { /// from: public java.time.ZoneOffset getEndZoneOffset() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getEndZoneOffset() => - const jni.JObjectType().fromRef(_getEndZoneOffset(reference).object); + jni.JObject getEndZoneOffset() { + return const jni.JObjectType().fromRef(_getEndZoneOffset(reference).object); + } static final _getMetadata = jniLookup< ffi.NativeFunction< @@ -675,8 +826,9 @@ class StepsRecord extends jni.JObject { /// from: public androidx.health.connect.client.records.metadata.Metadata getMetadata() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getMetadata() => - const jni.JObjectType().fromRef(_getMetadata(reference).object); + jni.JObject getMetadata() { + return const jni.JObjectType().fromRef(_getMetadata(reference).object); + } static final _equals1 = jniLookup< ffi.NativeFunction< @@ -687,8 +839,11 @@ class StepsRecord extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean equals(java.lang.Object object) - bool equals1(jni.JObject object) => - _equals1(reference, object.reference).boolean; + bool equals1( + jni.JObject object, + ) { + return _equals1(reference, object.reference).boolean; + } static final _hashCode1 = jniLookup< ffi.NativeFunction< @@ -697,7 +852,9 @@ class StepsRecord extends jni.JObject { .asFunction)>(); /// from: public int hashCode() - int hashCode1() => _hashCode1(reference).integer; + int hashCode1() { + return _hashCode1(reference).integer; + } } class $StepsRecordType extends jni.JObjType { @@ -709,24 +866,26 @@ class $StepsRecordType extends jni.JObjType { @override StepsRecord fromRef(jni.JObjectPtr ref) => StepsRecord.fromRef(ref); -} -extension $StepsRecordArray on jni.JArray { - StepsRecord operator [](int index) { - return (elementType as $StepsRecordType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($StepsRecordType).hashCode; - void operator []=(int index, StepsRecord value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($StepsRecordType) && other is $StepsRecordType; } } /// from: androidx.health.connect.client.time.TimeRangeFilter$Companion class TimeRangeFilter_Companion extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; TimeRangeFilter_Companion.fromRef( jni.JObjectPtr ref, @@ -734,7 +893,6 @@ class TimeRangeFilter_Companion extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $TimeRangeFilter_CompanionType(); - static final _between = jniLookup< ffi.NativeFunction< jni.JniResult Function( @@ -747,9 +905,13 @@ class TimeRangeFilter_Companion extends jni.JObject { /// 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. - TimeRangeFilter between(Instant instant, Instant instant1) => - const $TimeRangeFilterType().fromRef( - _between(reference, instant.reference, instant1.reference).object); + TimeRangeFilter between( + Instant instant, + Instant instant1, + ) { + return const $TimeRangeFilterType().fromRef( + _between(reference, instant.reference, instant1.reference).object); + } static final _between1 = jniLookup< ffi.NativeFunction< @@ -763,10 +925,13 @@ class TimeRangeFilter_Companion extends jni.JObject { /// 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. TimeRangeFilter between1( - jni.JObject localDateTime, jni.JObject localDateTime1) => - const $TimeRangeFilterType().fromRef(_between1( - reference, localDateTime.reference, localDateTime1.reference) - .object); + jni.JObject localDateTime, + jni.JObject localDateTime1, + ) { + return const $TimeRangeFilterType().fromRef( + _between1(reference, localDateTime.reference, localDateTime1.reference) + .object); + } static final _before = jniLookup< ffi.NativeFunction< @@ -778,8 +943,12 @@ class TimeRangeFilter_Companion extends jni.JObject { /// 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. - TimeRangeFilter before(Instant instant) => const $TimeRangeFilterType() - .fromRef(_before(reference, instant.reference).object); + TimeRangeFilter before( + Instant instant, + ) { + return const $TimeRangeFilterType() + .fromRef(_before(reference, instant.reference).object); + } static final _before1 = jniLookup< ffi.NativeFunction< @@ -791,9 +960,12 @@ class TimeRangeFilter_Companion extends jni.JObject { /// 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. - TimeRangeFilter before1(jni.JObject localDateTime) => - const $TimeRangeFilterType() - .fromRef(_before1(reference, localDateTime.reference).object); + TimeRangeFilter before1( + jni.JObject localDateTime, + ) { + return const $TimeRangeFilterType() + .fromRef(_before1(reference, localDateTime.reference).object); + } static final _after = jniLookup< ffi.NativeFunction< @@ -805,8 +977,12 @@ class TimeRangeFilter_Companion extends jni.JObject { /// 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. - TimeRangeFilter after(Instant instant) => const $TimeRangeFilterType() - .fromRef(_after(reference, instant.reference).object); + TimeRangeFilter after( + Instant instant, + ) { + return const $TimeRangeFilterType() + .fromRef(_after(reference, instant.reference).object); + } static final _after1 = jniLookup< ffi.NativeFunction< @@ -818,9 +994,12 @@ class TimeRangeFilter_Companion extends jni.JObject { /// 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. - TimeRangeFilter after1(jni.JObject localDateTime) => - const $TimeRangeFilterType() - .fromRef(_after1(reference, localDateTime.reference).object); + TimeRangeFilter after1( + jni.JObject localDateTime, + ) { + return const $TimeRangeFilterType() + .fromRef(_after1(reference, localDateTime.reference).object); + } static final _ctor = jniLookup< ffi.NativeFunction< @@ -829,8 +1008,13 @@ class TimeRangeFilter_Companion extends jni.JObject { .asFunction)>(); /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - TimeRangeFilter_Companion(jni.JObject defaultConstructorMarker) - : super.fromRef(_ctor(defaultConstructorMarker.reference).object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory TimeRangeFilter_Companion( + jni.JObject defaultConstructorMarker, + ) { + return TimeRangeFilter_Companion.fromRef( + _ctor(defaultConstructorMarker.reference).object); + } } class $TimeRangeFilter_CompanionType @@ -844,25 +1028,27 @@ class $TimeRangeFilter_CompanionType @override TimeRangeFilter_Companion fromRef(jni.JObjectPtr ref) => TimeRangeFilter_Companion.fromRef(ref); -} -extension $TimeRangeFilter_CompanionArray - on jni.JArray { - TimeRangeFilter_Companion operator [](int index) { - return (elementType as $TimeRangeFilter_CompanionType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($TimeRangeFilter_CompanionType).hashCode; - void operator []=(int index, TimeRangeFilter_Companion value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($TimeRangeFilter_CompanionType) && + other is $TimeRangeFilter_CompanionType; } } /// from: androidx.health.connect.client.time.TimeRangeFilter class TimeRangeFilter extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; TimeRangeFilter.fromRef( jni.JObjectPtr ref, @@ -870,7 +1056,6 @@ class TimeRangeFilter extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $TimeRangeFilterType(); - static final _get_Companion = jniLookup>( "get_TimeRangeFilter__Companion") @@ -893,11 +1078,17 @@ class TimeRangeFilter extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.time.Instant instant, java.time.Instant instant1, java.time.LocalDateTime localDateTime, java.time.LocalDateTime localDateTime1) - TimeRangeFilter(Instant instant, Instant instant1, jni.JObject localDateTime, - jni.JObject localDateTime1) - : super.fromRef(_ctor(instant.reference, instant1.reference, - localDateTime.reference, localDateTime1.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory TimeRangeFilter( + Instant instant, + Instant instant1, + jni.JObject localDateTime, + jni.JObject localDateTime1, + ) { + return TimeRangeFilter.fromRef(_ctor(instant.reference, instant1.reference, + localDateTime.reference, localDateTime1.reference) + .object); + } static final _ctor1 = jniLookup< ffi.NativeFunction< @@ -918,21 +1109,24 @@ 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) - TimeRangeFilter.ctor1( - Instant instant, - Instant instant1, - jni.JObject localDateTime, - jni.JObject localDateTime1, - int i, - jni.JObject defaultConstructorMarker) - : super.fromRef(_ctor1( - instant.reference, - instant1.reference, - localDateTime.reference, - localDateTime1.reference, - i, - defaultConstructorMarker.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory TimeRangeFilter.ctor1( + Instant instant, + Instant instant1, + jni.JObject localDateTime, + jni.JObject localDateTime1, + int i, + jni.JObject defaultConstructorMarker, + ) { + return TimeRangeFilter.fromRef(_ctor1( + instant.reference, + instant1.reference, + localDateTime.reference, + localDateTime1.reference, + i, + defaultConstructorMarker.reference) + .object); + } static final _equals1 = jniLookup< ffi.NativeFunction< @@ -943,8 +1137,11 @@ class TimeRangeFilter extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean equals(java.lang.Object object) - bool equals1(jni.JObject object) => - _equals1(reference, object.reference).boolean; + bool equals1( + jni.JObject object, + ) { + return _equals1(reference, object.reference).boolean; + } static final _hashCode1 = jniLookup< ffi.NativeFunction< @@ -953,14 +1150,19 @@ class TimeRangeFilter extends jni.JObject { .asFunction)>(); /// from: public int hashCode() - int hashCode1() => _hashCode1(reference).integer; + int hashCode1() { + return _hashCode1(reference).integer; + } static final _ctor2 = jniLookup>( "TimeRangeFilter__ctor2") .asFunction(); /// from: public void () - TimeRangeFilter.ctor2() : super.fromRef(_ctor2().object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory TimeRangeFilter.ctor2() { + return TimeRangeFilter.fromRef(_ctor2().object); + } static final _between = jniLookup< ffi.NativeFunction< @@ -972,9 +1174,13 @@ class TimeRangeFilter extends jni.JObject { /// 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. - static TimeRangeFilter between(Instant instant, Instant instant1) => - const $TimeRangeFilterType() - .fromRef(_between(instant.reference, instant1.reference).object); + static TimeRangeFilter between( + Instant instant, + Instant instant1, + ) { + return const $TimeRangeFilterType() + .fromRef(_between(instant.reference, instant1.reference).object); + } static final _between1 = jniLookup< ffi.NativeFunction< @@ -987,9 +1193,12 @@ class TimeRangeFilter extends jni.JObject { /// 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. static TimeRangeFilter between1( - jni.JObject localDateTime, jni.JObject localDateTime1) => - const $TimeRangeFilterType().fromRef( - _between1(localDateTime.reference, localDateTime1.reference).object); + jni.JObject localDateTime, + jni.JObject localDateTime1, + ) { + return const $TimeRangeFilterType().fromRef( + _between1(localDateTime.reference, localDateTime1.reference).object); + } static final _before = jniLookup< ffi.NativeFunction< @@ -999,8 +1208,12 @@ class TimeRangeFilter extends jni.JObject { /// 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. - static TimeRangeFilter before(Instant instant) => - const $TimeRangeFilterType().fromRef(_before(instant.reference).object); + static TimeRangeFilter before( + Instant instant, + ) { + return const $TimeRangeFilterType() + .fromRef(_before(instant.reference).object); + } static final _before1 = jniLookup< ffi.NativeFunction< @@ -1010,9 +1223,12 @@ class TimeRangeFilter extends jni.JObject { /// 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. - static TimeRangeFilter before1(jni.JObject localDateTime) => - const $TimeRangeFilterType() - .fromRef(_before1(localDateTime.reference).object); + static TimeRangeFilter before1( + jni.JObject localDateTime, + ) { + return const $TimeRangeFilterType() + .fromRef(_before1(localDateTime.reference).object); + } static final _after = jniLookup< ffi.NativeFunction< @@ -1022,8 +1238,12 @@ class TimeRangeFilter extends jni.JObject { /// 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. - static TimeRangeFilter after(Instant instant) => - const $TimeRangeFilterType().fromRef(_after(instant.reference).object); + static TimeRangeFilter after( + Instant instant, + ) { + return const $TimeRangeFilterType() + .fromRef(_after(instant.reference).object); + } static final _after1 = jniLookup< ffi.NativeFunction< @@ -1033,9 +1253,12 @@ class TimeRangeFilter extends jni.JObject { /// 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. - static TimeRangeFilter after1(jni.JObject localDateTime) => - const $TimeRangeFilterType() - .fromRef(_after1(localDateTime.reference).object); + static TimeRangeFilter after1( + jni.JObject localDateTime, + ) { + return const $TimeRangeFilterType() + .fromRef(_after1(localDateTime.reference).object); + } } class $TimeRangeFilterType extends jni.JObjType { @@ -1047,24 +1270,27 @@ class $TimeRangeFilterType extends jni.JObjType { @override TimeRangeFilter fromRef(jni.JObjectPtr ref) => TimeRangeFilter.fromRef(ref); -} -extension $TimeRangeFilterArray on jni.JArray { - TimeRangeFilter operator [](int index) { - return (elementType as $TimeRangeFilterType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($TimeRangeFilterType).hashCode; - void operator []=(int index, TimeRangeFilter value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($TimeRangeFilterType) && + other is $TimeRangeFilterType; } } /// from: android.content.Context class Context extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; Context.fromRef( jni.JObjectPtr ref, @@ -1074,31 +1300,31 @@ class Context extends jni.JObject { static const type = $ContextType(); /// from: static public final java.lang.String ACCESSIBILITY_SERVICE - static const ACCESSIBILITY_SERVICE = "accessibility"; + static const ACCESSIBILITY_SERVICE = r"""accessibility"""; /// from: static public final java.lang.String ACCOUNT_SERVICE - static const ACCOUNT_SERVICE = "account"; + static const ACCOUNT_SERVICE = r"""account"""; /// from: static public final java.lang.String ACTIVITY_SERVICE - static const ACTIVITY_SERVICE = "activity"; + static const ACTIVITY_SERVICE = r"""activity"""; /// from: static public final java.lang.String ALARM_SERVICE - static const ALARM_SERVICE = "alarm"; + static const ALARM_SERVICE = r"""alarm"""; /// from: static public final java.lang.String APPWIDGET_SERVICE - static const APPWIDGET_SERVICE = "appwidget"; + static const APPWIDGET_SERVICE = r"""appwidget"""; /// from: static public final java.lang.String APP_OPS_SERVICE - static const APP_OPS_SERVICE = "appops"; + static const APP_OPS_SERVICE = r"""appops"""; /// from: static public final java.lang.String APP_SEARCH_SERVICE - static const APP_SEARCH_SERVICE = "app_search"; + static const APP_SEARCH_SERVICE = r"""app_search"""; /// from: static public final java.lang.String AUDIO_SERVICE - static const AUDIO_SERVICE = "audio"; + static const AUDIO_SERVICE = r"""audio"""; /// from: static public final java.lang.String BATTERY_SERVICE - static const BATTERY_SERVICE = "batterymanager"; + static const BATTERY_SERVICE = r"""batterymanager"""; /// from: static public final int BIND_ABOVE_CLIENT static const BIND_ABOVE_CLIENT = 8; @@ -1134,40 +1360,41 @@ class Context extends jni.JObject { static const BIND_WAIVE_PRIORITY = 32; /// from: static public final java.lang.String BIOMETRIC_SERVICE - static const BIOMETRIC_SERVICE = "biometric"; + static const BIOMETRIC_SERVICE = r"""biometric"""; /// from: static public final java.lang.String BLOB_STORE_SERVICE - static const BLOB_STORE_SERVICE = "blob_store"; + static const BLOB_STORE_SERVICE = r"""blob_store"""; /// from: static public final java.lang.String BLUETOOTH_SERVICE - static const BLUETOOTH_SERVICE = "bluetooth"; + static const BLUETOOTH_SERVICE = r"""bluetooth"""; /// from: static public final java.lang.String BUGREPORT_SERVICE - static const BUGREPORT_SERVICE = "bugreport"; + static const BUGREPORT_SERVICE = r"""bugreport"""; /// from: static public final java.lang.String CAMERA_SERVICE - static const CAMERA_SERVICE = "camera"; + static const CAMERA_SERVICE = r"""camera"""; /// from: static public final java.lang.String CAPTIONING_SERVICE - static const CAPTIONING_SERVICE = "captioning"; + static const CAPTIONING_SERVICE = r"""captioning"""; /// from: static public final java.lang.String CARRIER_CONFIG_SERVICE - static const CARRIER_CONFIG_SERVICE = "carrier_config"; + static const CARRIER_CONFIG_SERVICE = r"""carrier_config"""; /// from: static public final java.lang.String CLIPBOARD_SERVICE - static const CLIPBOARD_SERVICE = "clipboard"; + static const CLIPBOARD_SERVICE = r"""clipboard"""; /// from: static public final java.lang.String COMPANION_DEVICE_SERVICE - static const COMPANION_DEVICE_SERVICE = "companiondevice"; + static const COMPANION_DEVICE_SERVICE = r"""companiondevice"""; /// from: static public final java.lang.String CONNECTIVITY_DIAGNOSTICS_SERVICE - static const CONNECTIVITY_DIAGNOSTICS_SERVICE = "connectivity_diagnostics"; + static const CONNECTIVITY_DIAGNOSTICS_SERVICE = + r"""connectivity_diagnostics"""; /// from: static public final java.lang.String CONNECTIVITY_SERVICE - static const CONNECTIVITY_SERVICE = "connectivity"; + static const CONNECTIVITY_SERVICE = r"""connectivity"""; /// from: static public final java.lang.String CONSUMER_IR_SERVICE - static const CONSUMER_IR_SERVICE = "consumer_ir"; + static const CONSUMER_IR_SERVICE = r"""consumer_ir"""; /// from: static public final int CONTEXT_IGNORE_SECURITY static const CONTEXT_IGNORE_SECURITY = 2; @@ -1179,85 +1406,85 @@ class Context extends jni.JObject { static const CONTEXT_RESTRICTED = 4; /// from: static public final java.lang.String CROSS_PROFILE_APPS_SERVICE - static const CROSS_PROFILE_APPS_SERVICE = "crossprofileapps"; + static const CROSS_PROFILE_APPS_SERVICE = r"""crossprofileapps"""; /// from: static public final java.lang.String DEVICE_POLICY_SERVICE - static const DEVICE_POLICY_SERVICE = "device_policy"; + static const DEVICE_POLICY_SERVICE = r"""device_policy"""; /// from: static public final java.lang.String DISPLAY_HASH_SERVICE - static const DISPLAY_HASH_SERVICE = "display_hash"; + static const DISPLAY_HASH_SERVICE = r"""display_hash"""; /// from: static public final java.lang.String DISPLAY_SERVICE - static const DISPLAY_SERVICE = "display"; + static const DISPLAY_SERVICE = r"""display"""; /// from: static public final java.lang.String DOMAIN_VERIFICATION_SERVICE - static const DOMAIN_VERIFICATION_SERVICE = "domain_verification"; + static const DOMAIN_VERIFICATION_SERVICE = r"""domain_verification"""; /// from: static public final java.lang.String DOWNLOAD_SERVICE - static const DOWNLOAD_SERVICE = "download"; + static const DOWNLOAD_SERVICE = r"""download"""; /// from: static public final java.lang.String DROPBOX_SERVICE - static const DROPBOX_SERVICE = "dropbox"; + static const DROPBOX_SERVICE = r"""dropbox"""; /// from: static public final java.lang.String EUICC_SERVICE - static const EUICC_SERVICE = "euicc"; + static const EUICC_SERVICE = r"""euicc"""; /// from: static public final java.lang.String FILE_INTEGRITY_SERVICE - static const FILE_INTEGRITY_SERVICE = "file_integrity"; + static const FILE_INTEGRITY_SERVICE = r"""file_integrity"""; /// from: static public final java.lang.String FINGERPRINT_SERVICE - static const FINGERPRINT_SERVICE = "fingerprint"; + static const FINGERPRINT_SERVICE = r"""fingerprint"""; /// from: static public final java.lang.String GAME_SERVICE - static const GAME_SERVICE = "game"; + static const GAME_SERVICE = r"""game"""; /// from: static public final java.lang.String HARDWARE_PROPERTIES_SERVICE - static const HARDWARE_PROPERTIES_SERVICE = "hardware_properties"; + static const HARDWARE_PROPERTIES_SERVICE = r"""hardware_properties"""; /// from: static public final java.lang.String INPUT_METHOD_SERVICE - static const INPUT_METHOD_SERVICE = "input_method"; + static const INPUT_METHOD_SERVICE = r"""input_method"""; /// from: static public final java.lang.String INPUT_SERVICE - static const INPUT_SERVICE = "input"; + static const INPUT_SERVICE = r"""input"""; /// from: static public final java.lang.String IPSEC_SERVICE - static const IPSEC_SERVICE = "ipsec"; + static const IPSEC_SERVICE = r"""ipsec"""; /// from: static public final java.lang.String JOB_SCHEDULER_SERVICE - static const JOB_SCHEDULER_SERVICE = "jobscheduler"; + static const JOB_SCHEDULER_SERVICE = r"""jobscheduler"""; /// from: static public final java.lang.String KEYGUARD_SERVICE - static const KEYGUARD_SERVICE = "keyguard"; + static const KEYGUARD_SERVICE = r"""keyguard"""; /// from: static public final java.lang.String LAUNCHER_APPS_SERVICE - static const LAUNCHER_APPS_SERVICE = "launcherapps"; + static const LAUNCHER_APPS_SERVICE = r"""launcherapps"""; /// from: static public final java.lang.String LAYOUT_INFLATER_SERVICE - static const LAYOUT_INFLATER_SERVICE = "layout_inflater"; + static const LAYOUT_INFLATER_SERVICE = r"""layout_inflater"""; /// from: static public final java.lang.String LOCALE_SERVICE - static const LOCALE_SERVICE = "locale"; + static const LOCALE_SERVICE = r"""locale"""; /// from: static public final java.lang.String LOCATION_SERVICE - static const LOCATION_SERVICE = "location"; + static const LOCATION_SERVICE = r"""location"""; /// from: static public final java.lang.String MEDIA_COMMUNICATION_SERVICE - static const MEDIA_COMMUNICATION_SERVICE = "media_communication"; + static const MEDIA_COMMUNICATION_SERVICE = r"""media_communication"""; /// from: static public final java.lang.String MEDIA_METRICS_SERVICE - static const MEDIA_METRICS_SERVICE = "media_metrics"; + static const MEDIA_METRICS_SERVICE = r"""media_metrics"""; /// from: static public final java.lang.String MEDIA_PROJECTION_SERVICE - static const MEDIA_PROJECTION_SERVICE = "media_projection"; + static const MEDIA_PROJECTION_SERVICE = r"""media_projection"""; /// from: static public final java.lang.String MEDIA_ROUTER_SERVICE - static const MEDIA_ROUTER_SERVICE = "media_router"; + static const MEDIA_ROUTER_SERVICE = r"""media_router"""; /// from: static public final java.lang.String MEDIA_SESSION_SERVICE - static const MEDIA_SESSION_SERVICE = "media_session"; + static const MEDIA_SESSION_SERVICE = r"""media_session"""; /// from: static public final java.lang.String MIDI_SERVICE - static const MIDI_SERVICE = "midi"; + static const MIDI_SERVICE = r"""midi"""; /// from: static public final int MODE_APPEND static const MODE_APPEND = 32768; @@ -1281,28 +1508,28 @@ class Context extends jni.JObject { static const MODE_WORLD_WRITEABLE = 2; /// from: static public final java.lang.String NETWORK_STATS_SERVICE - static const NETWORK_STATS_SERVICE = "netstats"; + static const NETWORK_STATS_SERVICE = r"""netstats"""; /// from: static public final java.lang.String NFC_SERVICE - static const NFC_SERVICE = "nfc"; + static const NFC_SERVICE = r"""nfc"""; /// from: static public final java.lang.String NOTIFICATION_SERVICE - static const NOTIFICATION_SERVICE = "notification"; + static const NOTIFICATION_SERVICE = r"""notification"""; /// from: static public final java.lang.String NSD_SERVICE - static const NSD_SERVICE = "servicediscovery"; + static const NSD_SERVICE = r"""servicediscovery"""; /// from: static public final java.lang.String PEOPLE_SERVICE - static const PEOPLE_SERVICE = "people"; + static const PEOPLE_SERVICE = r"""people"""; /// from: static public final java.lang.String PERFORMANCE_HINT_SERVICE - static const PERFORMANCE_HINT_SERVICE = "performance_hint"; + static const PERFORMANCE_HINT_SERVICE = r"""performance_hint"""; /// from: static public final java.lang.String POWER_SERVICE - static const POWER_SERVICE = "power"; + static const POWER_SERVICE = r"""power"""; /// from: static public final java.lang.String PRINT_SERVICE - static const PRINT_SERVICE = "print"; + static const PRINT_SERVICE = r"""print"""; /// from: static public final int RECEIVER_EXPORTED static const RECEIVER_EXPORTED = 2; @@ -1314,102 +1541,105 @@ class Context extends jni.JObject { static const RECEIVER_VISIBLE_TO_INSTANT_APPS = 1; /// from: static public final java.lang.String RESTRICTIONS_SERVICE - static const RESTRICTIONS_SERVICE = "restrictions"; + static const RESTRICTIONS_SERVICE = r"""restrictions"""; /// from: static public final java.lang.String ROLE_SERVICE - static const ROLE_SERVICE = "role"; + static const ROLE_SERVICE = r"""role"""; /// from: static public final java.lang.String SEARCH_SERVICE - static const SEARCH_SERVICE = "search"; + static const SEARCH_SERVICE = r"""search"""; /// from: static public final java.lang.String SENSOR_SERVICE - static const SENSOR_SERVICE = "sensor"; + static const SENSOR_SERVICE = r"""sensor"""; /// from: static public final java.lang.String SHORTCUT_SERVICE - static const SHORTCUT_SERVICE = "shortcut"; + static const SHORTCUT_SERVICE = r"""shortcut"""; /// from: static public final java.lang.String STATUS_BAR_SERVICE - static const STATUS_BAR_SERVICE = "statusbar"; + static const STATUS_BAR_SERVICE = r"""statusbar"""; /// from: static public final java.lang.String STORAGE_SERVICE - static const STORAGE_SERVICE = "storage"; + static const STORAGE_SERVICE = r"""storage"""; /// from: static public final java.lang.String STORAGE_STATS_SERVICE - static const STORAGE_STATS_SERVICE = "storagestats"; + static const STORAGE_STATS_SERVICE = r"""storagestats"""; /// from: static public final java.lang.String SYSTEM_HEALTH_SERVICE - static const SYSTEM_HEALTH_SERVICE = "systemhealth"; + static const SYSTEM_HEALTH_SERVICE = r"""systemhealth"""; /// from: static public final java.lang.String TELECOM_SERVICE - static const TELECOM_SERVICE = "telecom"; + static const TELECOM_SERVICE = r"""telecom"""; /// from: static public final java.lang.String TELEPHONY_IMS_SERVICE - static const TELEPHONY_IMS_SERVICE = "telephony_ims"; + static const TELEPHONY_IMS_SERVICE = r"""telephony_ims"""; /// from: static public final java.lang.String TELEPHONY_SERVICE - static const TELEPHONY_SERVICE = "phone"; + static const TELEPHONY_SERVICE = r"""phone"""; /// from: static public final java.lang.String TELEPHONY_SUBSCRIPTION_SERVICE static const TELEPHONY_SUBSCRIPTION_SERVICE = - "telephony_subscription_service"; + r"""telephony_subscription_service"""; /// from: static public final java.lang.String TEXT_CLASSIFICATION_SERVICE - static const TEXT_CLASSIFICATION_SERVICE = "textclassification"; + static const TEXT_CLASSIFICATION_SERVICE = r"""textclassification"""; /// from: static public final java.lang.String TEXT_SERVICES_MANAGER_SERVICE - static const TEXT_SERVICES_MANAGER_SERVICE = "textservices"; + static const TEXT_SERVICES_MANAGER_SERVICE = r"""textservices"""; /// from: static public final java.lang.String TV_INPUT_SERVICE - static const TV_INPUT_SERVICE = "tv_input"; + static const TV_INPUT_SERVICE = r"""tv_input"""; /// from: static public final java.lang.String TV_INTERACTIVE_APP_SERVICE - static const TV_INTERACTIVE_APP_SERVICE = "tv_interactive_app"; + static const TV_INTERACTIVE_APP_SERVICE = r"""tv_interactive_app"""; /// from: static public final java.lang.String UI_MODE_SERVICE - static const UI_MODE_SERVICE = "uimode"; + static const UI_MODE_SERVICE = r"""uimode"""; /// from: static public final java.lang.String USAGE_STATS_SERVICE - static const USAGE_STATS_SERVICE = "usagestats"; + static const USAGE_STATS_SERVICE = r"""usagestats"""; /// from: static public final java.lang.String USB_SERVICE - static const USB_SERVICE = "usb"; + static const USB_SERVICE = r"""usb"""; /// from: static public final java.lang.String USER_SERVICE - static const USER_SERVICE = "user"; + static const USER_SERVICE = r"""user"""; /// from: static public final java.lang.String VIBRATOR_MANAGER_SERVICE - static const VIBRATOR_MANAGER_SERVICE = "vibrator_manager"; + static const VIBRATOR_MANAGER_SERVICE = r"""vibrator_manager"""; /// from: static public final java.lang.String VIBRATOR_SERVICE - static const VIBRATOR_SERVICE = "vibrator"; + static const VIBRATOR_SERVICE = r"""vibrator"""; /// from: static public final java.lang.String VPN_MANAGEMENT_SERVICE - static const VPN_MANAGEMENT_SERVICE = "vpn_management"; + static const VPN_MANAGEMENT_SERVICE = r"""vpn_management"""; /// from: static public final java.lang.String WALLPAPER_SERVICE - static const WALLPAPER_SERVICE = "wallpaper"; + static const WALLPAPER_SERVICE = r"""wallpaper"""; /// from: static public final java.lang.String WIFI_AWARE_SERVICE - static const WIFI_AWARE_SERVICE = "wifiaware"; + static const WIFI_AWARE_SERVICE = r"""wifiaware"""; /// from: static public final java.lang.String WIFI_P2P_SERVICE - static const WIFI_P2P_SERVICE = "wifip2p"; + static const WIFI_P2P_SERVICE = r"""wifip2p"""; /// from: static public final java.lang.String WIFI_RTT_RANGING_SERVICE - static const WIFI_RTT_RANGING_SERVICE = "wifirtt"; + static const WIFI_RTT_RANGING_SERVICE = r"""wifirtt"""; /// from: static public final java.lang.String WIFI_SERVICE - static const WIFI_SERVICE = "wifi"; + static const WIFI_SERVICE = r"""wifi"""; /// from: static public final java.lang.String WINDOW_SERVICE - static const WINDOW_SERVICE = "window"; + static const WINDOW_SERVICE = r"""window"""; static final _ctor = jniLookup>("Context__ctor") .asFunction(); /// from: public void () - Context() : super.fromRef(_ctor().object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory Context() { + return Context.fromRef(_ctor().object); + } static final _getAssets = jniLookup< ffi.NativeFunction< @@ -1419,8 +1649,9 @@ class Context extends jni.JObject { /// from: public abstract android.content.res.AssetManager getAssets() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getAssets() => - const jni.JObjectType().fromRef(_getAssets(reference).object); + jni.JObject getAssets() { + return const jni.JObjectType().fromRef(_getAssets(reference).object); + } static final _getResources = jniLookup< ffi.NativeFunction< @@ -1430,8 +1661,9 @@ class Context extends jni.JObject { /// from: public abstract android.content.res.Resources getResources() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getResources() => - const jni.JObjectType().fromRef(_getResources(reference).object); + jni.JObject getResources() { + return const jni.JObjectType().fromRef(_getResources(reference).object); + } static final _getPackageManager = jniLookup< ffi.NativeFunction< @@ -1441,8 +1673,10 @@ class Context extends jni.JObject { /// from: public abstract android.content.pm.PackageManager getPackageManager() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getPackageManager() => - const jni.JObjectType().fromRef(_getPackageManager(reference).object); + jni.JObject getPackageManager() { + return const jni.JObjectType() + .fromRef(_getPackageManager(reference).object); + } static final _getContentResolver = jniLookup< ffi.NativeFunction< @@ -1452,8 +1686,10 @@ class Context extends jni.JObject { /// from: public abstract android.content.ContentResolver getContentResolver() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getContentResolver() => - const jni.JObjectType().fromRef(_getContentResolver(reference).object); + jni.JObject getContentResolver() { + return const jni.JObjectType() + .fromRef(_getContentResolver(reference).object); + } static final _getMainLooper = jniLookup< ffi.NativeFunction< @@ -1463,8 +1699,9 @@ class Context extends jni.JObject { /// from: public abstract android.os.Looper getMainLooper() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getMainLooper() => - const jni.JObjectType().fromRef(_getMainLooper(reference).object); + jni.JObject getMainLooper() { + return const jni.JObjectType().fromRef(_getMainLooper(reference).object); + } static final _getMainExecutor = jniLookup< ffi.NativeFunction< @@ -1474,8 +1711,9 @@ class Context extends jni.JObject { /// from: public java.util.concurrent.Executor getMainExecutor() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getMainExecutor() => - const jni.JObjectType().fromRef(_getMainExecutor(reference).object); + jni.JObject getMainExecutor() { + return const jni.JObjectType().fromRef(_getMainExecutor(reference).object); + } static final _getApplicationContext = jniLookup< ffi.NativeFunction< @@ -1485,8 +1723,10 @@ class Context extends jni.JObject { /// from: public abstract android.content.Context getApplicationContext() /// The returned object must be deleted after use, by calling the `delete` method. - Context getApplicationContext() => - const $ContextType().fromRef(_getApplicationContext(reference).object); + Context getApplicationContext() { + return const $ContextType() + .fromRef(_getApplicationContext(reference).object); + } static final _registerComponentCallbacks = jniLookup< ffi.NativeFunction< @@ -1498,9 +1738,12 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void registerComponentCallbacks(android.content.ComponentCallbacks componentCallbacks) - void registerComponentCallbacks(jni.JObject componentCallbacks) => - _registerComponentCallbacks(reference, componentCallbacks.reference) - .check(); + void registerComponentCallbacks( + jni.JObject componentCallbacks, + ) { + return _registerComponentCallbacks(reference, componentCallbacks.reference) + .check(); + } static final _unregisterComponentCallbacks = jniLookup< ffi.NativeFunction< @@ -1512,9 +1755,13 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void unregisterComponentCallbacks(android.content.ComponentCallbacks componentCallbacks) - void unregisterComponentCallbacks(jni.JObject componentCallbacks) => - _unregisterComponentCallbacks(reference, componentCallbacks.reference) - .check(); + void unregisterComponentCallbacks( + jni.JObject componentCallbacks, + ) { + return _unregisterComponentCallbacks( + reference, componentCallbacks.reference) + .check(); + } static final _getText = jniLookup< ffi.NativeFunction< @@ -1524,8 +1771,11 @@ class Context extends jni.JObject { /// from: public final java.lang.CharSequence getText(int i) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getText(int i) => - const jni.JObjectType().fromRef(_getText(reference, i).object); + jni.JObject getText( + int i, + ) { + return const jni.JObjectType().fromRef(_getText(reference, i).object); + } static final _getString = jniLookup< ffi.NativeFunction< @@ -1535,8 +1785,11 @@ class Context extends jni.JObject { /// from: public final java.lang.String getString(int i) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getString(int i) => - const jni.JStringType().fromRef(_getString(reference, i).object); + jni.JString getString( + int i, + ) { + return const jni.JStringType().fromRef(_getString(reference, i).object); + } static final _getString1 = jniLookup< ffi.NativeFunction< @@ -1548,9 +1801,13 @@ class Context extends jni.JObject { /// 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. - jni.JString getString1(int i, jni.JArray objects) => - const jni.JStringType() - .fromRef(_getString1(reference, i, objects.reference).object); + jni.JString getString1( + int i, + jni.JArray objects, + ) { + return const jni.JStringType() + .fromRef(_getString1(reference, i, objects.reference).object); + } static final _getColor = jniLookup< ffi.NativeFunction< @@ -1559,7 +1816,11 @@ class Context extends jni.JObject { .asFunction, int)>(); /// from: public final int getColor(int i) - int getColor(int i) => _getColor(reference, i).integer; + int getColor( + int i, + ) { + return _getColor(reference, i).integer; + } static final _getDrawable = jniLookup< ffi.NativeFunction< @@ -1569,8 +1830,11 @@ class Context extends jni.JObject { /// from: public final android.graphics.drawable.Drawable getDrawable(int i) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getDrawable(int i) => - const jni.JObjectType().fromRef(_getDrawable(reference, i).object); + jni.JObject getDrawable( + int i, + ) { + return const jni.JObjectType().fromRef(_getDrawable(reference, i).object); + } static final _getColorStateList = jniLookup< ffi.NativeFunction< @@ -1580,8 +1844,12 @@ class Context extends jni.JObject { /// from: public final android.content.res.ColorStateList getColorStateList(int i) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getColorStateList(int i) => - const jni.JObjectType().fromRef(_getColorStateList(reference, i).object); + jni.JObject getColorStateList( + int i, + ) { + return const jni.JObjectType() + .fromRef(_getColorStateList(reference, i).object); + } static final _setTheme = jniLookup< ffi.NativeFunction< @@ -1590,7 +1858,11 @@ class Context extends jni.JObject { .asFunction, int)>(); /// from: public abstract void setTheme(int i) - void setTheme(int i) => _setTheme(reference, i).check(); + void setTheme( + int i, + ) { + return _setTheme(reference, i).check(); + } static final _getTheme = jniLookup< ffi.NativeFunction< @@ -1600,8 +1872,9 @@ class Context extends jni.JObject { /// from: public abstract android.content.res.Resources$Theme getTheme() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getTheme() => - const jni.JObjectType().fromRef(_getTheme(reference).object); + jni.JObject getTheme() { + return const jni.JObjectType().fromRef(_getTheme(reference).object); + } static final _obtainStyledAttributes = jniLookup< ffi.NativeFunction< @@ -1613,9 +1886,12 @@ class Context extends jni.JObject { /// from: public final android.content.res.TypedArray obtainStyledAttributes(int[] is) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject obtainStyledAttributes(jni.JArray is0) => - const jni.JObjectType() - .fromRef(_obtainStyledAttributes(reference, is0.reference).object); + jni.JObject obtainStyledAttributes( + jni.JArray is0, + ) { + return const jni.JObjectType() + .fromRef(_obtainStyledAttributes(reference, is0.reference).object); + } static final _obtainStyledAttributes1 = jniLookup< ffi.NativeFunction< @@ -1627,9 +1903,13 @@ class Context extends jni.JObject { /// 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. - jni.JObject obtainStyledAttributes1(int i, jni.JArray is0) => - const jni.JObjectType().fromRef( - _obtainStyledAttributes1(reference, i, is0.reference).object); + jni.JObject obtainStyledAttributes1( + int i, + jni.JArray is0, + ) { + return const jni.JObjectType() + .fromRef(_obtainStyledAttributes1(reference, i, is0.reference).object); + } static final _obtainStyledAttributes2 = jniLookup< ffi.NativeFunction< @@ -1644,10 +1924,13 @@ class Context extends jni.JObject { /// 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. jni.JObject obtainStyledAttributes2( - jni.JObject attributeSet, jni.JArray is0) => - const jni.JObjectType().fromRef(_obtainStyledAttributes2( - reference, attributeSet.reference, is0.reference) - .object); + jni.JObject attributeSet, + jni.JArray is0, + ) { + return const jni.JObjectType().fromRef(_obtainStyledAttributes2( + reference, attributeSet.reference, is0.reference) + .object); + } static final _obtainStyledAttributes3 = jniLookup< ffi.NativeFunction< @@ -1664,10 +1947,15 @@ class Context extends jni.JObject { /// 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. jni.JObject obtainStyledAttributes3( - jni.JObject attributeSet, jni.JArray is0, int i, int i1) => - const jni.JObjectType().fromRef(_obtainStyledAttributes3( - reference, attributeSet.reference, is0.reference, i, i1) - .object); + jni.JObject attributeSet, + jni.JArray is0, + int i, + int i1, + ) { + return const jni.JObjectType().fromRef(_obtainStyledAttributes3( + reference, attributeSet.reference, is0.reference, i, i1) + .object); + } static final _getClassLoader = jniLookup< ffi.NativeFunction< @@ -1677,8 +1965,9 @@ class Context extends jni.JObject { /// from: public abstract java.lang.ClassLoader getClassLoader() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getClassLoader() => - const jni.JObjectType().fromRef(_getClassLoader(reference).object); + jni.JObject getClassLoader() { + return const jni.JObjectType().fromRef(_getClassLoader(reference).object); + } static final _getPackageName = jniLookup< ffi.NativeFunction< @@ -1688,8 +1977,9 @@ class Context extends jni.JObject { /// from: public abstract java.lang.String getPackageName() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getPackageName() => - const jni.JStringType().fromRef(_getPackageName(reference).object); + jni.JString getPackageName() { + return const jni.JStringType().fromRef(_getPackageName(reference).object); + } static final _getOpPackageName = jniLookup< ffi.NativeFunction< @@ -1699,8 +1989,9 @@ class Context extends jni.JObject { /// from: public java.lang.String getOpPackageName() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getOpPackageName() => - const jni.JStringType().fromRef(_getOpPackageName(reference).object); + jni.JString getOpPackageName() { + return const jni.JStringType().fromRef(_getOpPackageName(reference).object); + } static final _getAttributionTag = jniLookup< ffi.NativeFunction< @@ -1710,8 +2001,10 @@ class Context extends jni.JObject { /// from: public java.lang.String getAttributionTag() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getAttributionTag() => - const jni.JStringType().fromRef(_getAttributionTag(reference).object); + jni.JString getAttributionTag() { + return const jni.JStringType() + .fromRef(_getAttributionTag(reference).object); + } static final _getAttributionSource = jniLookup< ffi.NativeFunction< @@ -1721,8 +2014,10 @@ class Context extends jni.JObject { /// from: public android.content.AttributionSource getAttributionSource() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getAttributionSource() => - const jni.JObjectType().fromRef(_getAttributionSource(reference).object); + jni.JObject getAttributionSource() { + return const jni.JObjectType() + .fromRef(_getAttributionSource(reference).object); + } static final _getParams = jniLookup< ffi.NativeFunction< @@ -1732,8 +2027,9 @@ class Context extends jni.JObject { /// from: public android.content.ContextParams getParams() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getParams() => - const jni.JObjectType().fromRef(_getParams(reference).object); + jni.JObject getParams() { + return const jni.JObjectType().fromRef(_getParams(reference).object); + } static final _getApplicationInfo = jniLookup< ffi.NativeFunction< @@ -1743,8 +2039,10 @@ class Context extends jni.JObject { /// from: public abstract android.content.pm.ApplicationInfo getApplicationInfo() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getApplicationInfo() => - const jni.JObjectType().fromRef(_getApplicationInfo(reference).object); + jni.JObject getApplicationInfo() { + return const jni.JObjectType() + .fromRef(_getApplicationInfo(reference).object); + } static final _getPackageResourcePath = jniLookup< ffi.NativeFunction< @@ -1754,8 +2052,10 @@ class Context extends jni.JObject { /// from: public abstract java.lang.String getPackageResourcePath() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getPackageResourcePath() => const jni.JStringType() - .fromRef(_getPackageResourcePath(reference).object); + jni.JString getPackageResourcePath() { + return const jni.JStringType() + .fromRef(_getPackageResourcePath(reference).object); + } static final _getPackageCodePath = jniLookup< ffi.NativeFunction< @@ -1765,8 +2065,10 @@ class Context extends jni.JObject { /// from: public abstract java.lang.String getPackageCodePath() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getPackageCodePath() => - const jni.JStringType().fromRef(_getPackageCodePath(reference).object); + jni.JString getPackageCodePath() { + return const jni.JStringType() + .fromRef(_getPackageCodePath(reference).object); + } static final _getSharedPreferences = jniLookup< ffi.NativeFunction< @@ -1780,9 +2082,13 @@ class Context extends jni.JObject { /// 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. - jni.JObject getSharedPreferences(jni.JString string, int i) => - const jni.JObjectType().fromRef( - _getSharedPreferences(reference, string.reference, i).object); + jni.JObject getSharedPreferences( + jni.JString string, + int i, + ) { + return const jni.JObjectType() + .fromRef(_getSharedPreferences(reference, string.reference, i).object); + } static final _moveSharedPreferencesFrom = jniLookup< ffi.NativeFunction< @@ -1795,9 +2101,14 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract boolean moveSharedPreferencesFrom(android.content.Context context, java.lang.String string) - bool moveSharedPreferencesFrom(Context context, jni.JString string) => - _moveSharedPreferencesFrom(reference, context.reference, string.reference) - .boolean; + bool moveSharedPreferencesFrom( + Context context, + jni.JString string, + ) { + return _moveSharedPreferencesFrom( + reference, context.reference, string.reference) + .boolean; + } static final _deleteSharedPreferences = jniLookup< ffi.NativeFunction< @@ -1808,8 +2119,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract boolean deleteSharedPreferences(java.lang.String string) - bool deleteSharedPreferences(jni.JString string) => - _deleteSharedPreferences(reference, string.reference).boolean; + bool deleteSharedPreferences( + jni.JString string, + ) { + return _deleteSharedPreferences(reference, string.reference).boolean; + } static final _openFileInput = jniLookup< ffi.NativeFunction< @@ -1821,8 +2135,12 @@ class Context extends jni.JObject { /// from: public abstract java.io.FileInputStream openFileInput(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject openFileInput(jni.JString string) => const jni.JObjectType() - .fromRef(_openFileInput(reference, string.reference).object); + jni.JObject openFileInput( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_openFileInput(reference, string.reference).object); + } static final _openFileOutput = jniLookup< ffi.NativeFunction< @@ -1834,9 +2152,13 @@ class Context extends jni.JObject { /// 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. - jni.JObject openFileOutput(jni.JString string, int i) => - const jni.JObjectType() - .fromRef(_openFileOutput(reference, string.reference, i).object); + jni.JObject openFileOutput( + jni.JString string, + int i, + ) { + return const jni.JObjectType() + .fromRef(_openFileOutput(reference, string.reference, i).object); + } static final _deleteFile = jniLookup< ffi.NativeFunction< @@ -1847,8 +2169,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract boolean deleteFile(java.lang.String string) - bool deleteFile(jni.JString string) => - _deleteFile(reference, string.reference).boolean; + bool deleteFile( + jni.JString string, + ) { + return _deleteFile(reference, string.reference).boolean; + } static final _getFileStreamPath = jniLookup< ffi.NativeFunction< @@ -1860,8 +2185,12 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getFileStreamPath(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getFileStreamPath(jni.JString string) => const jni.JObjectType() - .fromRef(_getFileStreamPath(reference, string.reference).object); + jni.JObject getFileStreamPath( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getFileStreamPath(reference, string.reference).object); + } static final _getDataDir = jniLookup< ffi.NativeFunction< @@ -1871,8 +2200,9 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getDataDir() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getDataDir() => - const jni.JObjectType().fromRef(_getDataDir(reference).object); + jni.JObject getDataDir() { + return const jni.JObjectType().fromRef(_getDataDir(reference).object); + } static final _getFilesDir = jniLookup< ffi.NativeFunction< @@ -1882,8 +2212,9 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getFilesDir() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getFilesDir() => - const jni.JObjectType().fromRef(_getFilesDir(reference).object); + jni.JObject getFilesDir() { + return const jni.JObjectType().fromRef(_getFilesDir(reference).object); + } static final _getNoBackupFilesDir = jniLookup< ffi.NativeFunction< @@ -1893,8 +2224,10 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getNoBackupFilesDir() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getNoBackupFilesDir() => - const jni.JObjectType().fromRef(_getNoBackupFilesDir(reference).object); + jni.JObject getNoBackupFilesDir() { + return const jni.JObjectType() + .fromRef(_getNoBackupFilesDir(reference).object); + } static final _getExternalFilesDir = jniLookup< ffi.NativeFunction< @@ -1906,8 +2239,12 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getExternalFilesDir(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getExternalFilesDir(jni.JString string) => const jni.JObjectType() - .fromRef(_getExternalFilesDir(reference, string.reference).object); + jni.JObject getExternalFilesDir( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getExternalFilesDir(reference, string.reference).object); + } static final _getExternalFilesDirs = jniLookup< ffi.NativeFunction< @@ -1919,9 +2256,12 @@ class Context extends jni.JObject { /// from: public abstract java.io.File[] getExternalFilesDirs(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getExternalFilesDirs(jni.JString string) => - const jni.JArrayType(jni.JObjectType()) - .fromRef(_getExternalFilesDirs(reference, string.reference).object); + jni.JArray getExternalFilesDirs( + jni.JString string, + ) { + return const jni.JArrayType(jni.JObjectType()) + .fromRef(_getExternalFilesDirs(reference, string.reference).object); + } static final _getObbDir = jniLookup< ffi.NativeFunction< @@ -1931,8 +2271,9 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getObbDir() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getObbDir() => - const jni.JObjectType().fromRef(_getObbDir(reference).object); + jni.JObject getObbDir() { + return const jni.JObjectType().fromRef(_getObbDir(reference).object); + } static final _getObbDirs = jniLookup< ffi.NativeFunction< @@ -1942,9 +2283,10 @@ class Context extends jni.JObject { /// from: public abstract java.io.File[] getObbDirs() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getObbDirs() => - const jni.JArrayType(jni.JObjectType()) - .fromRef(_getObbDirs(reference).object); + jni.JArray getObbDirs() { + return const jni.JArrayType(jni.JObjectType()) + .fromRef(_getObbDirs(reference).object); + } static final _getCacheDir = jniLookup< ffi.NativeFunction< @@ -1954,8 +2296,9 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getCacheDir() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getCacheDir() => - const jni.JObjectType().fromRef(_getCacheDir(reference).object); + jni.JObject getCacheDir() { + return const jni.JObjectType().fromRef(_getCacheDir(reference).object); + } static final _getCodeCacheDir = jniLookup< ffi.NativeFunction< @@ -1965,8 +2308,9 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getCodeCacheDir() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getCodeCacheDir() => - const jni.JObjectType().fromRef(_getCodeCacheDir(reference).object); + jni.JObject getCodeCacheDir() { + return const jni.JObjectType().fromRef(_getCodeCacheDir(reference).object); + } static final _getExternalCacheDir = jniLookup< ffi.NativeFunction< @@ -1976,8 +2320,10 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getExternalCacheDir() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getExternalCacheDir() => - const jni.JObjectType().fromRef(_getExternalCacheDir(reference).object); + jni.JObject getExternalCacheDir() { + return const jni.JObjectType() + .fromRef(_getExternalCacheDir(reference).object); + } static final _getExternalCacheDirs = jniLookup< ffi.NativeFunction< @@ -1987,9 +2333,10 @@ class Context extends jni.JObject { /// from: public abstract java.io.File[] getExternalCacheDirs() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getExternalCacheDirs() => - const jni.JArrayType(jni.JObjectType()) - .fromRef(_getExternalCacheDirs(reference).object); + jni.JArray getExternalCacheDirs() { + return const jni.JArrayType(jni.JObjectType()) + .fromRef(_getExternalCacheDirs(reference).object); + } static final _getExternalMediaDirs = jniLookup< ffi.NativeFunction< @@ -1999,9 +2346,10 @@ class Context extends jni.JObject { /// from: public abstract java.io.File[] getExternalMediaDirs() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getExternalMediaDirs() => - const jni.JArrayType(jni.JObjectType()) - .fromRef(_getExternalMediaDirs(reference).object); + jni.JArray getExternalMediaDirs() { + return const jni.JArrayType(jni.JObjectType()) + .fromRef(_getExternalMediaDirs(reference).object); + } static final _fileList = jniLookup< ffi.NativeFunction< @@ -2011,8 +2359,10 @@ class Context extends jni.JObject { /// from: public abstract java.lang.String[] fileList() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray fileList() => const jni.JArrayType(jni.JStringType()) - .fromRef(_fileList(reference).object); + jni.JArray fileList() { + return const jni.JArrayType(jni.JStringType()) + .fromRef(_fileList(reference).object); + } static final _getDir = jniLookup< ffi.NativeFunction< @@ -2024,8 +2374,13 @@ class Context extends jni.JObject { /// 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. - jni.JObject getDir(jni.JString string, int i) => const jni.JObjectType() - .fromRef(_getDir(reference, string.reference, i).object); + jni.JObject getDir( + jni.JString string, + int i, + ) { + return const jni.JObjectType() + .fromRef(_getDir(reference, string.reference, i).object); + } static final _openOrCreateDatabase = jniLookup< ffi.NativeFunction< @@ -2041,10 +2396,14 @@ class Context extends jni.JObject { /// 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. jni.JObject openOrCreateDatabase( - jni.JString string, int i, jni.JObject cursorFactory) => - const jni.JObjectType().fromRef(_openOrCreateDatabase( - reference, string.reference, i, cursorFactory.reference) - .object); + jni.JString string, + int i, + jni.JObject cursorFactory, + ) { + return const jni.JObjectType().fromRef(_openOrCreateDatabase( + reference, string.reference, i, cursorFactory.reference) + .object); + } static final _openOrCreateDatabase1 = jniLookup< ffi.NativeFunction< @@ -2060,15 +2419,20 @@ class Context extends jni.JObject { /// 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. - jni.JObject openOrCreateDatabase1(jni.JString string, int i, - jni.JObject cursorFactory, jni.JObject databaseErrorHandler) => - const jni.JObjectType().fromRef(_openOrCreateDatabase1( - reference, - string.reference, - i, - cursorFactory.reference, - databaseErrorHandler.reference) - .object); + jni.JObject openOrCreateDatabase1( + jni.JString string, + int i, + jni.JObject cursorFactory, + jni.JObject databaseErrorHandler, + ) { + return const jni.JObjectType().fromRef(_openOrCreateDatabase1( + reference, + string.reference, + i, + cursorFactory.reference, + databaseErrorHandler.reference) + .object); + } static final _moveDatabaseFrom = jniLookup< ffi.NativeFunction< @@ -2081,8 +2445,13 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract boolean moveDatabaseFrom(android.content.Context context, java.lang.String string) - bool moveDatabaseFrom(Context context, jni.JString string) => - _moveDatabaseFrom(reference, context.reference, string.reference).boolean; + bool moveDatabaseFrom( + Context context, + jni.JString string, + ) { + return _moveDatabaseFrom(reference, context.reference, string.reference) + .boolean; + } static final _deleteDatabase = jniLookup< ffi.NativeFunction< @@ -2093,8 +2462,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract boolean deleteDatabase(java.lang.String string) - bool deleteDatabase(jni.JString string) => - _deleteDatabase(reference, string.reference).boolean; + bool deleteDatabase( + jni.JString string, + ) { + return _deleteDatabase(reference, string.reference).boolean; + } static final _getDatabasePath = jniLookup< ffi.NativeFunction< @@ -2106,8 +2478,12 @@ class Context extends jni.JObject { /// from: public abstract java.io.File getDatabasePath(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getDatabasePath(jni.JString string) => const jni.JObjectType() - .fromRef(_getDatabasePath(reference, string.reference).object); + jni.JObject getDatabasePath( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getDatabasePath(reference, string.reference).object); + } static final _databaseList = jniLookup< ffi.NativeFunction< @@ -2117,9 +2493,10 @@ class Context extends jni.JObject { /// from: public abstract java.lang.String[] databaseList() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray databaseList() => - const jni.JArrayType(jni.JStringType()) - .fromRef(_databaseList(reference).object); + jni.JArray databaseList() { + return const jni.JArrayType(jni.JStringType()) + .fromRef(_databaseList(reference).object); + } static final _getWallpaper = jniLookup< ffi.NativeFunction< @@ -2129,8 +2506,9 @@ class Context extends jni.JObject { /// from: public abstract android.graphics.drawable.Drawable getWallpaper() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getWallpaper() => - const jni.JObjectType().fromRef(_getWallpaper(reference).object); + jni.JObject getWallpaper() { + return const jni.JObjectType().fromRef(_getWallpaper(reference).object); + } static final _peekWallpaper = jniLookup< ffi.NativeFunction< @@ -2140,8 +2518,9 @@ class Context extends jni.JObject { /// from: public abstract android.graphics.drawable.Drawable peekWallpaper() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject peekWallpaper() => - const jni.JObjectType().fromRef(_peekWallpaper(reference).object); + jni.JObject peekWallpaper() { + return const jni.JObjectType().fromRef(_peekWallpaper(reference).object); + } static final _getWallpaperDesiredMinimumWidth = jniLookup< ffi.NativeFunction< @@ -2150,8 +2529,9 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract int getWallpaperDesiredMinimumWidth() - int getWallpaperDesiredMinimumWidth() => - _getWallpaperDesiredMinimumWidth(reference).integer; + int getWallpaperDesiredMinimumWidth() { + return _getWallpaperDesiredMinimumWidth(reference).integer; + } static final _getWallpaperDesiredMinimumHeight = jniLookup< ffi.NativeFunction< @@ -2160,8 +2540,9 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract int getWallpaperDesiredMinimumHeight() - int getWallpaperDesiredMinimumHeight() => - _getWallpaperDesiredMinimumHeight(reference).integer; + int getWallpaperDesiredMinimumHeight() { + return _getWallpaperDesiredMinimumHeight(reference).integer; + } static final _setWallpaper = jniLookup< ffi.NativeFunction< @@ -2172,8 +2553,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void setWallpaper(android.graphics.Bitmap bitmap) - void setWallpaper(jni.JObject bitmap) => - _setWallpaper(reference, bitmap.reference).check(); + void setWallpaper( + jni.JObject bitmap, + ) { + return _setWallpaper(reference, bitmap.reference).check(); + } static final _setWallpaper1 = jniLookup< ffi.NativeFunction< @@ -2184,8 +2568,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void setWallpaper(java.io.InputStream inputStream) - void setWallpaper1(jni.JObject inputStream) => - _setWallpaper1(reference, inputStream.reference).check(); + void setWallpaper1( + jni.JObject inputStream, + ) { + return _setWallpaper1(reference, inputStream.reference).check(); + } static final _clearWallpaper = jniLookup< ffi.NativeFunction< @@ -2194,7 +2581,9 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract void clearWallpaper() - void clearWallpaper() => _clearWallpaper(reference).check(); + void clearWallpaper() { + return _clearWallpaper(reference).check(); + } static final _startActivity = jniLookup< ffi.NativeFunction< @@ -2205,8 +2594,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void startActivity(android.content.Intent intent) - void startActivity(Intent intent) => - _startActivity(reference, intent.reference).check(); + void startActivity( + Intent intent, + ) { + return _startActivity(reference, intent.reference).check(); + } static final _startActivity1 = jniLookup< ffi.NativeFunction< @@ -2219,8 +2611,13 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void startActivity(android.content.Intent intent, android.os.Bundle bundle) - void startActivity1(Intent intent, jni.JObject bundle) => - _startActivity1(reference, intent.reference, bundle.reference).check(); + void startActivity1( + Intent intent, + jni.JObject bundle, + ) { + return _startActivity1(reference, intent.reference, bundle.reference) + .check(); + } static final _startActivities = jniLookup< ffi.NativeFunction< @@ -2231,8 +2628,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void startActivities(android.content.Intent[] intents) - void startActivities(jni.JArray intents) => - _startActivities(reference, intents.reference).check(); + void startActivities( + jni.JArray intents, + ) { + return _startActivities(reference, intents.reference).check(); + } static final _startActivities1 = jniLookup< ffi.NativeFunction< @@ -2245,8 +2645,13 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void startActivities(android.content.Intent[] intents, android.os.Bundle bundle) - void startActivities1(jni.JArray intents, jni.JObject bundle) => - _startActivities1(reference, intents.reference, bundle.reference).check(); + void startActivities1( + jni.JArray intents, + jni.JObject bundle, + ) { + return _startActivities1(reference, intents.reference, bundle.reference) + .check(); + } static final _startIntentSender = jniLookup< ffi.NativeFunction< @@ -2263,10 +2668,16 @@ class Context extends jni.JObject { /// from: public abstract void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2) void startIntentSender( - jni.JObject intentSender, Intent intent, int i, int i1, int i2) => - _startIntentSender( - reference, intentSender.reference, intent.reference, i, i1, i2) - .check(); + jni.JObject intentSender, + Intent intent, + int i, + int i1, + int i2, + ) { + return _startIntentSender( + reference, intentSender.reference, intent.reference, i, i1, i2) + .check(); + } static final _startIntentSender1 = jniLookup< ffi.NativeFunction< @@ -2283,11 +2694,18 @@ class Context extends jni.JObject { ffi.Pointer, int, int, int, ffi.Pointer)>(); /// from: public abstract void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2, android.os.Bundle bundle) - void startIntentSender1(jni.JObject intentSender, Intent intent, int i, - int i1, int i2, jni.JObject bundle) => - _startIntentSender1(reference, intentSender.reference, intent.reference, - i, i1, i2, bundle.reference) - .check(); + void startIntentSender1( + jni.JObject intentSender, + Intent intent, + int i, + int i1, + int i2, + jni.JObject bundle, + ) { + return _startIntentSender1(reference, intentSender.reference, + intent.reference, i, i1, i2, bundle.reference) + .check(); + } static final _sendBroadcast = jniLookup< ffi.NativeFunction< @@ -2298,8 +2716,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void sendBroadcast(android.content.Intent intent) - void sendBroadcast(Intent intent) => - _sendBroadcast(reference, intent.reference).check(); + void sendBroadcast( + Intent intent, + ) { + return _sendBroadcast(reference, intent.reference).check(); + } static final _sendBroadcast1 = jniLookup< ffi.NativeFunction< @@ -2312,8 +2733,13 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void sendBroadcast(android.content.Intent intent, java.lang.String string) - void sendBroadcast1(Intent intent, jni.JString string) => - _sendBroadcast1(reference, intent.reference, string.reference).check(); + void sendBroadcast1( + Intent intent, + jni.JString string, + ) { + return _sendBroadcast1(reference, intent.reference, string.reference) + .check(); + } static final _sendBroadcastWithMultiplePermissions = jniLookup< ffi.NativeFunction< @@ -2326,10 +2752,13 @@ class Context extends jni.JObject { /// from: public void sendBroadcastWithMultiplePermissions(android.content.Intent intent, java.lang.String[] strings) void sendBroadcastWithMultiplePermissions( - Intent intent, jni.JArray strings) => - _sendBroadcastWithMultiplePermissions( - reference, intent.reference, strings.reference) - .check(); + Intent intent, + jni.JArray strings, + ) { + return _sendBroadcastWithMultiplePermissions( + reference, intent.reference, strings.reference) + .check(); + } static final _sendOrderedBroadcast = jniLookup< ffi.NativeFunction< @@ -2342,9 +2771,13 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void sendOrderedBroadcast(android.content.Intent intent, java.lang.String string) - void sendOrderedBroadcast(Intent intent, jni.JString string) => - _sendOrderedBroadcast(reference, intent.reference, string.reference) - .check(); + void sendOrderedBroadcast( + Intent intent, + jni.JString string, + ) { + return _sendOrderedBroadcast(reference, intent.reference, string.reference) + .check(); + } static final _sendOrderedBroadcast1 = jniLookup< ffi.NativeFunction< @@ -2370,23 +2803,25 @@ class Context extends jni.JObject { /// from: public abstract void sendOrderedBroadcast(android.content.Intent intent, java.lang.String string, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string1, android.os.Bundle bundle) void sendOrderedBroadcast1( - Intent intent, - jni.JString string, - jni.JObject broadcastReceiver, - jni.JObject handler, - int i, - jni.JString string1, - jni.JObject bundle) => - _sendOrderedBroadcast1( - reference, - intent.reference, - string.reference, - broadcastReceiver.reference, - handler.reference, - i, - string1.reference, - bundle.reference) - .check(); + Intent intent, + jni.JString string, + jni.JObject broadcastReceiver, + jni.JObject handler, + int i, + jni.JString string1, + jni.JObject bundle, + ) { + return _sendOrderedBroadcast1( + reference, + intent.reference, + string.reference, + broadcastReceiver.reference, + handler.reference, + i, + string1.reference, + bundle.reference) + .check(); + } static final _sendBroadcastAsUser = jniLookup< ffi.NativeFunction< @@ -2399,9 +2834,14 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void sendBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle) - void sendBroadcastAsUser(Intent intent, jni.JObject userHandle) => - _sendBroadcastAsUser(reference, intent.reference, userHandle.reference) - .check(); + void sendBroadcastAsUser( + Intent intent, + jni.JObject userHandle, + ) { + return _sendBroadcastAsUser( + reference, intent.reference, userHandle.reference) + .check(); + } static final _sendBroadcastAsUser1 = jniLookup< ffi.NativeFunction< @@ -2416,10 +2856,14 @@ class Context extends jni.JObject { /// from: public abstract void sendBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle, java.lang.String string) void sendBroadcastAsUser1( - Intent intent, jni.JObject userHandle, jni.JString string) => - _sendBroadcastAsUser1(reference, intent.reference, userHandle.reference, - string.reference) - .check(); + Intent intent, + jni.JObject userHandle, + jni.JString string, + ) { + return _sendBroadcastAsUser1( + reference, intent.reference, userHandle.reference, string.reference) + .check(); + } static final _sendOrderedBroadcastAsUser = jniLookup< ffi.NativeFunction< @@ -2448,25 +2892,27 @@ class Context extends jni.JObject { /// from: public abstract void sendOrderedBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle, java.lang.String string, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string1, android.os.Bundle bundle) void sendOrderedBroadcastAsUser( - Intent intent, - jni.JObject userHandle, - jni.JString string, - jni.JObject broadcastReceiver, - jni.JObject handler, - int i, - jni.JString string1, - jni.JObject bundle) => - _sendOrderedBroadcastAsUser( - reference, - intent.reference, - userHandle.reference, - string.reference, - broadcastReceiver.reference, - handler.reference, - i, - string1.reference, - bundle.reference) - .check(); + Intent intent, + jni.JObject userHandle, + jni.JString string, + jni.JObject broadcastReceiver, + jni.JObject handler, + int i, + jni.JString string1, + jni.JObject bundle, + ) { + return _sendOrderedBroadcastAsUser( + reference, + intent.reference, + userHandle.reference, + string.reference, + broadcastReceiver.reference, + handler.reference, + i, + string1.reference, + bundle.reference) + .check(); + } static final _sendOrderedBroadcast2 = jniLookup< ffi.NativeFunction< @@ -2494,25 +2940,27 @@ class Context extends jni.JObject { /// from: public void sendOrderedBroadcast(android.content.Intent intent, java.lang.String string, java.lang.String string1, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string2, android.os.Bundle bundle) void sendOrderedBroadcast2( - Intent intent, - jni.JString string, - jni.JString string1, - jni.JObject broadcastReceiver, - jni.JObject handler, - int i, - jni.JString string2, - jni.JObject bundle) => - _sendOrderedBroadcast2( - reference, - intent.reference, - string.reference, - string1.reference, - broadcastReceiver.reference, - handler.reference, - i, - string2.reference, - bundle.reference) - .check(); + Intent intent, + jni.JString string, + jni.JString string1, + jni.JObject broadcastReceiver, + jni.JObject handler, + int i, + jni.JString string2, + jni.JObject bundle, + ) { + return _sendOrderedBroadcast2( + reference, + intent.reference, + string.reference, + string1.reference, + broadcastReceiver.reference, + handler.reference, + i, + string2.reference, + bundle.reference) + .check(); + } static final _sendStickyBroadcast = jniLookup< ffi.NativeFunction< @@ -2523,8 +2971,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void sendStickyBroadcast(android.content.Intent intent) - void sendStickyBroadcast(Intent intent) => - _sendStickyBroadcast(reference, intent.reference).check(); + void sendStickyBroadcast( + Intent intent, + ) { + return _sendStickyBroadcast(reference, intent.reference).check(); + } static final _sendStickyBroadcast1 = jniLookup< ffi.NativeFunction< @@ -2537,9 +2988,13 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public void sendStickyBroadcast(android.content.Intent intent, android.os.Bundle bundle) - void sendStickyBroadcast1(Intent intent, jni.JObject bundle) => - _sendStickyBroadcast1(reference, intent.reference, bundle.reference) - .check(); + void sendStickyBroadcast1( + Intent intent, + jni.JObject bundle, + ) { + return _sendStickyBroadcast1(reference, intent.reference, bundle.reference) + .check(); + } static final _sendStickyOrderedBroadcast = jniLookup< ffi.NativeFunction< @@ -2563,17 +3018,24 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void sendStickyOrderedBroadcast(android.content.Intent intent, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string, android.os.Bundle bundle) - void sendStickyOrderedBroadcast(Intent intent, jni.JObject broadcastReceiver, - jni.JObject handler, int i, jni.JString string, jni.JObject bundle) => - _sendStickyOrderedBroadcast( - reference, - intent.reference, - broadcastReceiver.reference, - handler.reference, - i, - string.reference, - bundle.reference) - .check(); + void sendStickyOrderedBroadcast( + Intent intent, + jni.JObject broadcastReceiver, + jni.JObject handler, + int i, + jni.JString string, + jni.JObject bundle, + ) { + return _sendStickyOrderedBroadcast( + reference, + intent.reference, + broadcastReceiver.reference, + handler.reference, + i, + string.reference, + bundle.reference) + .check(); + } static final _removeStickyBroadcast = jniLookup< ffi.NativeFunction< @@ -2584,8 +3046,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void removeStickyBroadcast(android.content.Intent intent) - void removeStickyBroadcast(Intent intent) => - _removeStickyBroadcast(reference, intent.reference).check(); + void removeStickyBroadcast( + Intent intent, + ) { + return _removeStickyBroadcast(reference, intent.reference).check(); + } static final _sendStickyBroadcastAsUser = jniLookup< ffi.NativeFunction< @@ -2598,10 +3063,14 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void sendStickyBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle) - void sendStickyBroadcastAsUser(Intent intent, jni.JObject userHandle) => - _sendStickyBroadcastAsUser( - reference, intent.reference, userHandle.reference) - .check(); + void sendStickyBroadcastAsUser( + Intent intent, + jni.JObject userHandle, + ) { + return _sendStickyBroadcastAsUser( + reference, intent.reference, userHandle.reference) + .check(); + } static final _sendStickyOrderedBroadcastAsUser = jniLookup< ffi.NativeFunction< @@ -2628,23 +3097,25 @@ class Context extends jni.JObject { /// from: public abstract void sendStickyOrderedBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle, android.content.BroadcastReceiver broadcastReceiver, android.os.Handler handler, int i, java.lang.String string, android.os.Bundle bundle) void sendStickyOrderedBroadcastAsUser( - Intent intent, - jni.JObject userHandle, - jni.JObject broadcastReceiver, - jni.JObject handler, - int i, - jni.JString string, - jni.JObject bundle) => - _sendStickyOrderedBroadcastAsUser( - reference, - intent.reference, - userHandle.reference, - broadcastReceiver.reference, - handler.reference, - i, - string.reference, - bundle.reference) - .check(); + Intent intent, + jni.JObject userHandle, + jni.JObject broadcastReceiver, + jni.JObject handler, + int i, + jni.JString string, + jni.JObject bundle, + ) { + return _sendStickyOrderedBroadcastAsUser( + reference, + intent.reference, + userHandle.reference, + broadcastReceiver.reference, + handler.reference, + i, + string.reference, + bundle.reference) + .check(); + } static final _removeStickyBroadcastAsUser = jniLookup< ffi.NativeFunction< @@ -2656,10 +3127,14 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void removeStickyBroadcastAsUser(android.content.Intent intent, android.os.UserHandle userHandle) - void removeStickyBroadcastAsUser(Intent intent, jni.JObject userHandle) => - _removeStickyBroadcastAsUser( - reference, intent.reference, userHandle.reference) - .check(); + void removeStickyBroadcastAsUser( + Intent intent, + jni.JObject userHandle, + ) { + return _removeStickyBroadcastAsUser( + reference, intent.reference, userHandle.reference) + .check(); + } static final _registerReceiver = jniLookup< ffi.NativeFunction< @@ -2674,10 +3149,13 @@ class Context extends jni.JObject { /// 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. Intent registerReceiver( - jni.JObject broadcastReceiver, jni.JObject intentFilter) => - const $IntentType().fromRef(_registerReceiver( - reference, broadcastReceiver.reference, intentFilter.reference) - .object); + jni.JObject broadcastReceiver, + jni.JObject intentFilter, + ) { + return const $IntentType().fromRef(_registerReceiver( + reference, broadcastReceiver.reference, intentFilter.reference) + .object); + } static final _registerReceiver1 = jniLookup< ffi.NativeFunction< @@ -2693,10 +3171,14 @@ class Context extends jni.JObject { /// 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. Intent registerReceiver1( - jni.JObject broadcastReceiver, jni.JObject intentFilter, int i) => - const $IntentType().fromRef(_registerReceiver1( - reference, broadcastReceiver.reference, intentFilter.reference, i) - .object); + jni.JObject broadcastReceiver, + jni.JObject intentFilter, + int i, + ) { + return const $IntentType().fromRef(_registerReceiver1( + reference, broadcastReceiver.reference, intentFilter.reference, i) + .object); + } static final _registerReceiver2 = jniLookup< ffi.NativeFunction< @@ -2716,15 +3198,20 @@ class Context extends jni.JObject { /// 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. - Intent registerReceiver2(jni.JObject broadcastReceiver, - jni.JObject intentFilter, jni.JString string, jni.JObject handler) => - const $IntentType().fromRef(_registerReceiver2( - reference, - broadcastReceiver.reference, - intentFilter.reference, - string.reference, - handler.reference) - .object); + Intent registerReceiver2( + jni.JObject broadcastReceiver, + jni.JObject intentFilter, + jni.JString string, + jni.JObject handler, + ) { + return const $IntentType().fromRef(_registerReceiver2( + reference, + broadcastReceiver.reference, + intentFilter.reference, + string.reference, + handler.reference) + .object); + } static final _registerReceiver3 = jniLookup< ffi.NativeFunction< @@ -2747,19 +3234,21 @@ class Context extends jni.JObject { /// 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. Intent registerReceiver3( - jni.JObject broadcastReceiver, - jni.JObject intentFilter, - jni.JString string, - jni.JObject handler, - int i) => - const $IntentType().fromRef(_registerReceiver3( - reference, - broadcastReceiver.reference, - intentFilter.reference, - string.reference, - handler.reference, - i) - .object); + jni.JObject broadcastReceiver, + jni.JObject intentFilter, + jni.JString string, + jni.JObject handler, + int i, + ) { + return const $IntentType().fromRef(_registerReceiver3( + reference, + broadcastReceiver.reference, + intentFilter.reference, + string.reference, + handler.reference, + i) + .object); + } static final _unregisterReceiver = jniLookup< ffi.NativeFunction< @@ -2770,8 +3259,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void unregisterReceiver(android.content.BroadcastReceiver broadcastReceiver) - void unregisterReceiver(jni.JObject broadcastReceiver) => - _unregisterReceiver(reference, broadcastReceiver.reference).check(); + void unregisterReceiver( + jni.JObject broadcastReceiver, + ) { + return _unregisterReceiver(reference, broadcastReceiver.reference).check(); + } static final _startService = jniLookup< ffi.NativeFunction< @@ -2783,8 +3275,12 @@ class Context extends jni.JObject { /// from: public abstract android.content.ComponentName startService(android.content.Intent intent) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject startService(Intent intent) => const jni.JObjectType() - .fromRef(_startService(reference, intent.reference).object); + jni.JObject startService( + Intent intent, + ) { + return const jni.JObjectType() + .fromRef(_startService(reference, intent.reference).object); + } static final _startForegroundService = jniLookup< ffi.NativeFunction< @@ -2796,8 +3292,12 @@ class Context extends jni.JObject { /// from: public abstract android.content.ComponentName startForegroundService(android.content.Intent intent) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject startForegroundService(Intent intent) => const jni.JObjectType() - .fromRef(_startForegroundService(reference, intent.reference).object); + jni.JObject startForegroundService( + Intent intent, + ) { + return const jni.JObjectType() + .fromRef(_startForegroundService(reference, intent.reference).object); + } static final _stopService = jniLookup< ffi.NativeFunction< @@ -2808,8 +3308,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract boolean stopService(android.content.Intent intent) - bool stopService(Intent intent) => - _stopService(reference, intent.reference).boolean; + bool stopService( + Intent intent, + ) { + return _stopService(reference, intent.reference).boolean; + } static final _bindService = jniLookup< ffi.NativeFunction< @@ -2823,9 +3326,15 @@ class Context extends jni.JObject { ffi.Pointer, int)>(); /// from: public abstract boolean bindService(android.content.Intent intent, android.content.ServiceConnection serviceConnection, int i) - bool bindService(Intent intent, jni.JObject serviceConnection, int i) => - _bindService(reference, intent.reference, serviceConnection.reference, i) - .boolean; + bool bindService( + Intent intent, + jni.JObject serviceConnection, + int i, + ) { + return _bindService( + reference, intent.reference, serviceConnection.reference, i) + .boolean; + } static final _bindService1 = jniLookup< ffi.NativeFunction< @@ -2840,11 +3349,16 @@ class Context extends jni.JObject { int, ffi.Pointer, ffi.Pointer)>(); /// from: public boolean bindService(android.content.Intent intent, int i, java.util.concurrent.Executor executor, android.content.ServiceConnection serviceConnection) - bool bindService1(Intent intent, int i, jni.JObject executor, - jni.JObject serviceConnection) => - _bindService1(reference, intent.reference, i, executor.reference, - serviceConnection.reference) - .boolean; + bool bindService1( + Intent intent, + int i, + jni.JObject executor, + jni.JObject serviceConnection, + ) { + return _bindService1(reference, intent.reference, i, executor.reference, + serviceConnection.reference) + .boolean; + } static final _bindIsolatedService = jniLookup< ffi.NativeFunction< @@ -2865,11 +3379,17 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public boolean bindIsolatedService(android.content.Intent intent, int i, java.lang.String string, java.util.concurrent.Executor executor, android.content.ServiceConnection serviceConnection) - bool bindIsolatedService(Intent intent, int i, jni.JString string, - jni.JObject executor, jni.JObject serviceConnection) => - _bindIsolatedService(reference, intent.reference, i, string.reference, - executor.reference, serviceConnection.reference) - .boolean; + bool bindIsolatedService( + Intent intent, + int i, + jni.JString string, + jni.JObject executor, + jni.JObject serviceConnection, + ) { + return _bindIsolatedService(reference, intent.reference, i, + string.reference, executor.reference, serviceConnection.reference) + .boolean; + } static final _bindServiceAsUser = jniLookup< ffi.NativeFunction< @@ -2884,11 +3404,16 @@ class Context extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public boolean bindServiceAsUser(android.content.Intent intent, android.content.ServiceConnection serviceConnection, int i, android.os.UserHandle userHandle) - bool bindServiceAsUser(Intent intent, jni.JObject serviceConnection, int i, - jni.JObject userHandle) => - _bindServiceAsUser(reference, intent.reference, - serviceConnection.reference, i, userHandle.reference) - .boolean; + bool bindServiceAsUser( + Intent intent, + jni.JObject serviceConnection, + int i, + jni.JObject userHandle, + ) { + return _bindServiceAsUser(reference, intent.reference, + serviceConnection.reference, i, userHandle.reference) + .boolean; + } static final _updateServiceGroup = jniLookup< ffi.NativeFunction< @@ -2902,9 +3427,14 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int, int)>(); /// from: public void updateServiceGroup(android.content.ServiceConnection serviceConnection, int i, int i1) - void updateServiceGroup(jni.JObject serviceConnection, int i, int i1) => - _updateServiceGroup(reference, serviceConnection.reference, i, i1) - .check(); + void updateServiceGroup( + jni.JObject serviceConnection, + int i, + int i1, + ) { + return _updateServiceGroup(reference, serviceConnection.reference, i, i1) + .check(); + } static final _unbindService = jniLookup< ffi.NativeFunction< @@ -2915,8 +3445,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract void unbindService(android.content.ServiceConnection serviceConnection) - void unbindService(jni.JObject serviceConnection) => - _unbindService(reference, serviceConnection.reference).check(); + void unbindService( + jni.JObject serviceConnection, + ) { + return _unbindService(reference, serviceConnection.reference).check(); + } static final _startInstrumentation = jniLookup< ffi.NativeFunction< @@ -2931,10 +3464,14 @@ class Context extends jni.JObject { /// from: public abstract boolean startInstrumentation(android.content.ComponentName componentName, java.lang.String string, android.os.Bundle bundle) bool startInstrumentation( - jni.JObject componentName, jni.JString string, jni.JObject bundle) => - _startInstrumentation(reference, componentName.reference, - string.reference, bundle.reference) - .boolean; + jni.JObject componentName, + jni.JString string, + jni.JObject bundle, + ) { + return _startInstrumentation(reference, componentName.reference, + string.reference, bundle.reference) + .boolean; + } static final _getSystemService = jniLookup< ffi.NativeFunction< @@ -2946,8 +3483,12 @@ class Context extends jni.JObject { /// from: public abstract java.lang.Object getSystemService(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getSystemService(jni.JString string) => const jni.JObjectType() - .fromRef(_getSystemService(reference, string.reference).object); + jni.JObject getSystemService( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getSystemService(reference, string.reference).object); + } static final _getSystemService1 = jniLookup< ffi.NativeFunction< @@ -2959,9 +3500,12 @@ class Context extends jni.JObject { /// from: public final T getSystemService(java.lang.Class class) /// The returned object must be deleted after use, by calling the `delete` method. - T getSystemService1( - jni.JObjType $T, jni.JObject class0) => - $T.fromRef(_getSystemService1(reference, class0.reference).object); + $T getSystemService1<$T extends jni.JObject>( + jni.JObject class0, { + required jni.JObjType<$T> T, + }) { + return T.fromRef(_getSystemService1(reference, class0.reference).object); + } static final _getSystemServiceName = jniLookup< ffi.NativeFunction< @@ -2973,9 +3517,12 @@ class Context extends jni.JObject { /// from: public abstract java.lang.String getSystemServiceName(java.lang.Class class) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getSystemServiceName(jni.JObject class0) => - const jni.JStringType() - .fromRef(_getSystemServiceName(reference, class0.reference).object); + jni.JString getSystemServiceName( + jni.JObject class0, + ) { + return const jni.JStringType() + .fromRef(_getSystemServiceName(reference, class0.reference).object); + } static final _checkPermission = jniLookup< ffi.NativeFunction< @@ -2989,8 +3536,13 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int, int)>(); /// from: public abstract int checkPermission(java.lang.String string, int i, int i1) - int checkPermission(jni.JString string, int i, int i1) => - _checkPermission(reference, string.reference, i, i1).integer; + int checkPermission( + jni.JString string, + int i, + int i1, + ) { + return _checkPermission(reference, string.reference, i, i1).integer; + } static final _checkCallingPermission = jniLookup< ffi.NativeFunction< @@ -3001,8 +3553,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract int checkCallingPermission(java.lang.String string) - int checkCallingPermission(jni.JString string) => - _checkCallingPermission(reference, string.reference).integer; + int checkCallingPermission( + jni.JString string, + ) { + return _checkCallingPermission(reference, string.reference).integer; + } static final _checkCallingOrSelfPermission = jniLookup< ffi.NativeFunction< @@ -3014,8 +3569,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract int checkCallingOrSelfPermission(java.lang.String string) - int checkCallingOrSelfPermission(jni.JString string) => - _checkCallingOrSelfPermission(reference, string.reference).integer; + int checkCallingOrSelfPermission( + jni.JString string, + ) { + return _checkCallingOrSelfPermission(reference, string.reference).integer; + } static final _checkSelfPermission = jniLookup< ffi.NativeFunction< @@ -3026,8 +3584,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public abstract int checkSelfPermission(java.lang.String string) - int checkSelfPermission(jni.JString string) => - _checkSelfPermission(reference, string.reference).integer; + int checkSelfPermission( + jni.JString string, + ) { + return _checkSelfPermission(reference, string.reference).integer; + } static final _enforcePermission = jniLookup< ffi.NativeFunction< @@ -3043,9 +3604,15 @@ class Context extends jni.JObject { /// from: public abstract void enforcePermission(java.lang.String string, int i, int i1, java.lang.String string1) void enforcePermission( - jni.JString string, int i, int i1, jni.JString string1) => - _enforcePermission(reference, string.reference, i, i1, string1.reference) - .check(); + jni.JString string, + int i, + int i1, + jni.JString string1, + ) { + return _enforcePermission( + reference, string.reference, i, i1, string1.reference) + .check(); + } static final _enforceCallingPermission = jniLookup< ffi.NativeFunction< @@ -3058,9 +3625,14 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void enforceCallingPermission(java.lang.String string, java.lang.String string1) - void enforceCallingPermission(jni.JString string, jni.JString string1) => - _enforceCallingPermission(reference, string.reference, string1.reference) - .check(); + void enforceCallingPermission( + jni.JString string, + jni.JString string1, + ) { + return _enforceCallingPermission( + reference, string.reference, string1.reference) + .check(); + } static final _enforceCallingOrSelfPermission = jniLookup< ffi.NativeFunction< @@ -3073,10 +3645,13 @@ class Context extends jni.JObject { /// from: public abstract void enforceCallingOrSelfPermission(java.lang.String string, java.lang.String string1) void enforceCallingOrSelfPermission( - jni.JString string, jni.JString string1) => - _enforceCallingOrSelfPermission( - reference, string.reference, string1.reference) - .check(); + jni.JString string, + jni.JString string1, + ) { + return _enforceCallingOrSelfPermission( + reference, string.reference, string1.reference) + .check(); + } static final _grantUriPermission = jniLookup< ffi.NativeFunction< @@ -3090,9 +3665,14 @@ class Context extends jni.JObject { ffi.Pointer, int)>(); /// from: public abstract void grantUriPermission(java.lang.String string, android.net.Uri uri, int i) - void grantUriPermission(jni.JString string, jni.JObject uri, int i) => - _grantUriPermission(reference, string.reference, uri.reference, i) - .check(); + void grantUriPermission( + jni.JString string, + jni.JObject uri, + int i, + ) { + return _grantUriPermission(reference, string.reference, uri.reference, i) + .check(); + } static final _revokeUriPermission = jniLookup< ffi.NativeFunction< @@ -3105,8 +3685,12 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public abstract void revokeUriPermission(android.net.Uri uri, int i) - void revokeUriPermission(jni.JObject uri, int i) => - _revokeUriPermission(reference, uri.reference, i).check(); + void revokeUriPermission( + jni.JObject uri, + int i, + ) { + return _revokeUriPermission(reference, uri.reference, i).check(); + } static final _revokeUriPermission1 = jniLookup< ffi.NativeFunction< @@ -3120,9 +3704,14 @@ class Context extends jni.JObject { ffi.Pointer, int)>(); /// from: public abstract void revokeUriPermission(java.lang.String string, android.net.Uri uri, int i) - void revokeUriPermission1(jni.JString string, jni.JObject uri, int i) => - _revokeUriPermission1(reference, string.reference, uri.reference, i) - .check(); + void revokeUriPermission1( + jni.JString string, + jni.JObject uri, + int i, + ) { + return _revokeUriPermission1(reference, string.reference, uri.reference, i) + .check(); + } static final _checkUriPermission = jniLookup< ffi.NativeFunction< @@ -3137,8 +3726,14 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int, int, int)>(); /// from: public abstract int checkUriPermission(android.net.Uri uri, int i, int i1, int i2) - int checkUriPermission(jni.JObject uri, int i, int i1, int i2) => - _checkUriPermission(reference, uri.reference, i, i1, i2).integer; + int checkUriPermission( + jni.JObject uri, + int i, + int i1, + int i2, + ) { + return _checkUriPermission(reference, uri.reference, i, i1, i2).integer; + } static final _checkUriPermissions = jniLookup< ffi.NativeFunction< @@ -3154,10 +3749,15 @@ class Context extends jni.JObject { /// 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. - jni.JArray checkUriPermissions( - jni.JObject list, int i, int i1, int i2) => - const jni.JArrayType(jni.JIntType()).fromRef( - _checkUriPermissions(reference, list.reference, i, i1, i2).object); + jni.JArray checkUriPermissions( + jni.JList list, + int i, + int i1, + int i2, + ) { + return const jni.JArrayType(jni.jintType()).fromRef( + _checkUriPermissions(reference, list.reference, i, i1, i2).object); + } static final _checkCallingUriPermission = jniLookup< ffi.NativeFunction< @@ -3170,8 +3770,12 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public abstract int checkCallingUriPermission(android.net.Uri uri, int i) - int checkCallingUriPermission(jni.JObject uri, int i) => - _checkCallingUriPermission(reference, uri.reference, i).integer; + int checkCallingUriPermission( + jni.JObject uri, + int i, + ) { + return _checkCallingUriPermission(reference, uri.reference, i).integer; + } static final _checkCallingUriPermissions = jniLookup< ffi.NativeFunction< @@ -3185,9 +3789,13 @@ class Context extends jni.JObject { /// 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. - jni.JArray checkCallingUriPermissions(jni.JObject list, int i) => - const jni.JArrayType(jni.JIntType()).fromRef( - _checkCallingUriPermissions(reference, list.reference, i).object); + jni.JArray checkCallingUriPermissions( + jni.JList list, + int i, + ) { + return const jni.JArrayType(jni.jintType()).fromRef( + _checkCallingUriPermissions(reference, list.reference, i).object); + } static final _checkCallingOrSelfUriPermission = jniLookup< ffi.NativeFunction< @@ -3200,8 +3808,13 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public abstract int checkCallingOrSelfUriPermission(android.net.Uri uri, int i) - int checkCallingOrSelfUriPermission(jni.JObject uri, int i) => - _checkCallingOrSelfUriPermission(reference, uri.reference, i).integer; + int checkCallingOrSelfUriPermission( + jni.JObject uri, + int i, + ) { + return _checkCallingOrSelfUriPermission(reference, uri.reference, i) + .integer; + } static final _checkCallingOrSelfUriPermissions = jniLookup< ffi.NativeFunction< @@ -3215,11 +3828,13 @@ class Context extends jni.JObject { /// 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. - jni.JArray checkCallingOrSelfUriPermissions( - jni.JObject list, int i) => - const jni.JArrayType(jni.JIntType()).fromRef( - _checkCallingOrSelfUriPermissions(reference, list.reference, i) - .object); + jni.JArray checkCallingOrSelfUriPermissions( + jni.JList list, + int i, + ) { + return const jni.JArrayType(jni.jintType()).fromRef( + _checkCallingOrSelfUriPermissions(reference, list.reference, i).object); + } static final _checkUriPermission1 = jniLookup< ffi.NativeFunction< @@ -3236,11 +3851,18 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer, int, int, int)>(); /// from: public abstract int checkUriPermission(android.net.Uri uri, java.lang.String string, java.lang.String string1, int i, int i1, int i2) - int checkUriPermission1(jni.JObject uri, jni.JString string, - jni.JString string1, int i, int i1, int i2) => - _checkUriPermission1(reference, uri.reference, string.reference, - string1.reference, i, i1, i2) - .integer; + int checkUriPermission1( + jni.JObject uri, + jni.JString string, + jni.JString string1, + int i, + int i1, + int i2, + ) { + return _checkUriPermission1(reference, uri.reference, string.reference, + string1.reference, i, i1, i2) + .integer; + } static final _enforceUriPermission = jniLookup< ffi.NativeFunction< @@ -3257,10 +3879,16 @@ class Context extends jni.JObject { /// from: public abstract void enforceUriPermission(android.net.Uri uri, int i, int i1, int i2, java.lang.String string) void enforceUriPermission( - jni.JObject uri, int i, int i1, int i2, jni.JString string) => - _enforceUriPermission( - reference, uri.reference, i, i1, i2, string.reference) - .check(); + jni.JObject uri, + int i, + int i1, + int i2, + jni.JString string, + ) { + return _enforceUriPermission( + reference, uri.reference, i, i1, i2, string.reference) + .check(); + } static final _enforceCallingUriPermission = jniLookup< ffi.NativeFunction< @@ -3276,10 +3904,14 @@ class Context extends jni.JObject { /// from: public abstract void enforceCallingUriPermission(android.net.Uri uri, int i, java.lang.String string) void enforceCallingUriPermission( - jni.JObject uri, int i, jni.JString string) => - _enforceCallingUriPermission( - reference, uri.reference, i, string.reference) - .check(); + jni.JObject uri, + int i, + jni.JString string, + ) { + return _enforceCallingUriPermission( + reference, uri.reference, i, string.reference) + .check(); + } static final _enforceCallingOrSelfUriPermission = jniLookup< ffi.NativeFunction< @@ -3295,10 +3927,14 @@ class Context extends jni.JObject { /// from: public abstract void enforceCallingOrSelfUriPermission(android.net.Uri uri, int i, java.lang.String string) void enforceCallingOrSelfUriPermission( - jni.JObject uri, int i, jni.JString string) => - _enforceCallingOrSelfUriPermission( - reference, uri.reference, i, string.reference) - .check(); + jni.JObject uri, + int i, + jni.JString string, + ) { + return _enforceCallingOrSelfUriPermission( + reference, uri.reference, i, string.reference) + .check(); + } static final _enforceUriPermission1 = jniLookup< ffi.NativeFunction< @@ -3323,11 +3959,19 @@ class Context extends jni.JObject { ffi.Pointer)>(); /// from: public abstract void enforceUriPermission(android.net.Uri uri, java.lang.String string, java.lang.String string1, int i, int i1, int i2, java.lang.String string2) - void enforceUriPermission1(jni.JObject uri, jni.JString string, - jni.JString string1, int i, int i1, int i2, jni.JString string2) => - _enforceUriPermission1(reference, uri.reference, string.reference, - string1.reference, i, i1, i2, string2.reference) - .check(); + void enforceUriPermission1( + jni.JObject uri, + jni.JString string, + jni.JString string1, + int i, + int i1, + int i2, + jni.JString string2, + ) { + return _enforceUriPermission1(reference, uri.reference, string.reference, + string1.reference, i, i1, i2, string2.reference) + .check(); + } static final _revokeSelfPermissionOnKill = jniLookup< ffi.NativeFunction< @@ -3339,8 +3983,11 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void revokeSelfPermissionOnKill(java.lang.String string) - void revokeSelfPermissionOnKill(jni.JString string) => - _revokeSelfPermissionOnKill(reference, string.reference).check(); + void revokeSelfPermissionOnKill( + jni.JString string, + ) { + return _revokeSelfPermissionOnKill(reference, string.reference).check(); + } static final _revokeSelfPermissionsOnKill = jniLookup< ffi.NativeFunction< @@ -3352,8 +3999,12 @@ class Context extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void revokeSelfPermissionsOnKill(java.util.Collection collection) - void revokeSelfPermissionsOnKill(jni.JObject collection) => - _revokeSelfPermissionsOnKill(reference, collection.reference).check(); + void revokeSelfPermissionsOnKill( + jni.JObject collection, + ) { + return _revokeSelfPermissionsOnKill(reference, collection.reference) + .check(); + } static final _createPackageContext = jniLookup< ffi.NativeFunction< @@ -3367,9 +4018,13 @@ class Context extends jni.JObject { /// 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. - Context createPackageContext(jni.JString string, int i) => - const $ContextType().fromRef( - _createPackageContext(reference, string.reference, i).object); + Context createPackageContext( + jni.JString string, + int i, + ) { + return const $ContextType() + .fromRef(_createPackageContext(reference, string.reference, i).object); + } static final _createContextForSplit = jniLookup< ffi.NativeFunction< @@ -3381,8 +4036,12 @@ class Context extends jni.JObject { /// from: public abstract android.content.Context createContextForSplit(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - Context createContextForSplit(jni.JString string) => const $ContextType() - .fromRef(_createContextForSplit(reference, string.reference).object); + Context createContextForSplit( + jni.JString string, + ) { + return const $ContextType() + .fromRef(_createContextForSplit(reference, string.reference).object); + } static final _createConfigurationContext = jniLookup< ffi.NativeFunction< @@ -3395,10 +4054,12 @@ class Context extends jni.JObject { /// 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. - Context createConfigurationContext(jni.JObject configuration) => - const $ContextType().fromRef( - _createConfigurationContext(reference, configuration.reference) - .object); + Context createConfigurationContext( + jni.JObject configuration, + ) { + return const $ContextType().fromRef( + _createConfigurationContext(reference, configuration.reference).object); + } static final _createDisplayContext = jniLookup< ffi.NativeFunction< @@ -3410,8 +4071,12 @@ class Context extends jni.JObject { /// from: public abstract android.content.Context createDisplayContext(android.view.Display display) /// The returned object must be deleted after use, by calling the `delete` method. - Context createDisplayContext(jni.JObject display) => const $ContextType() - .fromRef(_createDisplayContext(reference, display.reference).object); + Context createDisplayContext( + jni.JObject display, + ) { + return const $ContextType() + .fromRef(_createDisplayContext(reference, display.reference).object); + } static final _createWindowContext = jniLookup< ffi.NativeFunction< @@ -3423,8 +4088,13 @@ class Context extends jni.JObject { /// 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. - Context createWindowContext(int i, jni.JObject bundle) => const $ContextType() - .fromRef(_createWindowContext(reference, i, bundle.reference).object); + Context createWindowContext( + int i, + jni.JObject bundle, + ) { + return const $ContextType() + .fromRef(_createWindowContext(reference, i, bundle.reference).object); + } static final _createWindowContext1 = jniLookup< ffi.NativeFunction< @@ -3440,10 +4110,14 @@ class Context extends jni.JObject { /// 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. Context createWindowContext1( - jni.JObject display, int i, jni.JObject bundle) => - const $ContextType().fromRef(_createWindowContext1( - reference, display.reference, i, bundle.reference) - .object); + jni.JObject display, + int i, + jni.JObject bundle, + ) { + return const $ContextType().fromRef( + _createWindowContext1(reference, display.reference, i, bundle.reference) + .object); + } static final _createContext = jniLookup< ffi.NativeFunction< @@ -3455,8 +4129,12 @@ class Context extends jni.JObject { /// from: public android.content.Context createContext(android.content.ContextParams contextParams) /// The returned object must be deleted after use, by calling the `delete` method. - Context createContext(jni.JObject contextParams) => const $ContextType() - .fromRef(_createContext(reference, contextParams.reference).object); + Context createContext( + jni.JObject contextParams, + ) { + return const $ContextType() + .fromRef(_createContext(reference, contextParams.reference).object); + } static final _createAttributionContext = jniLookup< ffi.NativeFunction< @@ -3468,8 +4146,12 @@ class Context extends jni.JObject { /// from: public android.content.Context createAttributionContext(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - Context createAttributionContext(jni.JString string) => const $ContextType() - .fromRef(_createAttributionContext(reference, string.reference).object); + Context createAttributionContext( + jni.JString string, + ) { + return const $ContextType() + .fromRef(_createAttributionContext(reference, string.reference).object); + } static final _createDeviceProtectedStorageContext = jniLookup< ffi.NativeFunction< @@ -3479,8 +4161,10 @@ class Context extends jni.JObject { /// from: public abstract android.content.Context createDeviceProtectedStorageContext() /// The returned object must be deleted after use, by calling the `delete` method. - Context createDeviceProtectedStorageContext() => const $ContextType() - .fromRef(_createDeviceProtectedStorageContext(reference).object); + Context createDeviceProtectedStorageContext() { + return const $ContextType() + .fromRef(_createDeviceProtectedStorageContext(reference).object); + } static final _getDisplay = jniLookup< ffi.NativeFunction< @@ -3490,8 +4174,9 @@ class Context extends jni.JObject { /// from: public android.view.Display getDisplay() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getDisplay() => - const jni.JObjectType().fromRef(_getDisplay(reference).object); + jni.JObject getDisplay() { + return const jni.JObjectType().fromRef(_getDisplay(reference).object); + } static final _isRestricted = jniLookup< ffi.NativeFunction< @@ -3500,7 +4185,9 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public boolean isRestricted() - bool isRestricted() => _isRestricted(reference).boolean; + bool isRestricted() { + return _isRestricted(reference).boolean; + } static final _isDeviceProtectedStorage = jniLookup< ffi.NativeFunction< @@ -3509,8 +4196,9 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public abstract boolean isDeviceProtectedStorage() - bool isDeviceProtectedStorage() => - _isDeviceProtectedStorage(reference).boolean; + bool isDeviceProtectedStorage() { + return _isDeviceProtectedStorage(reference).boolean; + } static final _isUiContext = jniLookup< ffi.NativeFunction< @@ -3519,7 +4207,9 @@ class Context extends jni.JObject { .asFunction)>(); /// from: public boolean isUiContext() - bool isUiContext() => _isUiContext(reference).boolean; + bool isUiContext() { + return _isUiContext(reference).boolean; + } } class $ContextType extends jni.JObjType { @@ -3530,24 +4220,26 @@ class $ContextType extends jni.JObjType { @override Context fromRef(jni.JObjectPtr ref) => Context.fromRef(ref); -} -extension $ContextArray on jni.JArray { - Context operator [](int index) { - return (elementType as $ContextType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($ContextType).hashCode; - void operator []=(int index, Context value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($ContextType) && other is $ContextType; } } /// from: android.content.Intent class Intent extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; Intent.fromRef( jni.JObjectPtr ref, @@ -3558,612 +4250,656 @@ class Intent extends jni.JObject { /// from: static public final java.lang.String ACTION_AIRPLANE_MODE_CHANGED static const ACTION_AIRPLANE_MODE_CHANGED = - "android.intent.action.AIRPLANE_MODE"; + r"""android.intent.action.AIRPLANE_MODE"""; /// from: static public final java.lang.String ACTION_ALL_APPS - static const ACTION_ALL_APPS = "android.intent.action.ALL_APPS"; + static const ACTION_ALL_APPS = r"""android.intent.action.ALL_APPS"""; /// from: static public final java.lang.String ACTION_ANSWER - static const ACTION_ANSWER = "android.intent.action.ANSWER"; + static const ACTION_ANSWER = r"""android.intent.action.ANSWER"""; /// from: static public final java.lang.String ACTION_APPLICATION_LOCALE_CHANGED static const ACTION_APPLICATION_LOCALE_CHANGED = - "android.intent.action.APPLICATION_LOCALE_CHANGED"; + r"""android.intent.action.APPLICATION_LOCALE_CHANGED"""; /// from: static public final java.lang.String ACTION_APPLICATION_PREFERENCES static const ACTION_APPLICATION_PREFERENCES = - "android.intent.action.APPLICATION_PREFERENCES"; + r"""android.intent.action.APPLICATION_PREFERENCES"""; /// from: static public final java.lang.String ACTION_APPLICATION_RESTRICTIONS_CHANGED static const ACTION_APPLICATION_RESTRICTIONS_CHANGED = - "android.intent.action.APPLICATION_RESTRICTIONS_CHANGED"; + r"""android.intent.action.APPLICATION_RESTRICTIONS_CHANGED"""; /// from: static public final java.lang.String ACTION_APP_ERROR - static const ACTION_APP_ERROR = "android.intent.action.APP_ERROR"; + static const ACTION_APP_ERROR = r"""android.intent.action.APP_ERROR"""; /// from: static public final java.lang.String ACTION_ASSIST - static const ACTION_ASSIST = "android.intent.action.ASSIST"; + static const ACTION_ASSIST = r"""android.intent.action.ASSIST"""; /// from: static public final java.lang.String ACTION_ATTACH_DATA - static const ACTION_ATTACH_DATA = "android.intent.action.ATTACH_DATA"; + static const ACTION_ATTACH_DATA = r"""android.intent.action.ATTACH_DATA"""; /// from: static public final java.lang.String ACTION_AUTO_REVOKE_PERMISSIONS static const ACTION_AUTO_REVOKE_PERMISSIONS = - "android.intent.action.AUTO_REVOKE_PERMISSIONS"; + r"""android.intent.action.AUTO_REVOKE_PERMISSIONS"""; /// from: static public final java.lang.String ACTION_BATTERY_CHANGED - static const ACTION_BATTERY_CHANGED = "android.intent.action.BATTERY_CHANGED"; + static const ACTION_BATTERY_CHANGED = + r"""android.intent.action.BATTERY_CHANGED"""; /// from: static public final java.lang.String ACTION_BATTERY_LOW - static const ACTION_BATTERY_LOW = "android.intent.action.BATTERY_LOW"; + static const ACTION_BATTERY_LOW = r"""android.intent.action.BATTERY_LOW"""; /// from: static public final java.lang.String ACTION_BATTERY_OKAY - static const ACTION_BATTERY_OKAY = "android.intent.action.BATTERY_OKAY"; + static const ACTION_BATTERY_OKAY = r"""android.intent.action.BATTERY_OKAY"""; /// from: static public final java.lang.String ACTION_BOOT_COMPLETED - static const ACTION_BOOT_COMPLETED = "android.intent.action.BOOT_COMPLETED"; + static const ACTION_BOOT_COMPLETED = + r"""android.intent.action.BOOT_COMPLETED"""; /// from: static public final java.lang.String ACTION_BUG_REPORT - static const ACTION_BUG_REPORT = "android.intent.action.BUG_REPORT"; + static const ACTION_BUG_REPORT = r"""android.intent.action.BUG_REPORT"""; /// from: static public final java.lang.String ACTION_CALL - static const ACTION_CALL = "android.intent.action.CALL"; + static const ACTION_CALL = r"""android.intent.action.CALL"""; /// from: static public final java.lang.String ACTION_CALL_BUTTON - static const ACTION_CALL_BUTTON = "android.intent.action.CALL_BUTTON"; + static const ACTION_CALL_BUTTON = r"""android.intent.action.CALL_BUTTON"""; /// from: static public final java.lang.String ACTION_CAMERA_BUTTON - static const ACTION_CAMERA_BUTTON = "android.intent.action.CAMERA_BUTTON"; + static const ACTION_CAMERA_BUTTON = + r"""android.intent.action.CAMERA_BUTTON"""; /// from: static public final java.lang.String ACTION_CARRIER_SETUP - static const ACTION_CARRIER_SETUP = "android.intent.action.CARRIER_SETUP"; + static const ACTION_CARRIER_SETUP = + r"""android.intent.action.CARRIER_SETUP"""; /// from: static public final java.lang.String ACTION_CHOOSER - static const ACTION_CHOOSER = "android.intent.action.CHOOSER"; + static const ACTION_CHOOSER = r"""android.intent.action.CHOOSER"""; /// from: static public final java.lang.String ACTION_CLOSE_SYSTEM_DIALOGS static const ACTION_CLOSE_SYSTEM_DIALOGS = - "android.intent.action.CLOSE_SYSTEM_DIALOGS"; + r"""android.intent.action.CLOSE_SYSTEM_DIALOGS"""; /// from: static public final java.lang.String ACTION_CONFIGURATION_CHANGED static const ACTION_CONFIGURATION_CHANGED = - "android.intent.action.CONFIGURATION_CHANGED"; + r"""android.intent.action.CONFIGURATION_CHANGED"""; /// from: static public final java.lang.String ACTION_CREATE_DOCUMENT - static const ACTION_CREATE_DOCUMENT = "android.intent.action.CREATE_DOCUMENT"; + static const ACTION_CREATE_DOCUMENT = + r"""android.intent.action.CREATE_DOCUMENT"""; /// from: static public final java.lang.String ACTION_CREATE_REMINDER - static const ACTION_CREATE_REMINDER = "android.intent.action.CREATE_REMINDER"; + static const ACTION_CREATE_REMINDER = + r"""android.intent.action.CREATE_REMINDER"""; /// from: static public final java.lang.String ACTION_CREATE_SHORTCUT - static const ACTION_CREATE_SHORTCUT = "android.intent.action.CREATE_SHORTCUT"; + static const ACTION_CREATE_SHORTCUT = + r"""android.intent.action.CREATE_SHORTCUT"""; /// from: static public final java.lang.String ACTION_DATE_CHANGED - static const ACTION_DATE_CHANGED = "android.intent.action.DATE_CHANGED"; + static const ACTION_DATE_CHANGED = r"""android.intent.action.DATE_CHANGED"""; /// from: static public final java.lang.String ACTION_DEFAULT - static const ACTION_DEFAULT = "android.intent.action.VIEW"; + static const ACTION_DEFAULT = r"""android.intent.action.VIEW"""; /// from: static public final java.lang.String ACTION_DEFINE - static const ACTION_DEFINE = "android.intent.action.DEFINE"; + static const ACTION_DEFINE = r"""android.intent.action.DEFINE"""; /// from: static public final java.lang.String ACTION_DELETE - static const ACTION_DELETE = "android.intent.action.DELETE"; + static const ACTION_DELETE = r"""android.intent.action.DELETE"""; /// from: static public final java.lang.String ACTION_DEVICE_STORAGE_LOW static const ACTION_DEVICE_STORAGE_LOW = - "android.intent.action.DEVICE_STORAGE_LOW"; + r"""android.intent.action.DEVICE_STORAGE_LOW"""; /// from: static public final java.lang.String ACTION_DEVICE_STORAGE_OK static const ACTION_DEVICE_STORAGE_OK = - "android.intent.action.DEVICE_STORAGE_OK"; + r"""android.intent.action.DEVICE_STORAGE_OK"""; /// from: static public final java.lang.String ACTION_DIAL - static const ACTION_DIAL = "android.intent.action.DIAL"; + static const ACTION_DIAL = r"""android.intent.action.DIAL"""; /// from: static public final java.lang.String ACTION_DOCK_EVENT - static const ACTION_DOCK_EVENT = "android.intent.action.DOCK_EVENT"; + static const ACTION_DOCK_EVENT = r"""android.intent.action.DOCK_EVENT"""; /// from: static public final java.lang.String ACTION_DREAMING_STARTED static const ACTION_DREAMING_STARTED = - "android.intent.action.DREAMING_STARTED"; + r"""android.intent.action.DREAMING_STARTED"""; /// from: static public final java.lang.String ACTION_DREAMING_STOPPED static const ACTION_DREAMING_STOPPED = - "android.intent.action.DREAMING_STOPPED"; + r"""android.intent.action.DREAMING_STOPPED"""; /// from: static public final java.lang.String ACTION_EDIT - static const ACTION_EDIT = "android.intent.action.EDIT"; + static const ACTION_EDIT = r"""android.intent.action.EDIT"""; /// from: static public final java.lang.String ACTION_EXTERNAL_APPLICATIONS_AVAILABLE static const ACTION_EXTERNAL_APPLICATIONS_AVAILABLE = - "android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE"; + r"""android.intent.action.EXTERNAL_APPLICATIONS_AVAILABLE"""; /// from: static public final java.lang.String ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE static const ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE = - "android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE"; + r"""android.intent.action.EXTERNAL_APPLICATIONS_UNAVAILABLE"""; /// from: static public final java.lang.String ACTION_FACTORY_TEST - static const ACTION_FACTORY_TEST = "android.intent.action.FACTORY_TEST"; + static const ACTION_FACTORY_TEST = r"""android.intent.action.FACTORY_TEST"""; /// from: static public final java.lang.String ACTION_GET_CONTENT - static const ACTION_GET_CONTENT = "android.intent.action.GET_CONTENT"; + static const ACTION_GET_CONTENT = r"""android.intent.action.GET_CONTENT"""; /// from: static public final java.lang.String ACTION_GET_RESTRICTION_ENTRIES static const ACTION_GET_RESTRICTION_ENTRIES = - "android.intent.action.GET_RESTRICTION_ENTRIES"; + r"""android.intent.action.GET_RESTRICTION_ENTRIES"""; /// from: static public final java.lang.String ACTION_GTALK_SERVICE_CONNECTED static const ACTION_GTALK_SERVICE_CONNECTED = - "android.intent.action.GTALK_CONNECTED"; + r"""android.intent.action.GTALK_CONNECTED"""; /// from: static public final java.lang.String ACTION_GTALK_SERVICE_DISCONNECTED static const ACTION_GTALK_SERVICE_DISCONNECTED = - "android.intent.action.GTALK_DISCONNECTED"; + r"""android.intent.action.GTALK_DISCONNECTED"""; /// from: static public final java.lang.String ACTION_HEADSET_PLUG - static const ACTION_HEADSET_PLUG = "android.intent.action.HEADSET_PLUG"; + static const ACTION_HEADSET_PLUG = r"""android.intent.action.HEADSET_PLUG"""; /// from: static public final java.lang.String ACTION_INPUT_METHOD_CHANGED static const ACTION_INPUT_METHOD_CHANGED = - "android.intent.action.INPUT_METHOD_CHANGED"; + r"""android.intent.action.INPUT_METHOD_CHANGED"""; /// from: static public final java.lang.String ACTION_INSERT - static const ACTION_INSERT = "android.intent.action.INSERT"; + static const ACTION_INSERT = r"""android.intent.action.INSERT"""; /// from: static public final java.lang.String ACTION_INSERT_OR_EDIT - static const ACTION_INSERT_OR_EDIT = "android.intent.action.INSERT_OR_EDIT"; + static const ACTION_INSERT_OR_EDIT = + r"""android.intent.action.INSERT_OR_EDIT"""; /// from: static public final java.lang.String ACTION_INSTALL_FAILURE - static const ACTION_INSTALL_FAILURE = "android.intent.action.INSTALL_FAILURE"; + static const ACTION_INSTALL_FAILURE = + r"""android.intent.action.INSTALL_FAILURE"""; /// from: static public final java.lang.String ACTION_INSTALL_PACKAGE - static const ACTION_INSTALL_PACKAGE = "android.intent.action.INSTALL_PACKAGE"; + static const ACTION_INSTALL_PACKAGE = + r"""android.intent.action.INSTALL_PACKAGE"""; /// from: static public final java.lang.String ACTION_LOCALE_CHANGED - static const ACTION_LOCALE_CHANGED = "android.intent.action.LOCALE_CHANGED"; + static const ACTION_LOCALE_CHANGED = + r"""android.intent.action.LOCALE_CHANGED"""; /// from: static public final java.lang.String ACTION_LOCKED_BOOT_COMPLETED static const ACTION_LOCKED_BOOT_COMPLETED = - "android.intent.action.LOCKED_BOOT_COMPLETED"; + r"""android.intent.action.LOCKED_BOOT_COMPLETED"""; /// from: static public final java.lang.String ACTION_MAIN - static const ACTION_MAIN = "android.intent.action.MAIN"; + static const ACTION_MAIN = r"""android.intent.action.MAIN"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_ADDED static const ACTION_MANAGED_PROFILE_ADDED = - "android.intent.action.MANAGED_PROFILE_ADDED"; + r"""android.intent.action.MANAGED_PROFILE_ADDED"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_AVAILABLE static const ACTION_MANAGED_PROFILE_AVAILABLE = - "android.intent.action.MANAGED_PROFILE_AVAILABLE"; + r"""android.intent.action.MANAGED_PROFILE_AVAILABLE"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_REMOVED static const ACTION_MANAGED_PROFILE_REMOVED = - "android.intent.action.MANAGED_PROFILE_REMOVED"; + r"""android.intent.action.MANAGED_PROFILE_REMOVED"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_UNAVAILABLE static const ACTION_MANAGED_PROFILE_UNAVAILABLE = - "android.intent.action.MANAGED_PROFILE_UNAVAILABLE"; + r"""android.intent.action.MANAGED_PROFILE_UNAVAILABLE"""; /// from: static public final java.lang.String ACTION_MANAGED_PROFILE_UNLOCKED static const ACTION_MANAGED_PROFILE_UNLOCKED = - "android.intent.action.MANAGED_PROFILE_UNLOCKED"; + r"""android.intent.action.MANAGED_PROFILE_UNLOCKED"""; /// from: static public final java.lang.String ACTION_MANAGE_NETWORK_USAGE static const ACTION_MANAGE_NETWORK_USAGE = - "android.intent.action.MANAGE_NETWORK_USAGE"; + r"""android.intent.action.MANAGE_NETWORK_USAGE"""; /// from: static public final java.lang.String ACTION_MANAGE_PACKAGE_STORAGE static const ACTION_MANAGE_PACKAGE_STORAGE = - "android.intent.action.MANAGE_PACKAGE_STORAGE"; + r"""android.intent.action.MANAGE_PACKAGE_STORAGE"""; /// from: static public final java.lang.String ACTION_MANAGE_UNUSED_APPS static const ACTION_MANAGE_UNUSED_APPS = - "android.intent.action.MANAGE_UNUSED_APPS"; + r"""android.intent.action.MANAGE_UNUSED_APPS"""; /// from: static public final java.lang.String ACTION_MEDIA_BAD_REMOVAL static const ACTION_MEDIA_BAD_REMOVAL = - "android.intent.action.MEDIA_BAD_REMOVAL"; + r"""android.intent.action.MEDIA_BAD_REMOVAL"""; /// from: static public final java.lang.String ACTION_MEDIA_BUTTON - static const ACTION_MEDIA_BUTTON = "android.intent.action.MEDIA_BUTTON"; + static const ACTION_MEDIA_BUTTON = r"""android.intent.action.MEDIA_BUTTON"""; /// from: static public final java.lang.String ACTION_MEDIA_CHECKING - static const ACTION_MEDIA_CHECKING = "android.intent.action.MEDIA_CHECKING"; + static const ACTION_MEDIA_CHECKING = + r"""android.intent.action.MEDIA_CHECKING"""; /// from: static public final java.lang.String ACTION_MEDIA_EJECT - static const ACTION_MEDIA_EJECT = "android.intent.action.MEDIA_EJECT"; + static const ACTION_MEDIA_EJECT = r"""android.intent.action.MEDIA_EJECT"""; /// from: static public final java.lang.String ACTION_MEDIA_MOUNTED - static const ACTION_MEDIA_MOUNTED = "android.intent.action.MEDIA_MOUNTED"; + static const ACTION_MEDIA_MOUNTED = + r"""android.intent.action.MEDIA_MOUNTED"""; /// from: static public final java.lang.String ACTION_MEDIA_NOFS - static const ACTION_MEDIA_NOFS = "android.intent.action.MEDIA_NOFS"; + static const ACTION_MEDIA_NOFS = r"""android.intent.action.MEDIA_NOFS"""; /// from: static public final java.lang.String ACTION_MEDIA_REMOVED - static const ACTION_MEDIA_REMOVED = "android.intent.action.MEDIA_REMOVED"; + static const ACTION_MEDIA_REMOVED = + r"""android.intent.action.MEDIA_REMOVED"""; /// from: static public final java.lang.String ACTION_MEDIA_SCANNER_FINISHED static const ACTION_MEDIA_SCANNER_FINISHED = - "android.intent.action.MEDIA_SCANNER_FINISHED"; + r"""android.intent.action.MEDIA_SCANNER_FINISHED"""; /// from: static public final java.lang.String ACTION_MEDIA_SCANNER_SCAN_FILE static const ACTION_MEDIA_SCANNER_SCAN_FILE = - "android.intent.action.MEDIA_SCANNER_SCAN_FILE"; + r"""android.intent.action.MEDIA_SCANNER_SCAN_FILE"""; /// from: static public final java.lang.String ACTION_MEDIA_SCANNER_STARTED static const ACTION_MEDIA_SCANNER_STARTED = - "android.intent.action.MEDIA_SCANNER_STARTED"; + r"""android.intent.action.MEDIA_SCANNER_STARTED"""; /// from: static public final java.lang.String ACTION_MEDIA_SHARED - static const ACTION_MEDIA_SHARED = "android.intent.action.MEDIA_SHARED"; + static const ACTION_MEDIA_SHARED = r"""android.intent.action.MEDIA_SHARED"""; /// from: static public final java.lang.String ACTION_MEDIA_UNMOUNTABLE static const ACTION_MEDIA_UNMOUNTABLE = - "android.intent.action.MEDIA_UNMOUNTABLE"; + r"""android.intent.action.MEDIA_UNMOUNTABLE"""; /// from: static public final java.lang.String ACTION_MEDIA_UNMOUNTED - static const ACTION_MEDIA_UNMOUNTED = "android.intent.action.MEDIA_UNMOUNTED"; + static const ACTION_MEDIA_UNMOUNTED = + r"""android.intent.action.MEDIA_UNMOUNTED"""; /// from: static public final java.lang.String ACTION_MY_PACKAGE_REPLACED static const ACTION_MY_PACKAGE_REPLACED = - "android.intent.action.MY_PACKAGE_REPLACED"; + r"""android.intent.action.MY_PACKAGE_REPLACED"""; /// from: static public final java.lang.String ACTION_MY_PACKAGE_SUSPENDED static const ACTION_MY_PACKAGE_SUSPENDED = - "android.intent.action.MY_PACKAGE_SUSPENDED"; + r"""android.intent.action.MY_PACKAGE_SUSPENDED"""; /// from: static public final java.lang.String ACTION_MY_PACKAGE_UNSUSPENDED static const ACTION_MY_PACKAGE_UNSUSPENDED = - "android.intent.action.MY_PACKAGE_UNSUSPENDED"; + r"""android.intent.action.MY_PACKAGE_UNSUSPENDED"""; /// from: static public final java.lang.String ACTION_NEW_OUTGOING_CALL static const ACTION_NEW_OUTGOING_CALL = - "android.intent.action.NEW_OUTGOING_CALL"; + r"""android.intent.action.NEW_OUTGOING_CALL"""; /// from: static public final java.lang.String ACTION_OPEN_DOCUMENT - static const ACTION_OPEN_DOCUMENT = "android.intent.action.OPEN_DOCUMENT"; + static const ACTION_OPEN_DOCUMENT = + r"""android.intent.action.OPEN_DOCUMENT"""; /// from: static public final java.lang.String ACTION_OPEN_DOCUMENT_TREE static const ACTION_OPEN_DOCUMENT_TREE = - "android.intent.action.OPEN_DOCUMENT_TREE"; + r"""android.intent.action.OPEN_DOCUMENT_TREE"""; /// from: static public final java.lang.String ACTION_PACKAGES_SUSPENDED static const ACTION_PACKAGES_SUSPENDED = - "android.intent.action.PACKAGES_SUSPENDED"; + r"""android.intent.action.PACKAGES_SUSPENDED"""; /// from: static public final java.lang.String ACTION_PACKAGES_UNSUSPENDED static const ACTION_PACKAGES_UNSUSPENDED = - "android.intent.action.PACKAGES_UNSUSPENDED"; + r"""android.intent.action.PACKAGES_UNSUSPENDED"""; /// from: static public final java.lang.String ACTION_PACKAGE_ADDED - static const ACTION_PACKAGE_ADDED = "android.intent.action.PACKAGE_ADDED"; + static const ACTION_PACKAGE_ADDED = + r"""android.intent.action.PACKAGE_ADDED"""; /// from: static public final java.lang.String ACTION_PACKAGE_CHANGED - static const ACTION_PACKAGE_CHANGED = "android.intent.action.PACKAGE_CHANGED"; + static const ACTION_PACKAGE_CHANGED = + r"""android.intent.action.PACKAGE_CHANGED"""; /// from: static public final java.lang.String ACTION_PACKAGE_DATA_CLEARED static const ACTION_PACKAGE_DATA_CLEARED = - "android.intent.action.PACKAGE_DATA_CLEARED"; + r"""android.intent.action.PACKAGE_DATA_CLEARED"""; /// from: static public final java.lang.String ACTION_PACKAGE_FIRST_LAUNCH static const ACTION_PACKAGE_FIRST_LAUNCH = - "android.intent.action.PACKAGE_FIRST_LAUNCH"; + r"""android.intent.action.PACKAGE_FIRST_LAUNCH"""; /// from: static public final java.lang.String ACTION_PACKAGE_FULLY_REMOVED static const ACTION_PACKAGE_FULLY_REMOVED = - "android.intent.action.PACKAGE_FULLY_REMOVED"; + r"""android.intent.action.PACKAGE_FULLY_REMOVED"""; /// from: static public final java.lang.String ACTION_PACKAGE_INSTALL - static const ACTION_PACKAGE_INSTALL = "android.intent.action.PACKAGE_INSTALL"; + static const ACTION_PACKAGE_INSTALL = + r"""android.intent.action.PACKAGE_INSTALL"""; /// from: static public final java.lang.String ACTION_PACKAGE_NEEDS_VERIFICATION static const ACTION_PACKAGE_NEEDS_VERIFICATION = - "android.intent.action.PACKAGE_NEEDS_VERIFICATION"; + r"""android.intent.action.PACKAGE_NEEDS_VERIFICATION"""; /// from: static public final java.lang.String ACTION_PACKAGE_REMOVED - static const ACTION_PACKAGE_REMOVED = "android.intent.action.PACKAGE_REMOVED"; + static const ACTION_PACKAGE_REMOVED = + r"""android.intent.action.PACKAGE_REMOVED"""; /// from: static public final java.lang.String ACTION_PACKAGE_REPLACED static const ACTION_PACKAGE_REPLACED = - "android.intent.action.PACKAGE_REPLACED"; + r"""android.intent.action.PACKAGE_REPLACED"""; /// from: static public final java.lang.String ACTION_PACKAGE_RESTARTED static const ACTION_PACKAGE_RESTARTED = - "android.intent.action.PACKAGE_RESTARTED"; + r"""android.intent.action.PACKAGE_RESTARTED"""; /// from: static public final java.lang.String ACTION_PACKAGE_VERIFIED static const ACTION_PACKAGE_VERIFIED = - "android.intent.action.PACKAGE_VERIFIED"; + r"""android.intent.action.PACKAGE_VERIFIED"""; /// from: static public final java.lang.String ACTION_PASTE - static const ACTION_PASTE = "android.intent.action.PASTE"; + static const ACTION_PASTE = r"""android.intent.action.PASTE"""; /// from: static public final java.lang.String ACTION_PICK - static const ACTION_PICK = "android.intent.action.PICK"; + static const ACTION_PICK = r"""android.intent.action.PICK"""; /// from: static public final java.lang.String ACTION_PICK_ACTIVITY - static const ACTION_PICK_ACTIVITY = "android.intent.action.PICK_ACTIVITY"; + static const ACTION_PICK_ACTIVITY = + r"""android.intent.action.PICK_ACTIVITY"""; /// from: static public final java.lang.String ACTION_POWER_CONNECTED static const ACTION_POWER_CONNECTED = - "android.intent.action.ACTION_POWER_CONNECTED"; + r"""android.intent.action.ACTION_POWER_CONNECTED"""; /// from: static public final java.lang.String ACTION_POWER_DISCONNECTED static const ACTION_POWER_DISCONNECTED = - "android.intent.action.ACTION_POWER_DISCONNECTED"; + r"""android.intent.action.ACTION_POWER_DISCONNECTED"""; /// from: static public final java.lang.String ACTION_POWER_USAGE_SUMMARY static const ACTION_POWER_USAGE_SUMMARY = - "android.intent.action.POWER_USAGE_SUMMARY"; + r"""android.intent.action.POWER_USAGE_SUMMARY"""; /// from: static public final java.lang.String ACTION_PROCESS_TEXT - static const ACTION_PROCESS_TEXT = "android.intent.action.PROCESS_TEXT"; + static const ACTION_PROCESS_TEXT = r"""android.intent.action.PROCESS_TEXT"""; /// from: static public final java.lang.String ACTION_PROFILE_ACCESSIBLE static const ACTION_PROFILE_ACCESSIBLE = - "android.intent.action.PROFILE_ACCESSIBLE"; + r"""android.intent.action.PROFILE_ACCESSIBLE"""; /// from: static public final java.lang.String ACTION_PROFILE_INACCESSIBLE static const ACTION_PROFILE_INACCESSIBLE = - "android.intent.action.PROFILE_INACCESSIBLE"; + r"""android.intent.action.PROFILE_INACCESSIBLE"""; /// from: static public final java.lang.String ACTION_PROVIDER_CHANGED static const ACTION_PROVIDER_CHANGED = - "android.intent.action.PROVIDER_CHANGED"; + r"""android.intent.action.PROVIDER_CHANGED"""; /// from: static public final java.lang.String ACTION_QUICK_CLOCK - static const ACTION_QUICK_CLOCK = "android.intent.action.QUICK_CLOCK"; + static const ACTION_QUICK_CLOCK = r"""android.intent.action.QUICK_CLOCK"""; /// from: static public final java.lang.String ACTION_QUICK_VIEW - static const ACTION_QUICK_VIEW = "android.intent.action.QUICK_VIEW"; + static const ACTION_QUICK_VIEW = r"""android.intent.action.QUICK_VIEW"""; /// from: static public final java.lang.String ACTION_REBOOT - static const ACTION_REBOOT = "android.intent.action.REBOOT"; + static const ACTION_REBOOT = r"""android.intent.action.REBOOT"""; /// from: static public final java.lang.String ACTION_RUN - static const ACTION_RUN = "android.intent.action.RUN"; + static const ACTION_RUN = r"""android.intent.action.RUN"""; /// from: static public final java.lang.String ACTION_SAFETY_CENTER - static const ACTION_SAFETY_CENTER = "android.intent.action.SAFETY_CENTER"; + static const ACTION_SAFETY_CENTER = + r"""android.intent.action.SAFETY_CENTER"""; /// from: static public final java.lang.String ACTION_SCREEN_OFF - static const ACTION_SCREEN_OFF = "android.intent.action.SCREEN_OFF"; + static const ACTION_SCREEN_OFF = r"""android.intent.action.SCREEN_OFF"""; /// from: static public final java.lang.String ACTION_SCREEN_ON - static const ACTION_SCREEN_ON = "android.intent.action.SCREEN_ON"; + static const ACTION_SCREEN_ON = r"""android.intent.action.SCREEN_ON"""; /// from: static public final java.lang.String ACTION_SEARCH - static const ACTION_SEARCH = "android.intent.action.SEARCH"; + static const ACTION_SEARCH = r"""android.intent.action.SEARCH"""; /// from: static public final java.lang.String ACTION_SEARCH_LONG_PRESS static const ACTION_SEARCH_LONG_PRESS = - "android.intent.action.SEARCH_LONG_PRESS"; + r"""android.intent.action.SEARCH_LONG_PRESS"""; /// from: static public final java.lang.String ACTION_SEND - static const ACTION_SEND = "android.intent.action.SEND"; + static const ACTION_SEND = r"""android.intent.action.SEND"""; /// from: static public final java.lang.String ACTION_SENDTO - static const ACTION_SENDTO = "android.intent.action.SENDTO"; + static const ACTION_SENDTO = r"""android.intent.action.SENDTO"""; /// from: static public final java.lang.String ACTION_SEND_MULTIPLE - static const ACTION_SEND_MULTIPLE = "android.intent.action.SEND_MULTIPLE"; + static const ACTION_SEND_MULTIPLE = + r"""android.intent.action.SEND_MULTIPLE"""; /// from: static public final java.lang.String ACTION_SET_WALLPAPER - static const ACTION_SET_WALLPAPER = "android.intent.action.SET_WALLPAPER"; + static const ACTION_SET_WALLPAPER = + r"""android.intent.action.SET_WALLPAPER"""; /// from: static public final java.lang.String ACTION_SHOW_APP_INFO - static const ACTION_SHOW_APP_INFO = "android.intent.action.SHOW_APP_INFO"; + static const ACTION_SHOW_APP_INFO = + r"""android.intent.action.SHOW_APP_INFO"""; /// from: static public final java.lang.String ACTION_SHOW_WORK_APPS - static const ACTION_SHOW_WORK_APPS = "android.intent.action.SHOW_WORK_APPS"; + static const ACTION_SHOW_WORK_APPS = + r"""android.intent.action.SHOW_WORK_APPS"""; /// from: static public final java.lang.String ACTION_SHUTDOWN - static const ACTION_SHUTDOWN = "android.intent.action.ACTION_SHUTDOWN"; + static const ACTION_SHUTDOWN = r"""android.intent.action.ACTION_SHUTDOWN"""; /// from: static public final java.lang.String ACTION_SYNC - static const ACTION_SYNC = "android.intent.action.SYNC"; + static const ACTION_SYNC = r"""android.intent.action.SYNC"""; /// from: static public final java.lang.String ACTION_SYSTEM_TUTORIAL - static const ACTION_SYSTEM_TUTORIAL = "android.intent.action.SYSTEM_TUTORIAL"; + static const ACTION_SYSTEM_TUTORIAL = + r"""android.intent.action.SYSTEM_TUTORIAL"""; /// from: static public final java.lang.String ACTION_TIMEZONE_CHANGED static const ACTION_TIMEZONE_CHANGED = - "android.intent.action.TIMEZONE_CHANGED"; + r"""android.intent.action.TIMEZONE_CHANGED"""; /// from: static public final java.lang.String ACTION_TIME_CHANGED - static const ACTION_TIME_CHANGED = "android.intent.action.TIME_SET"; + static const ACTION_TIME_CHANGED = r"""android.intent.action.TIME_SET"""; /// from: static public final java.lang.String ACTION_TIME_TICK - static const ACTION_TIME_TICK = "android.intent.action.TIME_TICK"; + static const ACTION_TIME_TICK = r"""android.intent.action.TIME_TICK"""; /// from: static public final java.lang.String ACTION_TRANSLATE - static const ACTION_TRANSLATE = "android.intent.action.TRANSLATE"; + static const ACTION_TRANSLATE = r"""android.intent.action.TRANSLATE"""; /// from: static public final java.lang.String ACTION_UID_REMOVED - static const ACTION_UID_REMOVED = "android.intent.action.UID_REMOVED"; + static const ACTION_UID_REMOVED = r"""android.intent.action.UID_REMOVED"""; /// from: static public final java.lang.String ACTION_UMS_CONNECTED - static const ACTION_UMS_CONNECTED = "android.intent.action.UMS_CONNECTED"; + static const ACTION_UMS_CONNECTED = + r"""android.intent.action.UMS_CONNECTED"""; /// from: static public final java.lang.String ACTION_UMS_DISCONNECTED static const ACTION_UMS_DISCONNECTED = - "android.intent.action.UMS_DISCONNECTED"; + r"""android.intent.action.UMS_DISCONNECTED"""; /// from: static public final java.lang.String ACTION_UNINSTALL_PACKAGE static const ACTION_UNINSTALL_PACKAGE = - "android.intent.action.UNINSTALL_PACKAGE"; + r"""android.intent.action.UNINSTALL_PACKAGE"""; /// from: static public final java.lang.String ACTION_USER_BACKGROUND - static const ACTION_USER_BACKGROUND = "android.intent.action.USER_BACKGROUND"; + static const ACTION_USER_BACKGROUND = + r"""android.intent.action.USER_BACKGROUND"""; /// from: static public final java.lang.String ACTION_USER_FOREGROUND - static const ACTION_USER_FOREGROUND = "android.intent.action.USER_FOREGROUND"; + static const ACTION_USER_FOREGROUND = + r"""android.intent.action.USER_FOREGROUND"""; /// from: static public final java.lang.String ACTION_USER_INITIALIZE - static const ACTION_USER_INITIALIZE = "android.intent.action.USER_INITIALIZE"; + static const ACTION_USER_INITIALIZE = + r"""android.intent.action.USER_INITIALIZE"""; /// from: static public final java.lang.String ACTION_USER_PRESENT - static const ACTION_USER_PRESENT = "android.intent.action.USER_PRESENT"; + static const ACTION_USER_PRESENT = r"""android.intent.action.USER_PRESENT"""; /// from: static public final java.lang.String ACTION_USER_UNLOCKED - static const ACTION_USER_UNLOCKED = "android.intent.action.USER_UNLOCKED"; + static const ACTION_USER_UNLOCKED = + r"""android.intent.action.USER_UNLOCKED"""; /// from: static public final java.lang.String ACTION_VIEW - static const ACTION_VIEW = "android.intent.action.VIEW"; + static const ACTION_VIEW = r"""android.intent.action.VIEW"""; /// from: static public final java.lang.String ACTION_VIEW_LOCUS - static const ACTION_VIEW_LOCUS = "android.intent.action.VIEW_LOCUS"; + static const ACTION_VIEW_LOCUS = r"""android.intent.action.VIEW_LOCUS"""; /// from: static public final java.lang.String ACTION_VIEW_PERMISSION_USAGE static const ACTION_VIEW_PERMISSION_USAGE = - "android.intent.action.VIEW_PERMISSION_USAGE"; + r"""android.intent.action.VIEW_PERMISSION_USAGE"""; /// from: static public final java.lang.String ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD static const ACTION_VIEW_PERMISSION_USAGE_FOR_PERIOD = - "android.intent.action.VIEW_PERMISSION_USAGE_FOR_PERIOD"; + r"""android.intent.action.VIEW_PERMISSION_USAGE_FOR_PERIOD"""; /// from: static public final java.lang.String ACTION_VOICE_COMMAND - static const ACTION_VOICE_COMMAND = "android.intent.action.VOICE_COMMAND"; + static const ACTION_VOICE_COMMAND = + r"""android.intent.action.VOICE_COMMAND"""; /// from: static public final java.lang.String ACTION_WALLPAPER_CHANGED static const ACTION_WALLPAPER_CHANGED = - "android.intent.action.WALLPAPER_CHANGED"; + r"""android.intent.action.WALLPAPER_CHANGED"""; /// from: static public final java.lang.String ACTION_WEB_SEARCH - static const ACTION_WEB_SEARCH = "android.intent.action.WEB_SEARCH"; + static const ACTION_WEB_SEARCH = r"""android.intent.action.WEB_SEARCH"""; /// from: static public final java.lang.String CATEGORY_ACCESSIBILITY_SHORTCUT_TARGET static const CATEGORY_ACCESSIBILITY_SHORTCUT_TARGET = - "android.intent.category.ACCESSIBILITY_SHORTCUT_TARGET"; + r"""android.intent.category.ACCESSIBILITY_SHORTCUT_TARGET"""; /// from: static public final java.lang.String CATEGORY_ALTERNATIVE - static const CATEGORY_ALTERNATIVE = "android.intent.category.ALTERNATIVE"; + static const CATEGORY_ALTERNATIVE = + r"""android.intent.category.ALTERNATIVE"""; /// from: static public final java.lang.String CATEGORY_APP_BROWSER - static const CATEGORY_APP_BROWSER = "android.intent.category.APP_BROWSER"; + static const CATEGORY_APP_BROWSER = + r"""android.intent.category.APP_BROWSER"""; /// from: static public final java.lang.String CATEGORY_APP_CALCULATOR static const CATEGORY_APP_CALCULATOR = - "android.intent.category.APP_CALCULATOR"; + r"""android.intent.category.APP_CALCULATOR"""; /// from: static public final java.lang.String CATEGORY_APP_CALENDAR - static const CATEGORY_APP_CALENDAR = "android.intent.category.APP_CALENDAR"; + static const CATEGORY_APP_CALENDAR = + r"""android.intent.category.APP_CALENDAR"""; /// from: static public final java.lang.String CATEGORY_APP_CONTACTS - static const CATEGORY_APP_CONTACTS = "android.intent.category.APP_CONTACTS"; + static const CATEGORY_APP_CONTACTS = + r"""android.intent.category.APP_CONTACTS"""; /// from: static public final java.lang.String CATEGORY_APP_EMAIL - static const CATEGORY_APP_EMAIL = "android.intent.category.APP_EMAIL"; + static const CATEGORY_APP_EMAIL = r"""android.intent.category.APP_EMAIL"""; /// from: static public final java.lang.String CATEGORY_APP_FILES - static const CATEGORY_APP_FILES = "android.intent.category.APP_FILES"; + static const CATEGORY_APP_FILES = r"""android.intent.category.APP_FILES"""; /// from: static public final java.lang.String CATEGORY_APP_FITNESS - static const CATEGORY_APP_FITNESS = "android.intent.category.APP_FITNESS"; + static const CATEGORY_APP_FITNESS = + r"""android.intent.category.APP_FITNESS"""; /// from: static public final java.lang.String CATEGORY_APP_GALLERY - static const CATEGORY_APP_GALLERY = "android.intent.category.APP_GALLERY"; + static const CATEGORY_APP_GALLERY = + r"""android.intent.category.APP_GALLERY"""; /// from: static public final java.lang.String CATEGORY_APP_MAPS - static const CATEGORY_APP_MAPS = "android.intent.category.APP_MAPS"; + static const CATEGORY_APP_MAPS = r"""android.intent.category.APP_MAPS"""; /// from: static public final java.lang.String CATEGORY_APP_MARKET - static const CATEGORY_APP_MARKET = "android.intent.category.APP_MARKET"; + static const CATEGORY_APP_MARKET = r"""android.intent.category.APP_MARKET"""; /// from: static public final java.lang.String CATEGORY_APP_MESSAGING - static const CATEGORY_APP_MESSAGING = "android.intent.category.APP_MESSAGING"; + static const CATEGORY_APP_MESSAGING = + r"""android.intent.category.APP_MESSAGING"""; /// from: static public final java.lang.String CATEGORY_APP_MUSIC - static const CATEGORY_APP_MUSIC = "android.intent.category.APP_MUSIC"; + static const CATEGORY_APP_MUSIC = r"""android.intent.category.APP_MUSIC"""; /// from: static public final java.lang.String CATEGORY_APP_WEATHER - static const CATEGORY_APP_WEATHER = "android.intent.category.APP_WEATHER"; + static const CATEGORY_APP_WEATHER = + r"""android.intent.category.APP_WEATHER"""; /// from: static public final java.lang.String CATEGORY_BROWSABLE - static const CATEGORY_BROWSABLE = "android.intent.category.BROWSABLE"; + static const CATEGORY_BROWSABLE = r"""android.intent.category.BROWSABLE"""; /// from: static public final java.lang.String CATEGORY_CAR_DOCK - static const CATEGORY_CAR_DOCK = "android.intent.category.CAR_DOCK"; + static const CATEGORY_CAR_DOCK = r"""android.intent.category.CAR_DOCK"""; /// from: static public final java.lang.String CATEGORY_CAR_MODE - static const CATEGORY_CAR_MODE = "android.intent.category.CAR_MODE"; + static const CATEGORY_CAR_MODE = r"""android.intent.category.CAR_MODE"""; /// from: static public final java.lang.String CATEGORY_DEFAULT - static const CATEGORY_DEFAULT = "android.intent.category.DEFAULT"; + static const CATEGORY_DEFAULT = r"""android.intent.category.DEFAULT"""; /// from: static public final java.lang.String CATEGORY_DESK_DOCK - static const CATEGORY_DESK_DOCK = "android.intent.category.DESK_DOCK"; + static const CATEGORY_DESK_DOCK = r"""android.intent.category.DESK_DOCK"""; /// from: static public final java.lang.String CATEGORY_DEVELOPMENT_PREFERENCE static const CATEGORY_DEVELOPMENT_PREFERENCE = - "android.intent.category.DEVELOPMENT_PREFERENCE"; + r"""android.intent.category.DEVELOPMENT_PREFERENCE"""; /// from: static public final java.lang.String CATEGORY_EMBED - static const CATEGORY_EMBED = "android.intent.category.EMBED"; + static const CATEGORY_EMBED = r"""android.intent.category.EMBED"""; /// from: static public final java.lang.String CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST static const CATEGORY_FRAMEWORK_INSTRUMENTATION_TEST = - "android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"; + r"""android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"""; /// from: static public final java.lang.String CATEGORY_HE_DESK_DOCK - static const CATEGORY_HE_DESK_DOCK = "android.intent.category.HE_DESK_DOCK"; + static const CATEGORY_HE_DESK_DOCK = + r"""android.intent.category.HE_DESK_DOCK"""; /// from: static public final java.lang.String CATEGORY_HOME - static const CATEGORY_HOME = "android.intent.category.HOME"; + static const CATEGORY_HOME = r"""android.intent.category.HOME"""; /// from: static public final java.lang.String CATEGORY_INFO - static const CATEGORY_INFO = "android.intent.category.INFO"; + static const CATEGORY_INFO = r"""android.intent.category.INFO"""; /// from: static public final java.lang.String CATEGORY_LAUNCHER - static const CATEGORY_LAUNCHER = "android.intent.category.LAUNCHER"; + static const CATEGORY_LAUNCHER = r"""android.intent.category.LAUNCHER"""; /// from: static public final java.lang.String CATEGORY_LEANBACK_LAUNCHER static const CATEGORY_LEANBACK_LAUNCHER = - "android.intent.category.LEANBACK_LAUNCHER"; + r"""android.intent.category.LEANBACK_LAUNCHER"""; /// from: static public final java.lang.String CATEGORY_LE_DESK_DOCK - static const CATEGORY_LE_DESK_DOCK = "android.intent.category.LE_DESK_DOCK"; + static const CATEGORY_LE_DESK_DOCK = + r"""android.intent.category.LE_DESK_DOCK"""; /// from: static public final java.lang.String CATEGORY_MONKEY - static const CATEGORY_MONKEY = "android.intent.category.MONKEY"; + static const CATEGORY_MONKEY = r"""android.intent.category.MONKEY"""; /// from: static public final java.lang.String CATEGORY_OPENABLE - static const CATEGORY_OPENABLE = "android.intent.category.OPENABLE"; + static const CATEGORY_OPENABLE = r"""android.intent.category.OPENABLE"""; /// from: static public final java.lang.String CATEGORY_PREFERENCE - static const CATEGORY_PREFERENCE = "android.intent.category.PREFERENCE"; + static const CATEGORY_PREFERENCE = r"""android.intent.category.PREFERENCE"""; /// from: static public final java.lang.String CATEGORY_SAMPLE_CODE - static const CATEGORY_SAMPLE_CODE = "android.intent.category.SAMPLE_CODE"; + static const CATEGORY_SAMPLE_CODE = + r"""android.intent.category.SAMPLE_CODE"""; /// from: static public final java.lang.String CATEGORY_SECONDARY_HOME static const CATEGORY_SECONDARY_HOME = - "android.intent.category.SECONDARY_HOME"; + r"""android.intent.category.SECONDARY_HOME"""; /// from: static public final java.lang.String CATEGORY_SELECTED_ALTERNATIVE static const CATEGORY_SELECTED_ALTERNATIVE = - "android.intent.category.SELECTED_ALTERNATIVE"; + r"""android.intent.category.SELECTED_ALTERNATIVE"""; /// from: static public final java.lang.String CATEGORY_TAB - static const CATEGORY_TAB = "android.intent.category.TAB"; + static const CATEGORY_TAB = r"""android.intent.category.TAB"""; /// from: static public final java.lang.String CATEGORY_TEST - static const CATEGORY_TEST = "android.intent.category.TEST"; + static const CATEGORY_TEST = r"""android.intent.category.TEST"""; /// from: static public final java.lang.String CATEGORY_TYPED_OPENABLE static const CATEGORY_TYPED_OPENABLE = - "android.intent.category.TYPED_OPENABLE"; + r"""android.intent.category.TYPED_OPENABLE"""; /// from: static public final java.lang.String CATEGORY_UNIT_TEST - static const CATEGORY_UNIT_TEST = "android.intent.category.UNIT_TEST"; + static const CATEGORY_UNIT_TEST = r"""android.intent.category.UNIT_TEST"""; /// from: static public final java.lang.String CATEGORY_VOICE - static const CATEGORY_VOICE = "android.intent.category.VOICE"; + static const CATEGORY_VOICE = r"""android.intent.category.VOICE"""; /// from: static public final java.lang.String CATEGORY_VR_HOME - static const CATEGORY_VR_HOME = "android.intent.category.VR_HOME"; + static const CATEGORY_VR_HOME = r"""android.intent.category.VR_HOME"""; static final _get_CREATOR = jniLookup>( @@ -4176,95 +4912,103 @@ class Intent extends jni.JObject { const jni.JObjectType().fromRef(_get_CREATOR().object); /// from: static public final java.lang.String EXTRA_ALARM_COUNT - static const EXTRA_ALARM_COUNT = "android.intent.extra.ALARM_COUNT"; + static const EXTRA_ALARM_COUNT = r"""android.intent.extra.ALARM_COUNT"""; /// from: static public final java.lang.String EXTRA_ALLOW_MULTIPLE - static const EXTRA_ALLOW_MULTIPLE = "android.intent.extra.ALLOW_MULTIPLE"; + static const EXTRA_ALLOW_MULTIPLE = + r"""android.intent.extra.ALLOW_MULTIPLE"""; /// from: static public final java.lang.String EXTRA_ALLOW_REPLACE - static const EXTRA_ALLOW_REPLACE = "android.intent.extra.ALLOW_REPLACE"; + static const EXTRA_ALLOW_REPLACE = r"""android.intent.extra.ALLOW_REPLACE"""; /// from: static public final java.lang.String EXTRA_ALTERNATE_INTENTS static const EXTRA_ALTERNATE_INTENTS = - "android.intent.extra.ALTERNATE_INTENTS"; + r"""android.intent.extra.ALTERNATE_INTENTS"""; /// from: static public final java.lang.String EXTRA_ASSIST_CONTEXT - static const EXTRA_ASSIST_CONTEXT = "android.intent.extra.ASSIST_CONTEXT"; + static const EXTRA_ASSIST_CONTEXT = + r"""android.intent.extra.ASSIST_CONTEXT"""; /// from: static public final java.lang.String EXTRA_ASSIST_INPUT_DEVICE_ID static const EXTRA_ASSIST_INPUT_DEVICE_ID = - "android.intent.extra.ASSIST_INPUT_DEVICE_ID"; + r"""android.intent.extra.ASSIST_INPUT_DEVICE_ID"""; /// from: static public final java.lang.String EXTRA_ASSIST_INPUT_HINT_KEYBOARD static const EXTRA_ASSIST_INPUT_HINT_KEYBOARD = - "android.intent.extra.ASSIST_INPUT_HINT_KEYBOARD"; + r"""android.intent.extra.ASSIST_INPUT_HINT_KEYBOARD"""; /// from: static public final java.lang.String EXTRA_ASSIST_PACKAGE - static const EXTRA_ASSIST_PACKAGE = "android.intent.extra.ASSIST_PACKAGE"; + static const EXTRA_ASSIST_PACKAGE = + r"""android.intent.extra.ASSIST_PACKAGE"""; /// from: static public final java.lang.String EXTRA_ASSIST_UID - static const EXTRA_ASSIST_UID = "android.intent.extra.ASSIST_UID"; + static const EXTRA_ASSIST_UID = r"""android.intent.extra.ASSIST_UID"""; /// from: static public final java.lang.String EXTRA_ATTRIBUTION_TAGS - static const EXTRA_ATTRIBUTION_TAGS = "android.intent.extra.ATTRIBUTION_TAGS"; + static const EXTRA_ATTRIBUTION_TAGS = + r"""android.intent.extra.ATTRIBUTION_TAGS"""; /// from: static public final java.lang.String EXTRA_AUTO_LAUNCH_SINGLE_CHOICE static const EXTRA_AUTO_LAUNCH_SINGLE_CHOICE = - "android.intent.extra.AUTO_LAUNCH_SINGLE_CHOICE"; + r"""android.intent.extra.AUTO_LAUNCH_SINGLE_CHOICE"""; /// from: static public final java.lang.String EXTRA_BCC - static const EXTRA_BCC = "android.intent.extra.BCC"; + static const EXTRA_BCC = r"""android.intent.extra.BCC"""; /// from: static public final java.lang.String EXTRA_BUG_REPORT - static const EXTRA_BUG_REPORT = "android.intent.extra.BUG_REPORT"; + static const EXTRA_BUG_REPORT = r"""android.intent.extra.BUG_REPORT"""; /// from: static public final java.lang.String EXTRA_CC - static const EXTRA_CC = "android.intent.extra.CC"; + static const EXTRA_CC = r"""android.intent.extra.CC"""; /// from: static public final java.lang.String EXTRA_CHANGED_COMPONENT_NAME static const EXTRA_CHANGED_COMPONENT_NAME = - "android.intent.extra.changed_component_name"; + r"""android.intent.extra.changed_component_name"""; /// from: static public final java.lang.String EXTRA_CHANGED_COMPONENT_NAME_LIST static const EXTRA_CHANGED_COMPONENT_NAME_LIST = - "android.intent.extra.changed_component_name_list"; + r"""android.intent.extra.changed_component_name_list"""; /// from: static public final java.lang.String EXTRA_CHANGED_PACKAGE_LIST static const EXTRA_CHANGED_PACKAGE_LIST = - "android.intent.extra.changed_package_list"; + r"""android.intent.extra.changed_package_list"""; /// from: static public final java.lang.String EXTRA_CHANGED_UID_LIST - static const EXTRA_CHANGED_UID_LIST = "android.intent.extra.changed_uid_list"; + static const EXTRA_CHANGED_UID_LIST = + r"""android.intent.extra.changed_uid_list"""; /// from: static public final java.lang.String EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER static const EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER = - "android.intent.extra.CHOOSER_REFINEMENT_INTENT_SENDER"; + r"""android.intent.extra.CHOOSER_REFINEMENT_INTENT_SENDER"""; /// from: static public final java.lang.String EXTRA_CHOOSER_TARGETS - static const EXTRA_CHOOSER_TARGETS = "android.intent.extra.CHOOSER_TARGETS"; + static const EXTRA_CHOOSER_TARGETS = + r"""android.intent.extra.CHOOSER_TARGETS"""; /// from: static public final java.lang.String EXTRA_CHOSEN_COMPONENT - static const EXTRA_CHOSEN_COMPONENT = "android.intent.extra.CHOSEN_COMPONENT"; + static const EXTRA_CHOSEN_COMPONENT = + r"""android.intent.extra.CHOSEN_COMPONENT"""; /// from: static public final java.lang.String EXTRA_CHOSEN_COMPONENT_INTENT_SENDER static const EXTRA_CHOSEN_COMPONENT_INTENT_SENDER = - "android.intent.extra.CHOSEN_COMPONENT_INTENT_SENDER"; + r"""android.intent.extra.CHOSEN_COMPONENT_INTENT_SENDER"""; /// from: static public final java.lang.String EXTRA_COMPONENT_NAME - static const EXTRA_COMPONENT_NAME = "android.intent.extra.COMPONENT_NAME"; + static const EXTRA_COMPONENT_NAME = + r"""android.intent.extra.COMPONENT_NAME"""; /// from: static public final java.lang.String EXTRA_CONTENT_ANNOTATIONS static const EXTRA_CONTENT_ANNOTATIONS = - "android.intent.extra.CONTENT_ANNOTATIONS"; + r"""android.intent.extra.CONTENT_ANNOTATIONS"""; /// from: static public final java.lang.String EXTRA_CONTENT_QUERY - static const EXTRA_CONTENT_QUERY = "android.intent.extra.CONTENT_QUERY"; + static const EXTRA_CONTENT_QUERY = r"""android.intent.extra.CONTENT_QUERY"""; /// from: static public final java.lang.String EXTRA_DATA_REMOVED - static const EXTRA_DATA_REMOVED = "android.intent.extra.DATA_REMOVED"; + static const EXTRA_DATA_REMOVED = r"""android.intent.extra.DATA_REMOVED"""; /// from: static public final java.lang.String EXTRA_DOCK_STATE - static const EXTRA_DOCK_STATE = "android.intent.extra.DOCK_STATE"; + static const EXTRA_DOCK_STATE = r"""android.intent.extra.DOCK_STATE"""; /// from: static public final int EXTRA_DOCK_STATE_CAR static const EXTRA_DOCK_STATE_CAR = 2; @@ -4282,180 +5026,186 @@ class Intent extends jni.JObject { static const EXTRA_DOCK_STATE_UNDOCKED = 0; /// from: static public final java.lang.String EXTRA_DONT_KILL_APP - static const EXTRA_DONT_KILL_APP = "android.intent.extra.DONT_KILL_APP"; + static const EXTRA_DONT_KILL_APP = r"""android.intent.extra.DONT_KILL_APP"""; /// from: static public final java.lang.String EXTRA_DURATION_MILLIS - static const EXTRA_DURATION_MILLIS = "android.intent.extra.DURATION_MILLIS"; + static const EXTRA_DURATION_MILLIS = + r"""android.intent.extra.DURATION_MILLIS"""; /// from: static public final java.lang.String EXTRA_EMAIL - static const EXTRA_EMAIL = "android.intent.extra.EMAIL"; + static const EXTRA_EMAIL = r"""android.intent.extra.EMAIL"""; /// from: static public final java.lang.String EXTRA_END_TIME - static const EXTRA_END_TIME = "android.intent.extra.END_TIME"; + static const EXTRA_END_TIME = r"""android.intent.extra.END_TIME"""; /// from: static public final java.lang.String EXTRA_EXCLUDE_COMPONENTS static const EXTRA_EXCLUDE_COMPONENTS = - "android.intent.extra.EXCLUDE_COMPONENTS"; + r"""android.intent.extra.EXCLUDE_COMPONENTS"""; /// from: static public final java.lang.String EXTRA_FROM_STORAGE - static const EXTRA_FROM_STORAGE = "android.intent.extra.FROM_STORAGE"; + static const EXTRA_FROM_STORAGE = r"""android.intent.extra.FROM_STORAGE"""; /// from: static public final java.lang.String EXTRA_HTML_TEXT - static const EXTRA_HTML_TEXT = "android.intent.extra.HTML_TEXT"; + static const EXTRA_HTML_TEXT = r"""android.intent.extra.HTML_TEXT"""; /// from: static public final java.lang.String EXTRA_INDEX - static const EXTRA_INDEX = "android.intent.extra.INDEX"; + static const EXTRA_INDEX = r"""android.intent.extra.INDEX"""; /// from: static public final java.lang.String EXTRA_INITIAL_INTENTS - static const EXTRA_INITIAL_INTENTS = "android.intent.extra.INITIAL_INTENTS"; + static const EXTRA_INITIAL_INTENTS = + r"""android.intent.extra.INITIAL_INTENTS"""; /// from: static public final java.lang.String EXTRA_INSTALLER_PACKAGE_NAME static const EXTRA_INSTALLER_PACKAGE_NAME = - "android.intent.extra.INSTALLER_PACKAGE_NAME"; + r"""android.intent.extra.INSTALLER_PACKAGE_NAME"""; /// from: static public final java.lang.String EXTRA_INTENT - static const EXTRA_INTENT = "android.intent.extra.INTENT"; + static const EXTRA_INTENT = r"""android.intent.extra.INTENT"""; /// from: static public final java.lang.String EXTRA_KEY_EVENT - static const EXTRA_KEY_EVENT = "android.intent.extra.KEY_EVENT"; + static const EXTRA_KEY_EVENT = r"""android.intent.extra.KEY_EVENT"""; /// from: static public final java.lang.String EXTRA_LOCALE_LIST - static const EXTRA_LOCALE_LIST = "android.intent.extra.LOCALE_LIST"; + static const EXTRA_LOCALE_LIST = r"""android.intent.extra.LOCALE_LIST"""; /// from: static public final java.lang.String EXTRA_LOCAL_ONLY - static const EXTRA_LOCAL_ONLY = "android.intent.extra.LOCAL_ONLY"; + static const EXTRA_LOCAL_ONLY = r"""android.intent.extra.LOCAL_ONLY"""; /// from: static public final java.lang.String EXTRA_LOCUS_ID - static const EXTRA_LOCUS_ID = "android.intent.extra.LOCUS_ID"; + static const EXTRA_LOCUS_ID = r"""android.intent.extra.LOCUS_ID"""; /// from: static public final java.lang.String EXTRA_MIME_TYPES - static const EXTRA_MIME_TYPES = "android.intent.extra.MIME_TYPES"; + static const EXTRA_MIME_TYPES = r"""android.intent.extra.MIME_TYPES"""; /// from: static public final java.lang.String EXTRA_NOT_UNKNOWN_SOURCE static const EXTRA_NOT_UNKNOWN_SOURCE = - "android.intent.extra.NOT_UNKNOWN_SOURCE"; + r"""android.intent.extra.NOT_UNKNOWN_SOURCE"""; /// from: static public final java.lang.String EXTRA_ORIGINATING_URI - static const EXTRA_ORIGINATING_URI = "android.intent.extra.ORIGINATING_URI"; + static const EXTRA_ORIGINATING_URI = + r"""android.intent.extra.ORIGINATING_URI"""; /// from: static public final java.lang.String EXTRA_PACKAGE_NAME - static const EXTRA_PACKAGE_NAME = "android.intent.extra.PACKAGE_NAME"; + static const EXTRA_PACKAGE_NAME = r"""android.intent.extra.PACKAGE_NAME"""; /// from: static public final java.lang.String EXTRA_PERMISSION_GROUP_NAME static const EXTRA_PERMISSION_GROUP_NAME = - "android.intent.extra.PERMISSION_GROUP_NAME"; + r"""android.intent.extra.PERMISSION_GROUP_NAME"""; /// from: static public final java.lang.String EXTRA_PHONE_NUMBER - static const EXTRA_PHONE_NUMBER = "android.intent.extra.PHONE_NUMBER"; + static const EXTRA_PHONE_NUMBER = r"""android.intent.extra.PHONE_NUMBER"""; /// from: static public final java.lang.String EXTRA_PROCESS_TEXT - static const EXTRA_PROCESS_TEXT = "android.intent.extra.PROCESS_TEXT"; + static const EXTRA_PROCESS_TEXT = r"""android.intent.extra.PROCESS_TEXT"""; /// from: static public final java.lang.String EXTRA_PROCESS_TEXT_READONLY static const EXTRA_PROCESS_TEXT_READONLY = - "android.intent.extra.PROCESS_TEXT_READONLY"; + r"""android.intent.extra.PROCESS_TEXT_READONLY"""; /// from: static public final java.lang.String EXTRA_QUICK_VIEW_FEATURES static const EXTRA_QUICK_VIEW_FEATURES = - "android.intent.extra.QUICK_VIEW_FEATURES"; + r"""android.intent.extra.QUICK_VIEW_FEATURES"""; /// from: static public final java.lang.String EXTRA_QUIET_MODE - static const EXTRA_QUIET_MODE = "android.intent.extra.QUIET_MODE"; + static const EXTRA_QUIET_MODE = r"""android.intent.extra.QUIET_MODE"""; /// from: static public final java.lang.String EXTRA_REFERRER - static const EXTRA_REFERRER = "android.intent.extra.REFERRER"; + static const EXTRA_REFERRER = r"""android.intent.extra.REFERRER"""; /// from: static public final java.lang.String EXTRA_REFERRER_NAME - static const EXTRA_REFERRER_NAME = "android.intent.extra.REFERRER_NAME"; + static const EXTRA_REFERRER_NAME = r"""android.intent.extra.REFERRER_NAME"""; /// from: static public final java.lang.String EXTRA_REMOTE_INTENT_TOKEN static const EXTRA_REMOTE_INTENT_TOKEN = - "android.intent.extra.remote_intent_token"; + r"""android.intent.extra.remote_intent_token"""; /// from: static public final java.lang.String EXTRA_REPLACEMENT_EXTRAS static const EXTRA_REPLACEMENT_EXTRAS = - "android.intent.extra.REPLACEMENT_EXTRAS"; + r"""android.intent.extra.REPLACEMENT_EXTRAS"""; /// from: static public final java.lang.String EXTRA_REPLACING - static const EXTRA_REPLACING = "android.intent.extra.REPLACING"; + static const EXTRA_REPLACING = r"""android.intent.extra.REPLACING"""; /// from: static public final java.lang.String EXTRA_RESTRICTIONS_BUNDLE static const EXTRA_RESTRICTIONS_BUNDLE = - "android.intent.extra.restrictions_bundle"; + r"""android.intent.extra.restrictions_bundle"""; /// from: static public final java.lang.String EXTRA_RESTRICTIONS_INTENT static const EXTRA_RESTRICTIONS_INTENT = - "android.intent.extra.restrictions_intent"; + r"""android.intent.extra.restrictions_intent"""; /// from: static public final java.lang.String EXTRA_RESTRICTIONS_LIST static const EXTRA_RESTRICTIONS_LIST = - "android.intent.extra.restrictions_list"; + r"""android.intent.extra.restrictions_list"""; /// from: static public final java.lang.String EXTRA_RESULT_RECEIVER - static const EXTRA_RESULT_RECEIVER = "android.intent.extra.RESULT_RECEIVER"; + static const EXTRA_RESULT_RECEIVER = + r"""android.intent.extra.RESULT_RECEIVER"""; /// from: static public final java.lang.String EXTRA_RETURN_RESULT - static const EXTRA_RETURN_RESULT = "android.intent.extra.RETURN_RESULT"; + static const EXTRA_RETURN_RESULT = r"""android.intent.extra.RETURN_RESULT"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_ICON - static const EXTRA_SHORTCUT_ICON = "android.intent.extra.shortcut.ICON"; + static const EXTRA_SHORTCUT_ICON = r"""android.intent.extra.shortcut.ICON"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_ICON_RESOURCE static const EXTRA_SHORTCUT_ICON_RESOURCE = - "android.intent.extra.shortcut.ICON_RESOURCE"; + r"""android.intent.extra.shortcut.ICON_RESOURCE"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_ID - static const EXTRA_SHORTCUT_ID = "android.intent.extra.shortcut.ID"; + static const EXTRA_SHORTCUT_ID = r"""android.intent.extra.shortcut.ID"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_INTENT - static const EXTRA_SHORTCUT_INTENT = "android.intent.extra.shortcut.INTENT"; + static const EXTRA_SHORTCUT_INTENT = + r"""android.intent.extra.shortcut.INTENT"""; /// from: static public final java.lang.String EXTRA_SHORTCUT_NAME - static const EXTRA_SHORTCUT_NAME = "android.intent.extra.shortcut.NAME"; + static const EXTRA_SHORTCUT_NAME = r"""android.intent.extra.shortcut.NAME"""; /// from: static public final java.lang.String EXTRA_SHUTDOWN_USERSPACE_ONLY static const EXTRA_SHUTDOWN_USERSPACE_ONLY = - "android.intent.extra.SHUTDOWN_USERSPACE_ONLY"; + r"""android.intent.extra.SHUTDOWN_USERSPACE_ONLY"""; /// from: static public final java.lang.String EXTRA_SPLIT_NAME - static const EXTRA_SPLIT_NAME = "android.intent.extra.SPLIT_NAME"; + static const EXTRA_SPLIT_NAME = r"""android.intent.extra.SPLIT_NAME"""; /// from: static public final java.lang.String EXTRA_START_TIME - static const EXTRA_START_TIME = "android.intent.extra.START_TIME"; + static const EXTRA_START_TIME = r"""android.intent.extra.START_TIME"""; /// from: static public final java.lang.String EXTRA_STREAM - static const EXTRA_STREAM = "android.intent.extra.STREAM"; + static const EXTRA_STREAM = r"""android.intent.extra.STREAM"""; /// from: static public final java.lang.String EXTRA_SUBJECT - static const EXTRA_SUBJECT = "android.intent.extra.SUBJECT"; + static const EXTRA_SUBJECT = r"""android.intent.extra.SUBJECT"""; /// from: static public final java.lang.String EXTRA_SUSPENDED_PACKAGE_EXTRAS static const EXTRA_SUSPENDED_PACKAGE_EXTRAS = - "android.intent.extra.SUSPENDED_PACKAGE_EXTRAS"; + r"""android.intent.extra.SUSPENDED_PACKAGE_EXTRAS"""; /// from: static public final java.lang.String EXTRA_TEMPLATE - static const EXTRA_TEMPLATE = "android.intent.extra.TEMPLATE"; + static const EXTRA_TEMPLATE = r"""android.intent.extra.TEMPLATE"""; /// from: static public final java.lang.String EXTRA_TEXT - static const EXTRA_TEXT = "android.intent.extra.TEXT"; + static const EXTRA_TEXT = r"""android.intent.extra.TEXT"""; /// from: static public final java.lang.String EXTRA_TIME - static const EXTRA_TIME = "android.intent.extra.TIME"; + static const EXTRA_TIME = r"""android.intent.extra.TIME"""; /// from: static public final java.lang.String EXTRA_TIMEZONE - static const EXTRA_TIMEZONE = "time-zone"; + static const EXTRA_TIMEZONE = r"""time-zone"""; /// from: static public final java.lang.String EXTRA_TITLE - static const EXTRA_TITLE = "android.intent.extra.TITLE"; + static const EXTRA_TITLE = r"""android.intent.extra.TITLE"""; /// from: static public final java.lang.String EXTRA_UID - static const EXTRA_UID = "android.intent.extra.UID"; + static const EXTRA_UID = r"""android.intent.extra.UID"""; /// from: static public final java.lang.String EXTRA_USER - static const EXTRA_USER = "android.intent.extra.USER"; + static const EXTRA_USER = r"""android.intent.extra.USER"""; /// from: static public final java.lang.String EXTRA_USER_INITIATED - static const EXTRA_USER_INITIATED = "android.intent.extra.USER_INITIATED"; + static const EXTRA_USER_INITIATED = + r"""android.intent.extra.USER_INITIATED"""; /// from: static public final int FILL_IN_ACTION static const FILL_IN_ACTION = 1; @@ -4596,7 +5346,7 @@ class Intent extends jni.JObject { static const FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS = 2097152; /// from: static public final java.lang.String METADATA_DOCK_HOME - static const METADATA_DOCK_HOME = "android.dock_home"; + static const METADATA_DOCK_HOME = r"""android.dock_home"""; /// from: static public final int URI_ALLOW_UNSAFE static const URI_ALLOW_UNSAFE = 4; @@ -4612,7 +5362,10 @@ class Intent extends jni.JObject { .asFunction(); /// from: public void () - Intent() : super.fromRef(_ctor().object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory Intent() { + return Intent.fromRef(_ctor().object); + } static final _ctor1 = jniLookup< ffi.NativeFunction< @@ -4620,7 +5373,12 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public void (android.content.Intent intent) - Intent.ctor1(Intent intent) : super.fromRef(_ctor1(intent.reference).object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory Intent.ctor1( + Intent intent, + ) { + return Intent.fromRef(_ctor1(intent.reference).object); + } static final _ctor2 = jniLookup< ffi.NativeFunction< @@ -4628,8 +5386,12 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public void (java.lang.String string) - Intent.ctor2(jni.JString string) - : super.fromRef(_ctor2(string.reference).object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory Intent.ctor2( + jni.JString string, + ) { + return Intent.fromRef(_ctor2(string.reference).object); + } static final _ctor3 = jniLookup< ffi.NativeFunction< @@ -4640,8 +5402,13 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.lang.String string, android.net.Uri uri) - Intent.ctor3(jni.JString string, jni.JObject uri) - : super.fromRef(_ctor3(string.reference, uri.reference).object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory Intent.ctor3( + jni.JString string, + jni.JObject uri, + ) { + return Intent.fromRef(_ctor3(string.reference, uri.reference).object); + } static final _ctor4 = jniLookup< ffi.NativeFunction< @@ -4652,8 +5419,13 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void (android.content.Context context, java.lang.Class class) - Intent.ctor4(Context context, jni.JObject class0) - : super.fromRef(_ctor4(context.reference, class0.reference).object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory Intent.ctor4( + Context context, + jni.JObject class0, + ) { + return Intent.fromRef(_ctor4(context.reference, class0.reference).object); + } static final _ctor5 = jniLookup< ffi.NativeFunction< @@ -4667,11 +5439,17 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.lang.String string, android.net.Uri uri, android.content.Context context, java.lang.Class class) - Intent.ctor5( - jni.JString string, jni.JObject uri, Context context, jni.JObject class0) - : super.fromRef(_ctor5(string.reference, uri.reference, context.reference, - class0.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory Intent.ctor5( + jni.JString string, + jni.JObject uri, + Context context, + jni.JObject class0, + ) { + return Intent.fromRef(_ctor5(string.reference, uri.reference, + context.reference, class0.reference) + .object); + } static final _createChooser = jniLookup< ffi.NativeFunction< @@ -4683,9 +5461,13 @@ class Intent extends jni.JObject { /// 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. - static Intent createChooser(Intent intent, jni.JObject charSequence) => - const $IntentType().fromRef( - _createChooser(intent.reference, charSequence.reference).object); + static Intent createChooser( + Intent intent, + jni.JObject charSequence, + ) { + return const $IntentType().fromRef( + _createChooser(intent.reference, charSequence.reference).object); + } static final _createChooser1 = jniLookup< ffi.NativeFunction< @@ -4700,10 +5482,14 @@ class Intent extends jni.JObject { /// 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. static Intent createChooser1( - Intent intent, jni.JObject charSequence, jni.JObject intentSender) => - const $IntentType().fromRef(_createChooser1( - intent.reference, charSequence.reference, intentSender.reference) - .object); + Intent intent, + jni.JObject charSequence, + jni.JObject intentSender, + ) { + return const $IntentType().fromRef(_createChooser1( + intent.reference, charSequence.reference, intentSender.reference) + .object); + } static final _clone = jniLookup< ffi.NativeFunction< @@ -4712,8 +5498,9 @@ class Intent extends jni.JObject { /// from: public java.lang.Object clone() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject clone() => - const jni.JObjectType().fromRef(_clone(reference).object); + jni.JObject clone() { + return const jni.JObjectType().fromRef(_clone(reference).object); + } static final _cloneFilter = jniLookup< ffi.NativeFunction< @@ -4723,8 +5510,9 @@ class Intent extends jni.JObject { /// from: public android.content.Intent cloneFilter() /// The returned object must be deleted after use, by calling the `delete` method. - Intent cloneFilter() => - const $IntentType().fromRef(_cloneFilter(reference).object); + Intent cloneFilter() { + return const $IntentType().fromRef(_cloneFilter(reference).object); + } static final _makeMainActivity = jniLookup< ffi.NativeFunction< @@ -4734,9 +5522,12 @@ class Intent extends jni.JObject { /// from: static public android.content.Intent makeMainActivity(android.content.ComponentName componentName) /// The returned object must be deleted after use, by calling the `delete` method. - static Intent makeMainActivity(jni.JObject componentName) => - const $IntentType() - .fromRef(_makeMainActivity(componentName.reference).object); + static Intent makeMainActivity( + jni.JObject componentName, + ) { + return const $IntentType() + .fromRef(_makeMainActivity(componentName.reference).object); + } static final _makeMainSelectorActivity = jniLookup< ffi.NativeFunction< @@ -4749,10 +5540,12 @@ class Intent extends jni.JObject { /// 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. static Intent makeMainSelectorActivity( - jni.JString string, jni.JString string1) => - const $IntentType().fromRef( - _makeMainSelectorActivity(string.reference, string1.reference) - .object); + jni.JString string, + jni.JString string1, + ) { + return const $IntentType().fromRef( + _makeMainSelectorActivity(string.reference, string1.reference).object); + } static final _makeRestartActivityTask = jniLookup< ffi.NativeFunction< @@ -4762,9 +5555,12 @@ class Intent extends jni.JObject { /// from: static public android.content.Intent makeRestartActivityTask(android.content.ComponentName componentName) /// The returned object must be deleted after use, by calling the `delete` method. - static Intent makeRestartActivityTask(jni.JObject componentName) => - const $IntentType() - .fromRef(_makeRestartActivityTask(componentName.reference).object); + static Intent makeRestartActivityTask( + jni.JObject componentName, + ) { + return const $IntentType() + .fromRef(_makeRestartActivityTask(componentName.reference).object); + } static final _getIntent = jniLookup< ffi.NativeFunction< @@ -4774,8 +5570,11 @@ class Intent extends jni.JObject { /// from: static public android.content.Intent getIntent(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - static Intent getIntent(jni.JString string) => - const $IntentType().fromRef(_getIntent(string.reference).object); + static Intent getIntent( + jni.JString string, + ) { + return const $IntentType().fromRef(_getIntent(string.reference).object); + } static final _parseUri = jniLookup< ffi.NativeFunction< @@ -4785,8 +5584,12 @@ class Intent extends jni.JObject { /// 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. - static Intent parseUri(jni.JString string, int i) => - const $IntentType().fromRef(_parseUri(string.reference, i).object); + static Intent parseUri( + jni.JString string, + int i, + ) { + return const $IntentType().fromRef(_parseUri(string.reference, i).object); + } static final _getIntentOld = jniLookup< ffi.NativeFunction< @@ -4796,8 +5599,11 @@ class Intent extends jni.JObject { /// from: static public android.content.Intent getIntentOld(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - static Intent getIntentOld(jni.JString string) => - const $IntentType().fromRef(_getIntentOld(string.reference).object); + static Intent getIntentOld( + jni.JString string, + ) { + return const $IntentType().fromRef(_getIntentOld(string.reference).object); + } static final _getAction = jniLookup< ffi.NativeFunction< @@ -4807,8 +5613,9 @@ class Intent extends jni.JObject { /// from: public java.lang.String getAction() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getAction() => - const jni.JStringType().fromRef(_getAction(reference).object); + jni.JString getAction() { + return const jni.JStringType().fromRef(_getAction(reference).object); + } static final _getData = jniLookup< ffi.NativeFunction< @@ -4817,8 +5624,9 @@ class Intent extends jni.JObject { /// from: public android.net.Uri getData() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getData() => - const jni.JObjectType().fromRef(_getData(reference).object); + jni.JObject getData() { + return const jni.JObjectType().fromRef(_getData(reference).object); + } static final _getDataString = jniLookup< ffi.NativeFunction< @@ -4828,8 +5636,9 @@ class Intent extends jni.JObject { /// from: public java.lang.String getDataString() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getDataString() => - const jni.JStringType().fromRef(_getDataString(reference).object); + jni.JString getDataString() { + return const jni.JStringType().fromRef(_getDataString(reference).object); + } static final _getScheme = jniLookup< ffi.NativeFunction< @@ -4839,8 +5648,9 @@ class Intent extends jni.JObject { /// from: public java.lang.String getScheme() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getScheme() => - const jni.JStringType().fromRef(_getScheme(reference).object); + jni.JString getScheme() { + return const jni.JStringType().fromRef(_getScheme(reference).object); + } static final _getType = jniLookup< ffi.NativeFunction< @@ -4849,8 +5659,9 @@ class Intent extends jni.JObject { /// from: public java.lang.String getType() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getType() => - const jni.JStringType().fromRef(_getType(reference).object); + jni.JString getType() { + return const jni.JStringType().fromRef(_getType(reference).object); + } static final _resolveType = jniLookup< ffi.NativeFunction< @@ -4862,8 +5673,12 @@ class Intent extends jni.JObject { /// from: public java.lang.String resolveType(android.content.Context context) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString resolveType(Context context) => const jni.JStringType() - .fromRef(_resolveType(reference, context.reference).object); + jni.JString resolveType( + Context context, + ) { + return const jni.JStringType() + .fromRef(_resolveType(reference, context.reference).object); + } static final _resolveType1 = jniLookup< ffi.NativeFunction< @@ -4875,9 +5690,12 @@ class Intent extends jni.JObject { /// from: public java.lang.String resolveType(android.content.ContentResolver contentResolver) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString resolveType1(jni.JObject contentResolver) => - const jni.JStringType() - .fromRef(_resolveType1(reference, contentResolver.reference).object); + jni.JString resolveType1( + jni.JObject contentResolver, + ) { + return const jni.JStringType() + .fromRef(_resolveType1(reference, contentResolver.reference).object); + } static final _resolveTypeIfNeeded = jniLookup< ffi.NativeFunction< @@ -4889,9 +5707,12 @@ class Intent extends jni.JObject { /// from: public java.lang.String resolveTypeIfNeeded(android.content.ContentResolver contentResolver) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString resolveTypeIfNeeded(jni.JObject contentResolver) => - const jni.JStringType().fromRef( - _resolveTypeIfNeeded(reference, contentResolver.reference).object); + jni.JString resolveTypeIfNeeded( + jni.JObject contentResolver, + ) { + return const jni.JStringType().fromRef( + _resolveTypeIfNeeded(reference, contentResolver.reference).object); + } static final _getIdentifier = jniLookup< ffi.NativeFunction< @@ -4901,8 +5722,9 @@ class Intent extends jni.JObject { /// from: public java.lang.String getIdentifier() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getIdentifier() => - const jni.JStringType().fromRef(_getIdentifier(reference).object); + jni.JString getIdentifier() { + return const jni.JStringType().fromRef(_getIdentifier(reference).object); + } static final _hasCategory = jniLookup< ffi.NativeFunction< @@ -4913,8 +5735,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean hasCategory(java.lang.String string) - bool hasCategory(jni.JString string) => - _hasCategory(reference, string.reference).boolean; + bool hasCategory( + jni.JString string, + ) { + return _hasCategory(reference, string.reference).boolean; + } static final _getCategories = jniLookup< ffi.NativeFunction< @@ -4924,8 +5749,10 @@ class Intent extends jni.JObject { /// from: public java.util.Set getCategories() /// The returned object must be deleted after use, by calling the `delete` method. - Set getCategories() => const $SetType(jni.JStringType()) - .fromRef(_getCategories(reference).object); + jni.JSet getCategories() { + return const jni.JSetType(jni.JStringType()) + .fromRef(_getCategories(reference).object); + } static final _getSelector = jniLookup< ffi.NativeFunction< @@ -4935,8 +5762,9 @@ class Intent extends jni.JObject { /// from: public android.content.Intent getSelector() /// The returned object must be deleted after use, by calling the `delete` method. - Intent getSelector() => - const $IntentType().fromRef(_getSelector(reference).object); + Intent getSelector() { + return const $IntentType().fromRef(_getSelector(reference).object); + } static final _getClipData = jniLookup< ffi.NativeFunction< @@ -4946,8 +5774,9 @@ class Intent extends jni.JObject { /// from: public android.content.ClipData getClipData() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getClipData() => - const jni.JObjectType().fromRef(_getClipData(reference).object); + jni.JObject getClipData() { + return const jni.JObjectType().fromRef(_getClipData(reference).object); + } static final _setExtrasClassLoader = jniLookup< ffi.NativeFunction< @@ -4958,8 +5787,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setExtrasClassLoader(java.lang.ClassLoader classLoader) - void setExtrasClassLoader(jni.JObject classLoader) => - _setExtrasClassLoader(reference, classLoader.reference).check(); + void setExtrasClassLoader( + jni.JObject classLoader, + ) { + return _setExtrasClassLoader(reference, classLoader.reference).check(); + } static final _hasExtra = jniLookup< ffi.NativeFunction< @@ -4970,8 +5802,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean hasExtra(java.lang.String string) - bool hasExtra(jni.JString string) => - _hasExtra(reference, string.reference).boolean; + bool hasExtra( + jni.JString string, + ) { + return _hasExtra(reference, string.reference).boolean; + } static final _hasFileDescriptors = jniLookup< ffi.NativeFunction< @@ -4980,7 +5815,9 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public boolean hasFileDescriptors() - bool hasFileDescriptors() => _hasFileDescriptors(reference).boolean; + bool hasFileDescriptors() { + return _hasFileDescriptors(reference).boolean; + } static final _getBooleanExtra = jniLookup< ffi.NativeFunction< @@ -4991,8 +5828,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public boolean getBooleanExtra(java.lang.String string, boolean z) - bool getBooleanExtra(jni.JString string, bool z) => - _getBooleanExtra(reference, string.reference, z ? 1 : 0).boolean; + bool getBooleanExtra( + jni.JString string, + bool z, + ) { + return _getBooleanExtra(reference, string.reference, z ? 1 : 0).boolean; + } static final _getByteExtra = jniLookup< ffi.NativeFunction< @@ -5003,8 +5844,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public byte getByteExtra(java.lang.String string, byte b) - int getByteExtra(jni.JString string, int b) => - _getByteExtra(reference, string.reference, b).byte; + int getByteExtra( + jni.JString string, + int b, + ) { + return _getByteExtra(reference, string.reference, b).byte; + } static final _getShortExtra = jniLookup< ffi.NativeFunction< @@ -5015,8 +5860,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public short getShortExtra(java.lang.String string, short s) - int getShortExtra(jni.JString string, int s) => - _getShortExtra(reference, string.reference, s).short; + int getShortExtra( + jni.JString string, + int s, + ) { + return _getShortExtra(reference, string.reference, s).short; + } static final _getCharExtra = jniLookup< ffi.NativeFunction< @@ -5027,8 +5876,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public char getCharExtra(java.lang.String string, char c) - int getCharExtra(jni.JString string, int c) => - _getCharExtra(reference, string.reference, c).char; + int getCharExtra( + jni.JString string, + int c, + ) { + return _getCharExtra(reference, string.reference, c).char; + } static final _getIntExtra = jniLookup< ffi.NativeFunction< @@ -5039,8 +5892,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public int getIntExtra(java.lang.String string, int i) - int getIntExtra(jni.JString string, int i) => - _getIntExtra(reference, string.reference, i).integer; + int getIntExtra( + jni.JString string, + int i, + ) { + return _getIntExtra(reference, string.reference, i).integer; + } static final _getLongExtra = jniLookup< ffi.NativeFunction< @@ -5051,8 +5908,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public long getLongExtra(java.lang.String string, long j) - int getLongExtra(jni.JString string, int j) => - _getLongExtra(reference, string.reference, j).long; + int getLongExtra( + jni.JString string, + int j, + ) { + return _getLongExtra(reference, string.reference, j).long; + } static final _getFloatExtra = jniLookup< ffi.NativeFunction< @@ -5063,8 +5924,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, double)>(); /// from: public float getFloatExtra(java.lang.String string, float f) - double getFloatExtra(jni.JString string, double f) => - _getFloatExtra(reference, string.reference, f).float; + double getFloatExtra( + jni.JString string, + double f, + ) { + return _getFloatExtra(reference, string.reference, f).float; + } static final _getDoubleExtra = jniLookup< ffi.NativeFunction< @@ -5075,8 +5940,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, double)>(); /// from: public double getDoubleExtra(java.lang.String string, double d) - double getDoubleExtra(jni.JString string, double d) => - _getDoubleExtra(reference, string.reference, d).doubleFloat; + double getDoubleExtra( + jni.JString string, + double d, + ) { + return _getDoubleExtra(reference, string.reference, d).doubleFloat; + } static final _getStringExtra = jniLookup< ffi.NativeFunction< @@ -5088,8 +5957,12 @@ class Intent extends jni.JObject { /// from: public java.lang.String getStringExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getStringExtra(jni.JString string) => const jni.JStringType() - .fromRef(_getStringExtra(reference, string.reference).object); + jni.JString getStringExtra( + jni.JString string, + ) { + return const jni.JStringType() + .fromRef(_getStringExtra(reference, string.reference).object); + } static final _getCharSequenceExtra = jniLookup< ffi.NativeFunction< @@ -5101,9 +5974,12 @@ class Intent extends jni.JObject { /// from: public java.lang.CharSequence getCharSequenceExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getCharSequenceExtra(jni.JString string) => - const jni.JObjectType() - .fromRef(_getCharSequenceExtra(reference, string.reference).object); + jni.JObject getCharSequenceExtra( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getCharSequenceExtra(reference, string.reference).object); + } static final _getParcelableExtra = jniLookup< ffi.NativeFunction< @@ -5115,9 +5991,12 @@ class Intent extends jni.JObject { /// from: public T getParcelableExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - T getParcelableExtra( - jni.JObjType $T, jni.JString string) => - $T.fromRef(_getParcelableExtra(reference, string.reference).object); + $T getParcelableExtra<$T extends jni.JObject>( + jni.JString string, { + required jni.JObjType<$T> T, + }) { + return T.fromRef(_getParcelableExtra(reference, string.reference).object); + } static final _getParcelableExtra1 = jniLookup< ffi.NativeFunction< @@ -5131,11 +6010,15 @@ class Intent extends jni.JObject { /// 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. - T getParcelableExtra1( - jni.JObjType $T, jni.JString string, jni.JObject class0) => - $T.fromRef( - _getParcelableExtra1(reference, string.reference, class0.reference) - .object); + $T getParcelableExtra1<$T extends jni.JObject>( + jni.JString string, + jni.JObject class0, { + required jni.JObjType<$T> T, + }) { + return T.fromRef( + _getParcelableExtra1(reference, string.reference, class0.reference) + .object); + } static final _getParcelableArrayExtra = jniLookup< ffi.NativeFunction< @@ -5147,9 +6030,12 @@ class Intent extends jni.JObject { /// from: public android.os.Parcelable[] getParcelableArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getParcelableArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JObjectType()).fromRef( - _getParcelableArrayExtra(reference, string.reference).object); + jni.JArray getParcelableArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.JObjectType()) + .fromRef(_getParcelableArrayExtra(reference, string.reference).object); + } static final _getParcelableArrayExtra1 = jniLookup< ffi.NativeFunction< @@ -5163,11 +6049,15 @@ class Intent extends jni.JObject { /// 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. - jni.JArray getParcelableArrayExtra1( - jni.JObjType $T, jni.JString string, jni.JObject class0) => - jni.JArrayType($T).fromRef(_getParcelableArrayExtra1( - reference, string.reference, class0.reference) - .object); + jni.JArray<$T> getParcelableArrayExtra1<$T extends jni.JObject>( + jni.JString string, + jni.JObject class0, { + required jni.JObjType<$T> T, + }) { + return jni.JArrayType(T).fromRef( + _getParcelableArrayExtra1(reference, string.reference, class0.reference) + .object); + } static final _getParcelableArrayListExtra = jniLookup< ffi.NativeFunction< @@ -5180,10 +6070,13 @@ class Intent extends jni.JObject { /// from: public java.util.ArrayList getParcelableArrayListExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getParcelableArrayListExtra( - jni.JObjType $T, jni.JString string) => - const jni.JObjectType().fromRef( - _getParcelableArrayListExtra(reference, string.reference).object); + jni.JObject getParcelableArrayListExtra<$T extends jni.JObject>( + jni.JString string, { + required jni.JObjType<$T> T, + }) { + return const jni.JObjectType().fromRef( + _getParcelableArrayListExtra(reference, string.reference).object); + } static final _getParcelableArrayListExtra1 = jniLookup< ffi.NativeFunction< @@ -5196,11 +6089,15 @@ class Intent extends jni.JObject { /// 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. - jni.JObject getParcelableArrayListExtra1( - jni.JObjType $T, jni.JString string, jni.JObject class0) => - const jni.JObjectType().fromRef(_getParcelableArrayListExtra1( - reference, string.reference, class0.reference) - .object); + jni.JObject getParcelableArrayListExtra1<$T extends jni.JObject>( + jni.JString string, + jni.JObject class0, { + required jni.JObjType<$T> T, + }) { + return const jni.JObjectType().fromRef(_getParcelableArrayListExtra1( + reference, string.reference, class0.reference) + .object); + } static final _getSerializableExtra = jniLookup< ffi.NativeFunction< @@ -5212,9 +6109,12 @@ class Intent extends jni.JObject { /// from: public java.io.Serializable getSerializableExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getSerializableExtra(jni.JString string) => - const jni.JObjectType() - .fromRef(_getSerializableExtra(reference, string.reference).object); + jni.JObject getSerializableExtra( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getSerializableExtra(reference, string.reference).object); + } static final _getSerializableExtra1 = jniLookup< ffi.NativeFunction< @@ -5228,11 +6128,15 @@ class Intent extends jni.JObject { /// 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. - T getSerializableExtra1( - jni.JObjType $T, jni.JString string, jni.JObject class0) => - $T.fromRef( - _getSerializableExtra1(reference, string.reference, class0.reference) - .object); + $T getSerializableExtra1<$T extends jni.JObject>( + jni.JString string, + jni.JObject class0, { + required jni.JObjType<$T> T, + }) { + return T.fromRef( + _getSerializableExtra1(reference, string.reference, class0.reference) + .object); + } static final _getIntegerArrayListExtra = jniLookup< ffi.NativeFunction< @@ -5244,9 +6148,12 @@ class Intent extends jni.JObject { /// from: public java.util.ArrayList getIntegerArrayListExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getIntegerArrayListExtra(jni.JString string) => - const jni.JObjectType().fromRef( - _getIntegerArrayListExtra(reference, string.reference).object); + jni.JObject getIntegerArrayListExtra( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getIntegerArrayListExtra(reference, string.reference).object); + } static final _getStringArrayListExtra = jniLookup< ffi.NativeFunction< @@ -5258,9 +6165,12 @@ class Intent extends jni.JObject { /// from: public java.util.ArrayList getStringArrayListExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getStringArrayListExtra(jni.JString string) => - const jni.JObjectType().fromRef( - _getStringArrayListExtra(reference, string.reference).object); + jni.JObject getStringArrayListExtra( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getStringArrayListExtra(reference, string.reference).object); + } static final _getCharSequenceArrayListExtra = jniLookup< ffi.NativeFunction< @@ -5273,9 +6183,12 @@ class Intent extends jni.JObject { /// from: public java.util.ArrayList getCharSequenceArrayListExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getCharSequenceArrayListExtra(jni.JString string) => - const jni.JObjectType().fromRef( - _getCharSequenceArrayListExtra(reference, string.reference).object); + jni.JObject getCharSequenceArrayListExtra( + jni.JString string, + ) { + return const jni.JObjectType().fromRef( + _getCharSequenceArrayListExtra(reference, string.reference).object); + } static final _getBooleanArrayExtra = jniLookup< ffi.NativeFunction< @@ -5287,9 +6200,12 @@ class Intent extends jni.JObject { /// from: public boolean[] getBooleanArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getBooleanArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JBooleanType()) - .fromRef(_getBooleanArrayExtra(reference, string.reference).object); + jni.JArray getBooleanArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.jbooleanType()) + .fromRef(_getBooleanArrayExtra(reference, string.reference).object); + } static final _getByteArrayExtra = jniLookup< ffi.NativeFunction< @@ -5301,9 +6217,12 @@ class Intent extends jni.JObject { /// from: public byte[] getByteArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getByteArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JByteType()) - .fromRef(_getByteArrayExtra(reference, string.reference).object); + jni.JArray getByteArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.jbyteType()) + .fromRef(_getByteArrayExtra(reference, string.reference).object); + } static final _getShortArrayExtra = jniLookup< ffi.NativeFunction< @@ -5315,9 +6234,12 @@ class Intent extends jni.JObject { /// from: public short[] getShortArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getShortArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JShortType()) - .fromRef(_getShortArrayExtra(reference, string.reference).object); + jni.JArray getShortArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.jshortType()) + .fromRef(_getShortArrayExtra(reference, string.reference).object); + } static final _getCharArrayExtra = jniLookup< ffi.NativeFunction< @@ -5329,9 +6251,12 @@ class Intent extends jni.JObject { /// from: public char[] getCharArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getCharArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JCharType()) - .fromRef(_getCharArrayExtra(reference, string.reference).object); + jni.JArray getCharArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.jcharType()) + .fromRef(_getCharArrayExtra(reference, string.reference).object); + } static final _getIntArrayExtra = jniLookup< ffi.NativeFunction< @@ -5343,9 +6268,12 @@ class Intent extends jni.JObject { /// from: public int[] getIntArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getIntArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JIntType()) - .fromRef(_getIntArrayExtra(reference, string.reference).object); + jni.JArray getIntArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.jintType()) + .fromRef(_getIntArrayExtra(reference, string.reference).object); + } static final _getLongArrayExtra = jniLookup< ffi.NativeFunction< @@ -5357,9 +6285,12 @@ class Intent extends jni.JObject { /// from: public long[] getLongArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getLongArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JLongType()) - .fromRef(_getLongArrayExtra(reference, string.reference).object); + jni.JArray getLongArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.jlongType()) + .fromRef(_getLongArrayExtra(reference, string.reference).object); + } static final _getFloatArrayExtra = jniLookup< ffi.NativeFunction< @@ -5371,9 +6302,12 @@ class Intent extends jni.JObject { /// from: public float[] getFloatArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getFloatArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JFloatType()) - .fromRef(_getFloatArrayExtra(reference, string.reference).object); + jni.JArray getFloatArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.jfloatType()) + .fromRef(_getFloatArrayExtra(reference, string.reference).object); + } static final _getDoubleArrayExtra = jniLookup< ffi.NativeFunction< @@ -5385,9 +6319,12 @@ class Intent extends jni.JObject { /// from: public double[] getDoubleArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getDoubleArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JDoubleType()) - .fromRef(_getDoubleArrayExtra(reference, string.reference).object); + jni.JArray getDoubleArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.jdoubleType()) + .fromRef(_getDoubleArrayExtra(reference, string.reference).object); + } static final _getStringArrayExtra = jniLookup< ffi.NativeFunction< @@ -5399,9 +6336,12 @@ class Intent extends jni.JObject { /// from: public java.lang.String[] getStringArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getStringArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JStringType()) - .fromRef(_getStringArrayExtra(reference, string.reference).object); + jni.JArray getStringArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.JStringType()) + .fromRef(_getStringArrayExtra(reference, string.reference).object); + } static final _getCharSequenceArrayExtra = jniLookup< ffi.NativeFunction< @@ -5413,9 +6353,12 @@ class Intent extends jni.JObject { /// from: public java.lang.CharSequence[] getCharSequenceArrayExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray getCharSequenceArrayExtra(jni.JString string) => - const jni.JArrayType(jni.JObjectType()).fromRef( - _getCharSequenceArrayExtra(reference, string.reference).object); + jni.JArray getCharSequenceArrayExtra( + jni.JString string, + ) { + return const jni.JArrayType(jni.JObjectType()).fromRef( + _getCharSequenceArrayExtra(reference, string.reference).object); + } static final _getBundleExtra = jniLookup< ffi.NativeFunction< @@ -5427,8 +6370,12 @@ class Intent extends jni.JObject { /// from: public android.os.Bundle getBundleExtra(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getBundleExtra(jni.JString string) => const jni.JObjectType() - .fromRef(_getBundleExtra(reference, string.reference).object); + jni.JObject getBundleExtra( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getBundleExtra(reference, string.reference).object); + } static final _getExtras = jniLookup< ffi.NativeFunction< @@ -5438,8 +6385,9 @@ class Intent extends jni.JObject { /// from: public android.os.Bundle getExtras() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getExtras() => - const jni.JObjectType().fromRef(_getExtras(reference).object); + jni.JObject getExtras() { + return const jni.JObjectType().fromRef(_getExtras(reference).object); + } static final _getFlags = jniLookup< ffi.NativeFunction< @@ -5448,7 +6396,9 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public int getFlags() - int getFlags() => _getFlags(reference).integer; + int getFlags() { + return _getFlags(reference).integer; + } static final _getPackage = jniLookup< ffi.NativeFunction< @@ -5458,8 +6408,9 @@ class Intent extends jni.JObject { /// from: public java.lang.String getPackage() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getPackage() => - const jni.JStringType().fromRef(_getPackage(reference).object); + jni.JString getPackage() { + return const jni.JStringType().fromRef(_getPackage(reference).object); + } static final _getComponent = jniLookup< ffi.NativeFunction< @@ -5469,8 +6420,9 @@ class Intent extends jni.JObject { /// from: public android.content.ComponentName getComponent() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getComponent() => - const jni.JObjectType().fromRef(_getComponent(reference).object); + jni.JObject getComponent() { + return const jni.JObjectType().fromRef(_getComponent(reference).object); + } static final _getSourceBounds = jniLookup< ffi.NativeFunction< @@ -5480,8 +6432,9 @@ class Intent extends jni.JObject { /// from: public android.graphics.Rect getSourceBounds() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getSourceBounds() => - const jni.JObjectType().fromRef(_getSourceBounds(reference).object); + jni.JObject getSourceBounds() { + return const jni.JObjectType().fromRef(_getSourceBounds(reference).object); + } static final _resolveActivity = jniLookup< ffi.NativeFunction< @@ -5493,9 +6446,12 @@ class Intent extends jni.JObject { /// from: public android.content.ComponentName resolveActivity(android.content.pm.PackageManager packageManager) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject resolveActivity(jni.JObject packageManager) => - const jni.JObjectType().fromRef( - _resolveActivity(reference, packageManager.reference).object); + jni.JObject resolveActivity( + jni.JObject packageManager, + ) { + return const jni.JObjectType() + .fromRef(_resolveActivity(reference, packageManager.reference).object); + } static final _resolveActivityInfo = jniLookup< ffi.NativeFunction< @@ -5509,9 +6465,13 @@ class Intent extends jni.JObject { /// 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. - jni.JObject resolveActivityInfo(jni.JObject packageManager, int i) => - const jni.JObjectType().fromRef( - _resolveActivityInfo(reference, packageManager.reference, i).object); + jni.JObject resolveActivityInfo( + jni.JObject packageManager, + int i, + ) { + return const jni.JObjectType().fromRef( + _resolveActivityInfo(reference, packageManager.reference, i).object); + } static final _setAction = jniLookup< ffi.NativeFunction< @@ -5523,8 +6483,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setAction(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setAction(jni.JString string) => const $IntentType() - .fromRef(_setAction(reference, string.reference).object); + Intent setAction( + jni.JString string, + ) { + return const $IntentType() + .fromRef(_setAction(reference, string.reference).object); + } static final _setData = jniLookup< ffi.NativeFunction< @@ -5536,8 +6500,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setData(android.net.Uri uri) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setData(jni.JObject uri) => - const $IntentType().fromRef(_setData(reference, uri.reference).object); + Intent setData( + jni.JObject uri, + ) { + return const $IntentType() + .fromRef(_setData(reference, uri.reference).object); + } static final _setDataAndNormalize = jniLookup< ffi.NativeFunction< @@ -5549,8 +6517,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setDataAndNormalize(android.net.Uri uri) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setDataAndNormalize(jni.JObject uri) => const $IntentType() - .fromRef(_setDataAndNormalize(reference, uri.reference).object); + Intent setDataAndNormalize( + jni.JObject uri, + ) { + return const $IntentType() + .fromRef(_setDataAndNormalize(reference, uri.reference).object); + } static final _setType = jniLookup< ffi.NativeFunction< @@ -5562,8 +6534,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setType(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setType(jni.JString string) => - const $IntentType().fromRef(_setType(reference, string.reference).object); + Intent setType( + jni.JString string, + ) { + return const $IntentType() + .fromRef(_setType(reference, string.reference).object); + } static final _setTypeAndNormalize = jniLookup< ffi.NativeFunction< @@ -5575,8 +6551,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setTypeAndNormalize(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setTypeAndNormalize(jni.JString string) => const $IntentType() - .fromRef(_setTypeAndNormalize(reference, string.reference).object); + Intent setTypeAndNormalize( + jni.JString string, + ) { + return const $IntentType() + .fromRef(_setTypeAndNormalize(reference, string.reference).object); + } static final _setDataAndType = jniLookup< ffi.NativeFunction< @@ -5590,9 +6570,13 @@ class Intent extends jni.JObject { /// 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. - Intent setDataAndType(jni.JObject uri, jni.JString string) => - const $IntentType().fromRef( - _setDataAndType(reference, uri.reference, string.reference).object); + Intent setDataAndType( + jni.JObject uri, + jni.JString string, + ) { + return const $IntentType().fromRef( + _setDataAndType(reference, uri.reference, string.reference).object); + } static final _setDataAndTypeAndNormalize = jniLookup< ffi.NativeFunction< @@ -5606,10 +6590,14 @@ class Intent extends jni.JObject { /// 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. - Intent setDataAndTypeAndNormalize(jni.JObject uri, jni.JString string) => - const $IntentType().fromRef(_setDataAndTypeAndNormalize( - reference, uri.reference, string.reference) - .object); + Intent setDataAndTypeAndNormalize( + jni.JObject uri, + jni.JString string, + ) { + return const $IntentType().fromRef( + _setDataAndTypeAndNormalize(reference, uri.reference, string.reference) + .object); + } static final _setIdentifier = jniLookup< ffi.NativeFunction< @@ -5621,8 +6609,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setIdentifier(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setIdentifier(jni.JString string) => const $IntentType() - .fromRef(_setIdentifier(reference, string.reference).object); + Intent setIdentifier( + jni.JString string, + ) { + return const $IntentType() + .fromRef(_setIdentifier(reference, string.reference).object); + } static final _addCategory = jniLookup< ffi.NativeFunction< @@ -5634,8 +6626,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent addCategory(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - Intent addCategory(jni.JString string) => const $IntentType() - .fromRef(_addCategory(reference, string.reference).object); + Intent addCategory( + jni.JString string, + ) { + return const $IntentType() + .fromRef(_addCategory(reference, string.reference).object); + } static final _removeCategory = jniLookup< ffi.NativeFunction< @@ -5646,8 +6642,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void removeCategory(java.lang.String string) - void removeCategory(jni.JString string) => - _removeCategory(reference, string.reference).check(); + void removeCategory( + jni.JString string, + ) { + return _removeCategory(reference, string.reference).check(); + } static final _setSelector = jniLookup< ffi.NativeFunction< @@ -5658,8 +6657,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setSelector(android.content.Intent intent) - void setSelector(Intent intent) => - _setSelector(reference, intent.reference).check(); + void setSelector( + Intent intent, + ) { + return _setSelector(reference, intent.reference).check(); + } static final _setClipData = jniLookup< ffi.NativeFunction< @@ -5670,8 +6672,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setClipData(android.content.ClipData clipData) - void setClipData(jni.JObject clipData) => - _setClipData(reference, clipData.reference).check(); + void setClipData( + jni.JObject clipData, + ) { + return _setClipData(reference, clipData.reference).check(); + } static final _putExtra = jniLookup< ffi.NativeFunction< @@ -5683,8 +6688,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra(jni.JString string, bool z) => const $IntentType() - .fromRef(_putExtra(reference, string.reference, z ? 1 : 0).object); + Intent putExtra( + jni.JString string, + bool z, + ) { + return const $IntentType() + .fromRef(_putExtra(reference, string.reference, z ? 1 : 0).object); + } static final _putExtra1 = jniLookup< ffi.NativeFunction< @@ -5696,8 +6706,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra1(jni.JString string, int b) => const $IntentType() - .fromRef(_putExtra1(reference, string.reference, b).object); + Intent putExtra1( + jni.JString string, + int b, + ) { + return const $IntentType() + .fromRef(_putExtra1(reference, string.reference, b).object); + } static final _putExtra2 = jniLookup< ffi.NativeFunction< @@ -5709,8 +6724,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra2(jni.JString string, int c) => const $IntentType() - .fromRef(_putExtra2(reference, string.reference, c).object); + Intent putExtra2( + jni.JString string, + int c, + ) { + return const $IntentType() + .fromRef(_putExtra2(reference, string.reference, c).object); + } static final _putExtra3 = jniLookup< ffi.NativeFunction< @@ -5722,8 +6742,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra3(jni.JString string, int s) => const $IntentType() - .fromRef(_putExtra3(reference, string.reference, s).object); + Intent putExtra3( + jni.JString string, + int s, + ) { + return const $IntentType() + .fromRef(_putExtra3(reference, string.reference, s).object); + } static final _putExtra4 = jniLookup< ffi.NativeFunction< @@ -5735,8 +6760,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra4(jni.JString string, int i) => const $IntentType() - .fromRef(_putExtra4(reference, string.reference, i).object); + Intent putExtra4( + jni.JString string, + int i, + ) { + return const $IntentType() + .fromRef(_putExtra4(reference, string.reference, i).object); + } static final _putExtra5 = jniLookup< ffi.NativeFunction< @@ -5748,8 +6778,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra5(jni.JString string, int j) => const $IntentType() - .fromRef(_putExtra5(reference, string.reference, j).object); + Intent putExtra5( + jni.JString string, + int j, + ) { + return const $IntentType() + .fromRef(_putExtra5(reference, string.reference, j).object); + } static final _putExtra6 = jniLookup< ffi.NativeFunction< @@ -5761,8 +6796,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra6(jni.JString string, double f) => const $IntentType() - .fromRef(_putExtra6(reference, string.reference, f).object); + Intent putExtra6( + jni.JString string, + double f, + ) { + return const $IntentType() + .fromRef(_putExtra6(reference, string.reference, f).object); + } static final _putExtra7 = jniLookup< ffi.NativeFunction< @@ -5774,8 +6814,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra7(jni.JString string, double d) => const $IntentType() - .fromRef(_putExtra7(reference, string.reference, d).object); + Intent putExtra7( + jni.JString string, + double d, + ) { + return const $IntentType() + .fromRef(_putExtra7(reference, string.reference, d).object); + } static final _putExtra8 = jniLookup< ffi.NativeFunction< @@ -5789,9 +6834,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra8(jni.JString string, jni.JString string1) => - const $IntentType().fromRef( - _putExtra8(reference, string.reference, string1.reference).object); + Intent putExtra8( + jni.JString string, + jni.JString string1, + ) { + return const $IntentType().fromRef( + _putExtra8(reference, string.reference, string1.reference).object); + } static final _putExtra9 = jniLookup< ffi.NativeFunction< @@ -5805,10 +6854,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra9(jni.JString string, jni.JObject charSequence) => - const $IntentType().fromRef( - _putExtra9(reference, string.reference, charSequence.reference) - .object); + Intent putExtra9( + jni.JString string, + jni.JObject charSequence, + ) { + return const $IntentType().fromRef( + _putExtra9(reference, string.reference, charSequence.reference).object); + } static final _putExtra10 = jniLookup< ffi.NativeFunction< @@ -5822,10 +6874,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra10(jni.JString string, jni.JObject parcelable) => - const $IntentType().fromRef( - _putExtra10(reference, string.reference, parcelable.reference) - .object); + Intent putExtra10( + jni.JString string, + jni.JObject parcelable, + ) { + return const $IntentType().fromRef( + _putExtra10(reference, string.reference, parcelable.reference).object); + } static final _putExtra11 = jniLookup< ffi.NativeFunction< @@ -5839,10 +6894,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra11(jni.JString string, jni.JArray parcelables) => - const $IntentType().fromRef( - _putExtra11(reference, string.reference, parcelables.reference) - .object); + Intent putExtra11( + jni.JString string, + jni.JArray parcelables, + ) { + return const $IntentType().fromRef( + _putExtra11(reference, string.reference, parcelables.reference).object); + } static final _putParcelableArrayListExtra = jniLookup< ffi.NativeFunction< @@ -5856,10 +6914,13 @@ class Intent extends jni.JObject { /// 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. Intent putParcelableArrayListExtra( - jni.JString string, jni.JObject arrayList) => - const $IntentType().fromRef(_putParcelableArrayListExtra( - reference, string.reference, arrayList.reference) - .object); + jni.JString string, + jni.JObject arrayList, + ) { + return const $IntentType().fromRef(_putParcelableArrayListExtra( + reference, string.reference, arrayList.reference) + .object); + } static final _putIntegerArrayListExtra = jniLookup< ffi.NativeFunction< @@ -5873,10 +6934,14 @@ class Intent extends jni.JObject { /// 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. - Intent putIntegerArrayListExtra(jni.JString string, jni.JObject arrayList) => - const $IntentType().fromRef(_putIntegerArrayListExtra( - reference, string.reference, arrayList.reference) - .object); + Intent putIntegerArrayListExtra( + jni.JString string, + jni.JObject arrayList, + ) { + return const $IntentType().fromRef(_putIntegerArrayListExtra( + reference, string.reference, arrayList.reference) + .object); + } static final _putStringArrayListExtra = jniLookup< ffi.NativeFunction< @@ -5890,10 +6955,14 @@ class Intent extends jni.JObject { /// 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. - Intent putStringArrayListExtra(jni.JString string, jni.JObject arrayList) => - const $IntentType().fromRef(_putStringArrayListExtra( - reference, string.reference, arrayList.reference) - .object); + Intent putStringArrayListExtra( + jni.JString string, + jni.JObject arrayList, + ) { + return const $IntentType().fromRef(_putStringArrayListExtra( + reference, string.reference, arrayList.reference) + .object); + } static final _putCharSequenceArrayListExtra = jniLookup< ffi.NativeFunction< @@ -5907,10 +6976,13 @@ class Intent extends jni.JObject { /// 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. Intent putCharSequenceArrayListExtra( - jni.JString string, jni.JObject arrayList) => - const $IntentType().fromRef(_putCharSequenceArrayListExtra( - reference, string.reference, arrayList.reference) - .object); + jni.JString string, + jni.JObject arrayList, + ) { + return const $IntentType().fromRef(_putCharSequenceArrayListExtra( + reference, string.reference, arrayList.reference) + .object); + } static final _putExtra12 = jniLookup< ffi.NativeFunction< @@ -5924,10 +6996,14 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra12(jni.JString string, jni.JObject serializable) => - const $IntentType().fromRef( - _putExtra12(reference, string.reference, serializable.reference) - .object); + Intent putExtra12( + jni.JString string, + jni.JObject serializable, + ) { + return const $IntentType().fromRef( + _putExtra12(reference, string.reference, serializable.reference) + .object); + } static final _putExtra13 = jniLookup< ffi.NativeFunction< @@ -5941,9 +7017,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra13(jni.JString string, jni.JArray zs) => - const $IntentType().fromRef( - _putExtra13(reference, string.reference, zs.reference).object); + Intent putExtra13( + jni.JString string, + jni.JArray zs, + ) { + return const $IntentType() + .fromRef(_putExtra13(reference, string.reference, zs.reference).object); + } static final _putExtra14 = jniLookup< ffi.NativeFunction< @@ -5957,9 +7037,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra14(jni.JString string, jni.JArray bs) => - const $IntentType().fromRef( - _putExtra14(reference, string.reference, bs.reference).object); + Intent putExtra14( + jni.JString string, + jni.JArray bs, + ) { + return const $IntentType() + .fromRef(_putExtra14(reference, string.reference, bs.reference).object); + } static final _putExtra15 = jniLookup< ffi.NativeFunction< @@ -5973,9 +7057,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra15(jni.JString string, jni.JArray ss) => - const $IntentType().fromRef( - _putExtra15(reference, string.reference, ss.reference).object); + Intent putExtra15( + jni.JString string, + jni.JArray ss, + ) { + return const $IntentType() + .fromRef(_putExtra15(reference, string.reference, ss.reference).object); + } static final _putExtra16 = jniLookup< ffi.NativeFunction< @@ -5989,9 +7077,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra16(jni.JString string, jni.JArray cs) => - const $IntentType().fromRef( - _putExtra16(reference, string.reference, cs.reference).object); + Intent putExtra16( + jni.JString string, + jni.JArray cs, + ) { + return const $IntentType() + .fromRef(_putExtra16(reference, string.reference, cs.reference).object); + } static final _putExtra17 = jniLookup< ffi.NativeFunction< @@ -6005,9 +7097,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra17(jni.JString string, jni.JArray is0) => - const $IntentType().fromRef( - _putExtra17(reference, string.reference, is0.reference).object); + Intent putExtra17( + jni.JString string, + jni.JArray is0, + ) { + return const $IntentType().fromRef( + _putExtra17(reference, string.reference, is0.reference).object); + } static final _putExtra18 = jniLookup< ffi.NativeFunction< @@ -6021,9 +7117,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra18(jni.JString string, jni.JArray js) => - const $IntentType().fromRef( - _putExtra18(reference, string.reference, js.reference).object); + Intent putExtra18( + jni.JString string, + jni.JArray js, + ) { + return const $IntentType() + .fromRef(_putExtra18(reference, string.reference, js.reference).object); + } static final _putExtra19 = jniLookup< ffi.NativeFunction< @@ -6037,9 +7137,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra19(jni.JString string, jni.JArray fs) => - const $IntentType().fromRef( - _putExtra19(reference, string.reference, fs.reference).object); + Intent putExtra19( + jni.JString string, + jni.JArray fs, + ) { + return const $IntentType() + .fromRef(_putExtra19(reference, string.reference, fs.reference).object); + } static final _putExtra20 = jniLookup< ffi.NativeFunction< @@ -6053,9 +7157,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra20(jni.JString string, jni.JArray ds) => - const $IntentType().fromRef( - _putExtra20(reference, string.reference, ds.reference).object); + Intent putExtra20( + jni.JString string, + jni.JArray ds, + ) { + return const $IntentType() + .fromRef(_putExtra20(reference, string.reference, ds.reference).object); + } static final _putExtra21 = jniLookup< ffi.NativeFunction< @@ -6069,9 +7177,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra21(jni.JString string, jni.JArray strings) => - const $IntentType().fromRef( - _putExtra21(reference, string.reference, strings.reference).object); + Intent putExtra21( + jni.JString string, + jni.JArray strings, + ) { + return const $IntentType().fromRef( + _putExtra21(reference, string.reference, strings.reference).object); + } static final _putExtra22 = jniLookup< ffi.NativeFunction< @@ -6086,10 +7198,13 @@ class Intent extends jni.JObject { /// 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. Intent putExtra22( - jni.JString string, jni.JArray charSequences) => - const $IntentType().fromRef( - _putExtra22(reference, string.reference, charSequences.reference) - .object); + jni.JString string, + jni.JArray charSequences, + ) { + return const $IntentType().fromRef( + _putExtra22(reference, string.reference, charSequences.reference) + .object); + } static final _putExtra23 = jniLookup< ffi.NativeFunction< @@ -6103,9 +7218,13 @@ class Intent extends jni.JObject { /// 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. - Intent putExtra23(jni.JString string, jni.JObject bundle) => - const $IntentType().fromRef( - _putExtra23(reference, string.reference, bundle.reference).object); + Intent putExtra23( + jni.JString string, + jni.JObject bundle, + ) { + return const $IntentType().fromRef( + _putExtra23(reference, string.reference, bundle.reference).object); + } static final _putExtras = jniLookup< ffi.NativeFunction< @@ -6117,8 +7236,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent putExtras(android.content.Intent intent) /// The returned object must be deleted after use, by calling the `delete` method. - Intent putExtras(Intent intent) => const $IntentType() - .fromRef(_putExtras(reference, intent.reference).object); + Intent putExtras( + Intent intent, + ) { + return const $IntentType() + .fromRef(_putExtras(reference, intent.reference).object); + } static final _putExtras1 = jniLookup< ffi.NativeFunction< @@ -6130,8 +7253,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent putExtras(android.os.Bundle bundle) /// The returned object must be deleted after use, by calling the `delete` method. - Intent putExtras1(jni.JObject bundle) => const $IntentType() - .fromRef(_putExtras1(reference, bundle.reference).object); + Intent putExtras1( + jni.JObject bundle, + ) { + return const $IntentType() + .fromRef(_putExtras1(reference, bundle.reference).object); + } static final _replaceExtras = jniLookup< ffi.NativeFunction< @@ -6143,8 +7270,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent replaceExtras(android.content.Intent intent) /// The returned object must be deleted after use, by calling the `delete` method. - Intent replaceExtras(Intent intent) => const $IntentType() - .fromRef(_replaceExtras(reference, intent.reference).object); + Intent replaceExtras( + Intent intent, + ) { + return const $IntentType() + .fromRef(_replaceExtras(reference, intent.reference).object); + } static final _replaceExtras1 = jniLookup< ffi.NativeFunction< @@ -6156,8 +7287,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent replaceExtras(android.os.Bundle bundle) /// The returned object must be deleted after use, by calling the `delete` method. - Intent replaceExtras1(jni.JObject bundle) => const $IntentType() - .fromRef(_replaceExtras1(reference, bundle.reference).object); + Intent replaceExtras1( + jni.JObject bundle, + ) { + return const $IntentType() + .fromRef(_replaceExtras1(reference, bundle.reference).object); + } static final _removeExtra = jniLookup< ffi.NativeFunction< @@ -6168,8 +7303,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void removeExtra(java.lang.String string) - void removeExtra(jni.JString string) => - _removeExtra(reference, string.reference).check(); + void removeExtra( + jni.JString string, + ) { + return _removeExtra(reference, string.reference).check(); + } static final _setFlags = jniLookup< ffi.NativeFunction< @@ -6179,8 +7317,11 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setFlags(int i) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setFlags(int i) => - const $IntentType().fromRef(_setFlags(reference, i).object); + Intent setFlags( + int i, + ) { + return const $IntentType().fromRef(_setFlags(reference, i).object); + } static final _addFlags = jniLookup< ffi.NativeFunction< @@ -6190,8 +7331,11 @@ class Intent extends jni.JObject { /// from: public android.content.Intent addFlags(int i) /// The returned object must be deleted after use, by calling the `delete` method. - Intent addFlags(int i) => - const $IntentType().fromRef(_addFlags(reference, i).object); + Intent addFlags( + int i, + ) { + return const $IntentType().fromRef(_addFlags(reference, i).object); + } static final _removeFlags = jniLookup< ffi.NativeFunction< @@ -6200,7 +7344,11 @@ class Intent extends jni.JObject { .asFunction, int)>(); /// from: public void removeFlags(int i) - void removeFlags(int i) => _removeFlags(reference, i).check(); + void removeFlags( + int i, + ) { + return _removeFlags(reference, i).check(); + } static final _setPackage = jniLookup< ffi.NativeFunction< @@ -6212,8 +7360,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setPackage(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setPackage(jni.JString string) => const $IntentType() - .fromRef(_setPackage(reference, string.reference).object); + Intent setPackage( + jni.JString string, + ) { + return const $IntentType() + .fromRef(_setPackage(reference, string.reference).object); + } static final _setComponent = jniLookup< ffi.NativeFunction< @@ -6225,8 +7377,12 @@ class Intent extends jni.JObject { /// from: public android.content.Intent setComponent(android.content.ComponentName componentName) /// The returned object must be deleted after use, by calling the `delete` method. - Intent setComponent(jni.JObject componentName) => const $IntentType() - .fromRef(_setComponent(reference, componentName.reference).object); + Intent setComponent( + jni.JObject componentName, + ) { + return const $IntentType() + .fromRef(_setComponent(reference, componentName.reference).object); + } static final _setClassName = jniLookup< ffi.NativeFunction< @@ -6240,9 +7396,13 @@ class Intent extends jni.JObject { /// 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. - Intent setClassName(Context context, jni.JString string) => - const $IntentType().fromRef( - _setClassName(reference, context.reference, string.reference).object); + Intent setClassName( + Context context, + jni.JString string, + ) { + return const $IntentType().fromRef( + _setClassName(reference, context.reference, string.reference).object); + } static final _setClassName1 = jniLookup< ffi.NativeFunction< @@ -6256,10 +7416,13 @@ class Intent extends jni.JObject { /// 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. - Intent setClassName1(jni.JString string, jni.JString string1) => - const $IntentType().fromRef( - _setClassName1(reference, string.reference, string1.reference) - .object); + Intent setClassName1( + jni.JString string, + jni.JString string1, + ) { + return const $IntentType().fromRef( + _setClassName1(reference, string.reference, string1.reference).object); + } static final _setClass = jniLookup< ffi.NativeFunction< @@ -6273,9 +7436,13 @@ class Intent extends jni.JObject { /// 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. - Intent setClass(Context context, jni.JObject class0) => - const $IntentType().fromRef( - _setClass(reference, context.reference, class0.reference).object); + Intent setClass( + Context context, + jni.JObject class0, + ) { + return const $IntentType().fromRef( + _setClass(reference, context.reference, class0.reference).object); + } static final _setSourceBounds = jniLookup< ffi.NativeFunction< @@ -6286,8 +7453,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setSourceBounds(android.graphics.Rect rect) - void setSourceBounds(jni.JObject rect) => - _setSourceBounds(reference, rect.reference).check(); + void setSourceBounds( + jni.JObject rect, + ) { + return _setSourceBounds(reference, rect.reference).check(); + } static final _fillIn = jniLookup< ffi.NativeFunction< @@ -6298,8 +7468,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public int fillIn(android.content.Intent intent, int i) - int fillIn(Intent intent, int i) => - _fillIn(reference, intent.reference, i).integer; + int fillIn( + Intent intent, + int i, + ) { + return _fillIn(reference, intent.reference, i).integer; + } static final _filterEquals = jniLookup< ffi.NativeFunction< @@ -6310,8 +7484,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean filterEquals(android.content.Intent intent) - bool filterEquals(Intent intent) => - _filterEquals(reference, intent.reference).boolean; + bool filterEquals( + Intent intent, + ) { + return _filterEquals(reference, intent.reference).boolean; + } static final _filterHashCode = jniLookup< ffi.NativeFunction< @@ -6320,7 +7497,9 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public int filterHashCode() - int filterHashCode() => _filterHashCode(reference).integer; + int filterHashCode() { + return _filterHashCode(reference).integer; + } static final _toString1 = jniLookup< ffi.NativeFunction< @@ -6330,8 +7509,9 @@ class Intent extends jni.JObject { /// from: public java.lang.String toString() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString toString1() => - const jni.JStringType().fromRef(_toString1(reference).object); + jni.JString toString1() { + return const jni.JStringType().fromRef(_toString1(reference).object); + } static final _toURI = jniLookup< ffi.NativeFunction< @@ -6340,8 +7520,9 @@ class Intent extends jni.JObject { /// from: public java.lang.String toURI() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString toURI() => - const jni.JStringType().fromRef(_toURI(reference).object); + jni.JString toURI() { + return const jni.JStringType().fromRef(_toURI(reference).object); + } static final _toUri = jniLookup< ffi.NativeFunction< @@ -6351,8 +7532,11 @@ class Intent extends jni.JObject { /// from: public java.lang.String toUri(int i) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString toUri(int i) => - const jni.JStringType().fromRef(_toUri(reference, i).object); + jni.JString toUri( + int i, + ) { + return const jni.JStringType().fromRef(_toUri(reference, i).object); + } static final _describeContents = jniLookup< ffi.NativeFunction< @@ -6361,7 +7545,9 @@ class Intent extends jni.JObject { .asFunction)>(); /// from: public int describeContents() - int describeContents() => _describeContents(reference).integer; + int describeContents() { + return _describeContents(reference).integer; + } static final _writeToParcel = jniLookup< ffi.NativeFunction< @@ -6372,8 +7558,12 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public void writeToParcel(android.os.Parcel parcel, int i) - void writeToParcel(jni.JObject parcel, int i) => - _writeToParcel(reference, parcel.reference, i).check(); + void writeToParcel( + jni.JObject parcel, + int i, + ) { + return _writeToParcel(reference, parcel.reference, i).check(); + } static final _readFromParcel = jniLookup< ffi.NativeFunction< @@ -6384,8 +7574,11 @@ class Intent extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void readFromParcel(android.os.Parcel parcel) - void readFromParcel(jni.JObject parcel) => - _readFromParcel(reference, parcel.reference).check(); + void readFromParcel( + jni.JObject parcel, + ) { + return _readFromParcel(reference, parcel.reference).check(); + } static final _parseIntent = jniLookup< ffi.NativeFunction< @@ -6399,11 +7592,15 @@ class Intent extends jni.JObject { /// 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. - static Intent parseIntent(jni.JObject resources, jni.JObject xmlPullParser, - jni.JObject attributeSet) => - const $IntentType().fromRef(_parseIntent(resources.reference, - xmlPullParser.reference, attributeSet.reference) - .object); + static Intent parseIntent( + jni.JObject resources, + jni.JObject xmlPullParser, + jni.JObject attributeSet, + ) { + return const $IntentType().fromRef(_parseIntent(resources.reference, + xmlPullParser.reference, attributeSet.reference) + .object); + } static final _normalizeMimeType = jniLookup< ffi.NativeFunction< @@ -6413,9 +7610,12 @@ class Intent extends jni.JObject { /// from: static public java.lang.String normalizeMimeType(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JString normalizeMimeType(jni.JString string) => - const jni.JStringType() - .fromRef(_normalizeMimeType(string.reference).object); + static jni.JString normalizeMimeType( + jni.JString string, + ) { + return const jni.JStringType() + .fromRef(_normalizeMimeType(string.reference).object); + } } class $IntentType extends jni.JObjType { @@ -6426,24 +7626,26 @@ class $IntentType extends jni.JObjType { @override Intent fromRef(jni.JObjectPtr ref) => Intent.fromRef(ref); -} -extension $IntentArray on jni.JArray { - Intent operator [](int index) { - return (elementType as $IntentType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($IntentType).hashCode; - void operator []=(int index, Intent value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($IntentType) && other is $IntentType; } } /// from: android.app.Activity class Activity extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; Activity.fromRef( jni.JObjectPtr ref, @@ -6474,8 +7676,8 @@ class Activity extends jni.JObject { /// from: static protected final int[] FOCUSED_STATE_SET /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JArray get FOCUSED_STATE_SET => - const jni.JArrayType(jni.JIntType()) + static jni.JArray get FOCUSED_STATE_SET => + const jni.JArrayType(jni.jintType()) .fromRef(_get_FOCUSED_STATE_SET().object); /// from: static public final int RESULT_CANCELED @@ -6492,7 +7694,10 @@ class Activity extends jni.JObject { .asFunction(); /// from: public void () - Activity() : super.fromRef(_ctor().object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory Activity() { + return Activity.fromRef(_ctor().object); + } static final _getIntent = jniLookup< ffi.NativeFunction< @@ -6502,8 +7707,9 @@ class Activity extends jni.JObject { /// from: public android.content.Intent getIntent() /// The returned object must be deleted after use, by calling the `delete` method. - Intent getIntent() => - const $IntentType().fromRef(_getIntent(reference).object); + Intent getIntent() { + return const $IntentType().fromRef(_getIntent(reference).object); + } static final _setIntent = jniLookup< ffi.NativeFunction< @@ -6514,8 +7720,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setIntent(android.content.Intent intent) - void setIntent(Intent intent) => - _setIntent(reference, intent.reference).check(); + void setIntent( + Intent intent, + ) { + return _setIntent(reference, intent.reference).check(); + } static final _setLocusContext = jniLookup< ffi.NativeFunction< @@ -6528,8 +7737,13 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void setLocusContext(android.content.LocusId locusId, android.os.Bundle bundle) - void setLocusContext(jni.JObject locusId, jni.JObject bundle) => - _setLocusContext(reference, locusId.reference, bundle.reference).check(); + void setLocusContext( + jni.JObject locusId, + jni.JObject bundle, + ) { + return _setLocusContext(reference, locusId.reference, bundle.reference) + .check(); + } static final _getApplication = jniLookup< ffi.NativeFunction< @@ -6539,8 +7753,9 @@ class Activity extends jni.JObject { /// from: public final android.app.Application getApplication() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getApplication() => - const jni.JObjectType().fromRef(_getApplication(reference).object); + jni.JObject getApplication() { + return const jni.JObjectType().fromRef(_getApplication(reference).object); + } static final _isChild = jniLookup< ffi.NativeFunction< @@ -6549,7 +7764,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final boolean isChild() - bool isChild() => _isChild(reference).boolean; + bool isChild() { + return _isChild(reference).boolean; + } static final _getParent = jniLookup< ffi.NativeFunction< @@ -6559,8 +7776,9 @@ class Activity extends jni.JObject { /// from: public final android.app.Activity getParent() /// The returned object must be deleted after use, by calling the `delete` method. - Activity getParent() => - const $ActivityType().fromRef(_getParent(reference).object); + Activity getParent() { + return const $ActivityType().fromRef(_getParent(reference).object); + } static final _getWindowManager = jniLookup< ffi.NativeFunction< @@ -6570,8 +7788,9 @@ class Activity extends jni.JObject { /// from: public android.view.WindowManager getWindowManager() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getWindowManager() => - const jni.JObjectType().fromRef(_getWindowManager(reference).object); + jni.JObject getWindowManager() { + return const jni.JObjectType().fromRef(_getWindowManager(reference).object); + } static final _getWindow = jniLookup< ffi.NativeFunction< @@ -6581,8 +7800,9 @@ class Activity extends jni.JObject { /// from: public android.view.Window getWindow() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getWindow() => - const jni.JObjectType().fromRef(_getWindow(reference).object); + jni.JObject getWindow() { + return const jni.JObjectType().fromRef(_getWindow(reference).object); + } static final _getLoaderManager = jniLookup< ffi.NativeFunction< @@ -6592,8 +7812,9 @@ class Activity extends jni.JObject { /// from: public android.app.LoaderManager getLoaderManager() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getLoaderManager() => - const jni.JObjectType().fromRef(_getLoaderManager(reference).object); + jni.JObject getLoaderManager() { + return const jni.JObjectType().fromRef(_getLoaderManager(reference).object); + } static final _getCurrentFocus = jniLookup< ffi.NativeFunction< @@ -6603,8 +7824,9 @@ class Activity extends jni.JObject { /// from: public android.view.View getCurrentFocus() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getCurrentFocus() => - const jni.JObjectType().fromRef(_getCurrentFocus(reference).object); + jni.JObject getCurrentFocus() { + return const jni.JObjectType().fromRef(_getCurrentFocus(reference).object); + } static final _attachBaseContext = jniLookup< ffi.NativeFunction< @@ -6615,8 +7837,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: protected void attachBaseContext(android.content.Context context) - void attachBaseContext(Context context) => - _attachBaseContext(reference, context.reference).check(); + void attachBaseContext( + Context context, + ) { + return _attachBaseContext(reference, context.reference).check(); + } static final _registerActivityLifecycleCallbacks = jniLookup< ffi.NativeFunction< @@ -6629,10 +7854,12 @@ class Activity extends jni.JObject { /// from: public void registerActivityLifecycleCallbacks(android.app.Application$ActivityLifecycleCallbacks activityLifecycleCallbacks) void registerActivityLifecycleCallbacks( - jni.JObject activityLifecycleCallbacks) => - _registerActivityLifecycleCallbacks( - reference, activityLifecycleCallbacks.reference) - .check(); + jni.JObject activityLifecycleCallbacks, + ) { + return _registerActivityLifecycleCallbacks( + reference, activityLifecycleCallbacks.reference) + .check(); + } static final _unregisterActivityLifecycleCallbacks = jniLookup< ffi.NativeFunction< @@ -6645,10 +7872,12 @@ class Activity extends jni.JObject { /// from: public void unregisterActivityLifecycleCallbacks(android.app.Application$ActivityLifecycleCallbacks activityLifecycleCallbacks) void unregisterActivityLifecycleCallbacks( - jni.JObject activityLifecycleCallbacks) => - _unregisterActivityLifecycleCallbacks( - reference, activityLifecycleCallbacks.reference) - .check(); + jni.JObject activityLifecycleCallbacks, + ) { + return _unregisterActivityLifecycleCallbacks( + reference, activityLifecycleCallbacks.reference) + .check(); + } static final _registerComponentCallbacks = jniLookup< ffi.NativeFunction< @@ -6660,9 +7889,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void registerComponentCallbacks(android.content.ComponentCallbacks componentCallbacks) - void registerComponentCallbacks(jni.JObject componentCallbacks) => - _registerComponentCallbacks(reference, componentCallbacks.reference) - .check(); + void registerComponentCallbacks( + jni.JObject componentCallbacks, + ) { + return _registerComponentCallbacks(reference, componentCallbacks.reference) + .check(); + } static final _unregisterComponentCallbacks = jniLookup< ffi.NativeFunction< @@ -6674,9 +7906,13 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void unregisterComponentCallbacks(android.content.ComponentCallbacks componentCallbacks) - void unregisterComponentCallbacks(jni.JObject componentCallbacks) => - _unregisterComponentCallbacks(reference, componentCallbacks.reference) - .check(); + void unregisterComponentCallbacks( + jni.JObject componentCallbacks, + ) { + return _unregisterComponentCallbacks( + reference, componentCallbacks.reference) + .check(); + } static final _onCreate = jniLookup< ffi.NativeFunction< @@ -6687,8 +7923,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: protected void onCreate(android.os.Bundle bundle) - void onCreate(jni.JObject bundle) => - _onCreate(reference, bundle.reference).check(); + void onCreate( + jni.JObject bundle, + ) { + return _onCreate(reference, bundle.reference).check(); + } static final _getSplashScreen = jniLookup< ffi.NativeFunction< @@ -6698,8 +7937,9 @@ class Activity extends jni.JObject { /// from: public final android.window.SplashScreen getSplashScreen() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getSplashScreen() => - const jni.JObjectType().fromRef(_getSplashScreen(reference).object); + jni.JObject getSplashScreen() { + return const jni.JObjectType().fromRef(_getSplashScreen(reference).object); + } static final _onCreate1 = jniLookup< ffi.NativeFunction< @@ -6712,9 +7952,13 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void onCreate(android.os.Bundle bundle, android.os.PersistableBundle persistableBundle) - void onCreate1(jni.JObject bundle, jni.JObject persistableBundle) => - _onCreate1(reference, bundle.reference, persistableBundle.reference) - .check(); + void onCreate1( + jni.JObject bundle, + jni.JObject persistableBundle, + ) { + return _onCreate1(reference, bundle.reference, persistableBundle.reference) + .check(); + } static final _onRestoreInstanceState = jniLookup< ffi.NativeFunction< @@ -6725,8 +7969,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: protected void onRestoreInstanceState(android.os.Bundle bundle) - void onRestoreInstanceState(jni.JObject bundle) => - _onRestoreInstanceState(reference, bundle.reference).check(); + void onRestoreInstanceState( + jni.JObject bundle, + ) { + return _onRestoreInstanceState(reference, bundle.reference).check(); + } static final _onRestoreInstanceState1 = jniLookup< ffi.NativeFunction< @@ -6740,10 +7987,13 @@ class Activity extends jni.JObject { /// from: public void onRestoreInstanceState(android.os.Bundle bundle, android.os.PersistableBundle persistableBundle) void onRestoreInstanceState1( - jni.JObject bundle, jni.JObject persistableBundle) => - _onRestoreInstanceState1( - reference, bundle.reference, persistableBundle.reference) - .check(); + jni.JObject bundle, + jni.JObject persistableBundle, + ) { + return _onRestoreInstanceState1( + reference, bundle.reference, persistableBundle.reference) + .check(); + } static final _onPostCreate = jniLookup< ffi.NativeFunction< @@ -6754,8 +8004,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: protected void onPostCreate(android.os.Bundle bundle) - void onPostCreate(jni.JObject bundle) => - _onPostCreate(reference, bundle.reference).check(); + void onPostCreate( + jni.JObject bundle, + ) { + return _onPostCreate(reference, bundle.reference).check(); + } static final _onPostCreate1 = jniLookup< ffi.NativeFunction< @@ -6768,9 +8021,14 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void onPostCreate(android.os.Bundle bundle, android.os.PersistableBundle persistableBundle) - void onPostCreate1(jni.JObject bundle, jni.JObject persistableBundle) => - _onPostCreate1(reference, bundle.reference, persistableBundle.reference) - .check(); + void onPostCreate1( + jni.JObject bundle, + jni.JObject persistableBundle, + ) { + return _onPostCreate1( + reference, bundle.reference, persistableBundle.reference) + .check(); + } static final _onStart = jniLookup< ffi.NativeFunction< @@ -6779,7 +8037,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: protected void onStart() - void onStart() => _onStart(reference).check(); + void onStart() { + return _onStart(reference).check(); + } static final _onRestart = jniLookup< ffi.NativeFunction< @@ -6788,7 +8048,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: protected void onRestart() - void onRestart() => _onRestart(reference).check(); + void onRestart() { + return _onRestart(reference).check(); + } static final _onStateNotSaved = jniLookup< ffi.NativeFunction< @@ -6797,7 +8059,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onStateNotSaved() - void onStateNotSaved() => _onStateNotSaved(reference).check(); + void onStateNotSaved() { + return _onStateNotSaved(reference).check(); + } static final _onResume = jniLookup< ffi.NativeFunction< @@ -6806,7 +8070,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: protected void onResume() - void onResume() => _onResume(reference).check(); + void onResume() { + return _onResume(reference).check(); + } static final _onPostResume = jniLookup< ffi.NativeFunction< @@ -6815,7 +8081,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: protected void onPostResume() - void onPostResume() => _onPostResume(reference).check(); + void onPostResume() { + return _onPostResume(reference).check(); + } static final _onTopResumedActivityChanged = jniLookup< ffi.NativeFunction< @@ -6824,8 +8092,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void onTopResumedActivityChanged(boolean z) - void onTopResumedActivityChanged(bool z) => - _onTopResumedActivityChanged(reference, z ? 1 : 0).check(); + void onTopResumedActivityChanged( + bool z, + ) { + return _onTopResumedActivityChanged(reference, z ? 1 : 0).check(); + } static final _isVoiceInteraction = jniLookup< ffi.NativeFunction< @@ -6834,7 +8105,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isVoiceInteraction() - bool isVoiceInteraction() => _isVoiceInteraction(reference).boolean; + bool isVoiceInteraction() { + return _isVoiceInteraction(reference).boolean; + } static final _isVoiceInteractionRoot = jniLookup< ffi.NativeFunction< @@ -6843,7 +8116,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isVoiceInteractionRoot() - bool isVoiceInteractionRoot() => _isVoiceInteractionRoot(reference).boolean; + bool isVoiceInteractionRoot() { + return _isVoiceInteractionRoot(reference).boolean; + } static final _getVoiceInteractor = jniLookup< ffi.NativeFunction< @@ -6853,8 +8128,10 @@ class Activity extends jni.JObject { /// from: public android.app.VoiceInteractor getVoiceInteractor() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getVoiceInteractor() => - const jni.JObjectType().fromRef(_getVoiceInteractor(reference).object); + jni.JObject getVoiceInteractor() { + return const jni.JObjectType() + .fromRef(_getVoiceInteractor(reference).object); + } static final _isLocalVoiceInteractionSupported = jniLookup< ffi.NativeFunction< @@ -6863,8 +8140,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isLocalVoiceInteractionSupported() - bool isLocalVoiceInteractionSupported() => - _isLocalVoiceInteractionSupported(reference).boolean; + bool isLocalVoiceInteractionSupported() { + return _isLocalVoiceInteractionSupported(reference).boolean; + } static final _startLocalVoiceInteraction = jniLookup< ffi.NativeFunction< @@ -6876,8 +8154,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void startLocalVoiceInteraction(android.os.Bundle bundle) - void startLocalVoiceInteraction(jni.JObject bundle) => - _startLocalVoiceInteraction(reference, bundle.reference).check(); + void startLocalVoiceInteraction( + jni.JObject bundle, + ) { + return _startLocalVoiceInteraction(reference, bundle.reference).check(); + } static final _onLocalVoiceInteractionStarted = jniLookup< ffi.NativeFunction< @@ -6886,8 +8167,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onLocalVoiceInteractionStarted() - void onLocalVoiceInteractionStarted() => - _onLocalVoiceInteractionStarted(reference).check(); + void onLocalVoiceInteractionStarted() { + return _onLocalVoiceInteractionStarted(reference).check(); + } static final _onLocalVoiceInteractionStopped = jniLookup< ffi.NativeFunction< @@ -6896,8 +8178,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onLocalVoiceInteractionStopped() - void onLocalVoiceInteractionStopped() => - _onLocalVoiceInteractionStopped(reference).check(); + void onLocalVoiceInteractionStopped() { + return _onLocalVoiceInteractionStopped(reference).check(); + } static final _stopLocalVoiceInteraction = jniLookup< ffi.NativeFunction< @@ -6906,8 +8189,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void stopLocalVoiceInteraction() - void stopLocalVoiceInteraction() => - _stopLocalVoiceInteraction(reference).check(); + void stopLocalVoiceInteraction() { + return _stopLocalVoiceInteraction(reference).check(); + } static final _onNewIntent = jniLookup< ffi.NativeFunction< @@ -6918,8 +8202,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: protected void onNewIntent(android.content.Intent intent) - void onNewIntent(Intent intent) => - _onNewIntent(reference, intent.reference).check(); + void onNewIntent( + Intent intent, + ) { + return _onNewIntent(reference, intent.reference).check(); + } static final _onSaveInstanceState = jniLookup< ffi.NativeFunction< @@ -6930,8 +8217,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: protected void onSaveInstanceState(android.os.Bundle bundle) - void onSaveInstanceState(jni.JObject bundle) => - _onSaveInstanceState(reference, bundle.reference).check(); + void onSaveInstanceState( + jni.JObject bundle, + ) { + return _onSaveInstanceState(reference, bundle.reference).check(); + } static final _onSaveInstanceState1 = jniLookup< ffi.NativeFunction< @@ -6945,10 +8235,13 @@ class Activity extends jni.JObject { /// from: public void onSaveInstanceState(android.os.Bundle bundle, android.os.PersistableBundle persistableBundle) void onSaveInstanceState1( - jni.JObject bundle, jni.JObject persistableBundle) => - _onSaveInstanceState1( - reference, bundle.reference, persistableBundle.reference) - .check(); + jni.JObject bundle, + jni.JObject persistableBundle, + ) { + return _onSaveInstanceState1( + reference, bundle.reference, persistableBundle.reference) + .check(); + } static final _onPause = jniLookup< ffi.NativeFunction< @@ -6957,7 +8250,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: protected void onPause() - void onPause() => _onPause(reference).check(); + void onPause() { + return _onPause(reference).check(); + } static final _onUserLeaveHint = jniLookup< ffi.NativeFunction< @@ -6966,7 +8261,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: protected void onUserLeaveHint() - void onUserLeaveHint() => _onUserLeaveHint(reference).check(); + void onUserLeaveHint() { + return _onUserLeaveHint(reference).check(); + } static final _onCreateThumbnail = jniLookup< ffi.NativeFunction< @@ -6979,8 +8276,13 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public boolean onCreateThumbnail(android.graphics.Bitmap bitmap, android.graphics.Canvas canvas) - bool onCreateThumbnail(jni.JObject bitmap, jni.JObject canvas) => - _onCreateThumbnail(reference, bitmap.reference, canvas.reference).boolean; + bool onCreateThumbnail( + jni.JObject bitmap, + jni.JObject canvas, + ) { + return _onCreateThumbnail(reference, bitmap.reference, canvas.reference) + .boolean; + } static final _onCreateDescription = jniLookup< ffi.NativeFunction< @@ -6990,8 +8292,10 @@ class Activity extends jni.JObject { /// from: public java.lang.CharSequence onCreateDescription() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject onCreateDescription() => - const jni.JObjectType().fromRef(_onCreateDescription(reference).object); + jni.JObject onCreateDescription() { + return const jni.JObjectType() + .fromRef(_onCreateDescription(reference).object); + } static final _onProvideAssistData = jniLookup< ffi.NativeFunction< @@ -7002,8 +8306,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onProvideAssistData(android.os.Bundle bundle) - void onProvideAssistData(jni.JObject bundle) => - _onProvideAssistData(reference, bundle.reference).check(); + void onProvideAssistData( + jni.JObject bundle, + ) { + return _onProvideAssistData(reference, bundle.reference).check(); + } static final _onProvideAssistContent = jniLookup< ffi.NativeFunction< @@ -7014,8 +8321,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onProvideAssistContent(android.app.assist.AssistContent assistContent) - void onProvideAssistContent(jni.JObject assistContent) => - _onProvideAssistContent(reference, assistContent.reference).check(); + void onProvideAssistContent( + jni.JObject assistContent, + ) { + return _onProvideAssistContent(reference, assistContent.reference).check(); + } static final _onGetDirectActions = jniLookup< ffi.NativeFunction< @@ -7029,10 +8339,13 @@ class Activity extends jni.JObject { /// from: public void onGetDirectActions(android.os.CancellationSignal cancellationSignal, java.util.function.Consumer consumer) void onGetDirectActions( - jni.JObject cancellationSignal, jni.JObject consumer) => - _onGetDirectActions( - reference, cancellationSignal.reference, consumer.reference) - .check(); + jni.JObject cancellationSignal, + jni.JObject consumer, + ) { + return _onGetDirectActions( + reference, cancellationSignal.reference, consumer.reference) + .check(); + } static final _onPerformDirectAction = jniLookup< ffi.NativeFunction< @@ -7051,11 +8364,16 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void onPerformDirectAction(java.lang.String string, android.os.Bundle bundle, android.os.CancellationSignal cancellationSignal, java.util.function.Consumer consumer) - void onPerformDirectAction(jni.JString string, jni.JObject bundle, - jni.JObject cancellationSignal, jni.JObject consumer) => - _onPerformDirectAction(reference, string.reference, bundle.reference, - cancellationSignal.reference, consumer.reference) - .check(); + void onPerformDirectAction( + jni.JString string, + jni.JObject bundle, + jni.JObject cancellationSignal, + jni.JObject consumer, + ) { + return _onPerformDirectAction(reference, string.reference, bundle.reference, + cancellationSignal.reference, consumer.reference) + .check(); + } static final _requestShowKeyboardShortcuts = jniLookup< ffi.NativeFunction< @@ -7064,8 +8382,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final void requestShowKeyboardShortcuts() - void requestShowKeyboardShortcuts() => - _requestShowKeyboardShortcuts(reference).check(); + void requestShowKeyboardShortcuts() { + return _requestShowKeyboardShortcuts(reference).check(); + } static final _dismissKeyboardShortcutsHelper = jniLookup< ffi.NativeFunction< @@ -7074,8 +8393,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final void dismissKeyboardShortcutsHelper() - void dismissKeyboardShortcutsHelper() => - _dismissKeyboardShortcutsHelper(reference).check(); + void dismissKeyboardShortcutsHelper() { + return _dismissKeyboardShortcutsHelper(reference).check(); + } static final _onProvideKeyboardShortcuts = jniLookup< ffi.NativeFunction< @@ -7089,9 +8409,15 @@ class Activity extends jni.JObject { ffi.Pointer, int)>(); /// from: public void onProvideKeyboardShortcuts(java.util.List list, android.view.Menu menu, int i) - void onProvideKeyboardShortcuts(jni.JObject list, jni.JObject menu, int i) => - _onProvideKeyboardShortcuts(reference, list.reference, menu.reference, i) - .check(); + void onProvideKeyboardShortcuts( + jni.JList list, + jni.JObject menu, + int i, + ) { + return _onProvideKeyboardShortcuts( + reference, list.reference, menu.reference, i) + .check(); + } static final _showAssist = jniLookup< ffi.NativeFunction< @@ -7102,8 +8428,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean showAssist(android.os.Bundle bundle) - bool showAssist(jni.JObject bundle) => - _showAssist(reference, bundle.reference).boolean; + bool showAssist( + jni.JObject bundle, + ) { + return _showAssist(reference, bundle.reference).boolean; + } static final _onStop = jniLookup< ffi.NativeFunction< @@ -7112,7 +8441,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: protected void onStop() - void onStop() => _onStop(reference).check(); + void onStop() { + return _onStop(reference).check(); + } static final _onDestroy = jniLookup< ffi.NativeFunction< @@ -7121,7 +8452,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: protected void onDestroy() - void onDestroy() => _onDestroy(reference).check(); + void onDestroy() { + return _onDestroy(reference).check(); + } static final _reportFullyDrawn = jniLookup< ffi.NativeFunction< @@ -7130,7 +8463,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void reportFullyDrawn() - void reportFullyDrawn() => _reportFullyDrawn(reference).check(); + void reportFullyDrawn() { + return _reportFullyDrawn(reference).check(); + } static final _onMultiWindowModeChanged = jniLookup< ffi.NativeFunction< @@ -7141,9 +8476,14 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public void onMultiWindowModeChanged(boolean z, android.content.res.Configuration configuration) - void onMultiWindowModeChanged(bool z, jni.JObject configuration) => - _onMultiWindowModeChanged(reference, z ? 1 : 0, configuration.reference) - .check(); + void onMultiWindowModeChanged( + bool z, + jni.JObject configuration, + ) { + return _onMultiWindowModeChanged( + reference, z ? 1 : 0, configuration.reference) + .check(); + } static final _onMultiWindowModeChanged1 = jniLookup< ffi.NativeFunction< @@ -7152,8 +8492,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void onMultiWindowModeChanged(boolean z) - void onMultiWindowModeChanged1(bool z) => - _onMultiWindowModeChanged1(reference, z ? 1 : 0).check(); + void onMultiWindowModeChanged1( + bool z, + ) { + return _onMultiWindowModeChanged1(reference, z ? 1 : 0).check(); + } static final _isInMultiWindowMode = jniLookup< ffi.NativeFunction< @@ -7162,7 +8505,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isInMultiWindowMode() - bool isInMultiWindowMode() => _isInMultiWindowMode(reference).boolean; + bool isInMultiWindowMode() { + return _isInMultiWindowMode(reference).boolean; + } static final _onPictureInPictureModeChanged = jniLookup< ffi.NativeFunction< @@ -7174,10 +8519,14 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public void onPictureInPictureModeChanged(boolean z, android.content.res.Configuration configuration) - void onPictureInPictureModeChanged(bool z, jni.JObject configuration) => - _onPictureInPictureModeChanged( - reference, z ? 1 : 0, configuration.reference) - .check(); + void onPictureInPictureModeChanged( + bool z, + jni.JObject configuration, + ) { + return _onPictureInPictureModeChanged( + reference, z ? 1 : 0, configuration.reference) + .check(); + } static final _onPictureInPictureUiStateChanged = jniLookup< ffi.NativeFunction< @@ -7189,10 +8538,13 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onPictureInPictureUiStateChanged(android.app.PictureInPictureUiState pictureInPictureUiState) - void onPictureInPictureUiStateChanged(jni.JObject pictureInPictureUiState) => - _onPictureInPictureUiStateChanged( - reference, pictureInPictureUiState.reference) - .check(); + void onPictureInPictureUiStateChanged( + jni.JObject pictureInPictureUiState, + ) { + return _onPictureInPictureUiStateChanged( + reference, pictureInPictureUiState.reference) + .check(); + } static final _onPictureInPictureModeChanged1 = jniLookup< ffi.NativeFunction< @@ -7201,8 +8553,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void onPictureInPictureModeChanged(boolean z) - void onPictureInPictureModeChanged1(bool z) => - _onPictureInPictureModeChanged1(reference, z ? 1 : 0).check(); + void onPictureInPictureModeChanged1( + bool z, + ) { + return _onPictureInPictureModeChanged1(reference, z ? 1 : 0).check(); + } static final _isInPictureInPictureMode = jniLookup< ffi.NativeFunction< @@ -7211,8 +8566,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isInPictureInPictureMode() - bool isInPictureInPictureMode() => - _isInPictureInPictureMode(reference).boolean; + bool isInPictureInPictureMode() { + return _isInPictureInPictureMode(reference).boolean; + } static final _enterPictureInPictureMode = jniLookup< ffi.NativeFunction< @@ -7221,8 +8577,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void enterPictureInPictureMode() - void enterPictureInPictureMode() => - _enterPictureInPictureMode(reference).check(); + void enterPictureInPictureMode() { + return _enterPictureInPictureMode(reference).check(); + } static final _enterPictureInPictureMode1 = jniLookup< ffi.NativeFunction< @@ -7234,9 +8591,13 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean enterPictureInPictureMode(android.app.PictureInPictureParams pictureInPictureParams) - bool enterPictureInPictureMode1(jni.JObject pictureInPictureParams) => - _enterPictureInPictureMode1(reference, pictureInPictureParams.reference) - .boolean; + bool enterPictureInPictureMode1( + jni.JObject pictureInPictureParams, + ) { + return _enterPictureInPictureMode1( + reference, pictureInPictureParams.reference) + .boolean; + } static final _setPictureInPictureParams = jniLookup< ffi.NativeFunction< @@ -7248,9 +8609,13 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setPictureInPictureParams(android.app.PictureInPictureParams pictureInPictureParams) - void setPictureInPictureParams(jni.JObject pictureInPictureParams) => - _setPictureInPictureParams(reference, pictureInPictureParams.reference) - .check(); + void setPictureInPictureParams( + jni.JObject pictureInPictureParams, + ) { + return _setPictureInPictureParams( + reference, pictureInPictureParams.reference) + .check(); + } static final _getMaxNumPictureInPictureActions = jniLookup< ffi.NativeFunction< @@ -7259,8 +8624,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public int getMaxNumPictureInPictureActions() - int getMaxNumPictureInPictureActions() => - _getMaxNumPictureInPictureActions(reference).integer; + int getMaxNumPictureInPictureActions() { + return _getMaxNumPictureInPictureActions(reference).integer; + } static final _onPictureInPictureRequested = jniLookup< ffi.NativeFunction< @@ -7269,8 +8635,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean onPictureInPictureRequested() - bool onPictureInPictureRequested() => - _onPictureInPictureRequested(reference).boolean; + bool onPictureInPictureRequested() { + return _onPictureInPictureRequested(reference).boolean; + } static final _setShouldDockBigOverlays = jniLookup< ffi.NativeFunction< @@ -7279,8 +8646,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setShouldDockBigOverlays(boolean z) - void setShouldDockBigOverlays(bool z) => - _setShouldDockBigOverlays(reference, z ? 1 : 0).check(); + void setShouldDockBigOverlays( + bool z, + ) { + return _setShouldDockBigOverlays(reference, z ? 1 : 0).check(); + } static final _shouldDockBigOverlays = jniLookup< ffi.NativeFunction< @@ -7289,7 +8659,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean shouldDockBigOverlays() - bool shouldDockBigOverlays() => _shouldDockBigOverlays(reference).boolean; + bool shouldDockBigOverlays() { + return _shouldDockBigOverlays(reference).boolean; + } static final _onConfigurationChanged = jniLookup< ffi.NativeFunction< @@ -7300,8 +8672,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onConfigurationChanged(android.content.res.Configuration configuration) - void onConfigurationChanged(jni.JObject configuration) => - _onConfigurationChanged(reference, configuration.reference).check(); + void onConfigurationChanged( + jni.JObject configuration, + ) { + return _onConfigurationChanged(reference, configuration.reference).check(); + } static final _getChangingConfigurations = jniLookup< ffi.NativeFunction< @@ -7310,8 +8685,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public int getChangingConfigurations() - int getChangingConfigurations() => - _getChangingConfigurations(reference).integer; + int getChangingConfigurations() { + return _getChangingConfigurations(reference).integer; + } static final _getLastNonConfigurationInstance = jniLookup< ffi.NativeFunction< @@ -7321,8 +8697,10 @@ class Activity extends jni.JObject { /// from: public java.lang.Object getLastNonConfigurationInstance() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getLastNonConfigurationInstance() => const jni.JObjectType() - .fromRef(_getLastNonConfigurationInstance(reference).object); + jni.JObject getLastNonConfigurationInstance() { + return const jni.JObjectType() + .fromRef(_getLastNonConfigurationInstance(reference).object); + } static final _onRetainNonConfigurationInstance = jniLookup< ffi.NativeFunction< @@ -7332,8 +8710,10 @@ class Activity extends jni.JObject { /// from: public java.lang.Object onRetainNonConfigurationInstance() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject onRetainNonConfigurationInstance() => const jni.JObjectType() - .fromRef(_onRetainNonConfigurationInstance(reference).object); + jni.JObject onRetainNonConfigurationInstance() { + return const jni.JObjectType() + .fromRef(_onRetainNonConfigurationInstance(reference).object); + } static final _onLowMemory = jniLookup< ffi.NativeFunction< @@ -7342,7 +8722,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onLowMemory() - void onLowMemory() => _onLowMemory(reference).check(); + void onLowMemory() { + return _onLowMemory(reference).check(); + } static final _onTrimMemory = jniLookup< ffi.NativeFunction< @@ -7351,7 +8733,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void onTrimMemory(int i) - void onTrimMemory(int i) => _onTrimMemory(reference, i).check(); + void onTrimMemory( + int i, + ) { + return _onTrimMemory(reference, i).check(); + } static final _getFragmentManager = jniLookup< ffi.NativeFunction< @@ -7361,8 +8747,10 @@ class Activity extends jni.JObject { /// from: public android.app.FragmentManager getFragmentManager() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getFragmentManager() => - const jni.JObjectType().fromRef(_getFragmentManager(reference).object); + jni.JObject getFragmentManager() { + return const jni.JObjectType() + .fromRef(_getFragmentManager(reference).object); + } static final _onAttachFragment = jniLookup< ffi.NativeFunction< @@ -7373,8 +8761,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onAttachFragment(android.app.Fragment fragment) - void onAttachFragment(jni.JObject fragment) => - _onAttachFragment(reference, fragment.reference).check(); + void onAttachFragment( + jni.JObject fragment, + ) { + return _onAttachFragment(reference, fragment.reference).check(); + } static final _managedQuery = jniLookup< ffi.NativeFunction< @@ -7397,19 +8788,21 @@ class Activity extends jni.JObject { /// 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. jni.JObject managedQuery( - jni.JObject uri, - jni.JArray strings, - jni.JString string, - jni.JArray strings1, - jni.JString string1) => - const jni.JObjectType().fromRef(_managedQuery( - reference, - uri.reference, - strings.reference, - string.reference, - strings1.reference, - string1.reference) - .object); + jni.JObject uri, + jni.JArray strings, + jni.JString string, + jni.JArray strings1, + jni.JString string1, + ) { + return const jni.JObjectType().fromRef(_managedQuery( + reference, + uri.reference, + strings.reference, + string.reference, + strings1.reference, + string1.reference) + .object); + } static final _startManagingCursor = jniLookup< ffi.NativeFunction< @@ -7420,8 +8813,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void startManagingCursor(android.database.Cursor cursor) - void startManagingCursor(jni.JObject cursor) => - _startManagingCursor(reference, cursor.reference).check(); + void startManagingCursor( + jni.JObject cursor, + ) { + return _startManagingCursor(reference, cursor.reference).check(); + } static final _stopManagingCursor = jniLookup< ffi.NativeFunction< @@ -7432,8 +8828,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void stopManagingCursor(android.database.Cursor cursor) - void stopManagingCursor(jni.JObject cursor) => - _stopManagingCursor(reference, cursor.reference).check(); + void stopManagingCursor( + jni.JObject cursor, + ) { + return _stopManagingCursor(reference, cursor.reference).check(); + } static final _findViewById = jniLookup< ffi.NativeFunction< @@ -7443,8 +8842,12 @@ class Activity extends jni.JObject { /// from: public T findViewById(int i) /// The returned object must be deleted after use, by calling the `delete` method. - T findViewById(jni.JObjType $T, int i) => - $T.fromRef(_findViewById(reference, i).object); + $T findViewById<$T extends jni.JObject>( + int i, { + required jni.JObjType<$T> T, + }) { + return T.fromRef(_findViewById(reference, i).object); + } static final _requireViewById = jniLookup< ffi.NativeFunction< @@ -7454,8 +8857,12 @@ class Activity extends jni.JObject { /// from: public final T requireViewById(int i) /// The returned object must be deleted after use, by calling the `delete` method. - T requireViewById(jni.JObjType $T, int i) => - $T.fromRef(_requireViewById(reference, i).object); + $T requireViewById<$T extends jni.JObject>( + int i, { + required jni.JObjType<$T> T, + }) { + return T.fromRef(_requireViewById(reference, i).object); + } static final _getActionBar = jniLookup< ffi.NativeFunction< @@ -7465,8 +8872,9 @@ class Activity extends jni.JObject { /// from: public android.app.ActionBar getActionBar() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getActionBar() => - const jni.JObjectType().fromRef(_getActionBar(reference).object); + jni.JObject getActionBar() { + return const jni.JObjectType().fromRef(_getActionBar(reference).object); + } static final _setActionBar = jniLookup< ffi.NativeFunction< @@ -7477,8 +8885,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setActionBar(android.widget.Toolbar toolbar) - void setActionBar(jni.JObject toolbar) => - _setActionBar(reference, toolbar.reference).check(); + void setActionBar( + jni.JObject toolbar, + ) { + return _setActionBar(reference, toolbar.reference).check(); + } static final _setContentView = jniLookup< ffi.NativeFunction< @@ -7487,7 +8898,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setContentView(int i) - void setContentView(int i) => _setContentView(reference, i).check(); + void setContentView( + int i, + ) { + return _setContentView(reference, i).check(); + } static final _setContentView1 = jniLookup< ffi.NativeFunction< @@ -7498,8 +8913,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setContentView(android.view.View view) - void setContentView1(jni.JObject view) => - _setContentView1(reference, view.reference).check(); + void setContentView1( + jni.JObject view, + ) { + return _setContentView1(reference, view.reference).check(); + } static final _setContentView2 = jniLookup< ffi.NativeFunction< @@ -7512,9 +8930,13 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void setContentView(android.view.View view, android.view.ViewGroup$LayoutParams layoutParams) - void setContentView2(jni.JObject view, jni.JObject layoutParams) => - _setContentView2(reference, view.reference, layoutParams.reference) - .check(); + void setContentView2( + jni.JObject view, + jni.JObject layoutParams, + ) { + return _setContentView2(reference, view.reference, layoutParams.reference) + .check(); + } static final _addContentView = jniLookup< ffi.NativeFunction< @@ -7527,9 +8949,13 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void addContentView(android.view.View view, android.view.ViewGroup$LayoutParams layoutParams) - void addContentView(jni.JObject view, jni.JObject layoutParams) => - _addContentView(reference, view.reference, layoutParams.reference) - .check(); + void addContentView( + jni.JObject view, + jni.JObject layoutParams, + ) { + return _addContentView(reference, view.reference, layoutParams.reference) + .check(); + } static final _getContentTransitionManager = jniLookup< ffi.NativeFunction< @@ -7539,8 +8965,10 @@ class Activity extends jni.JObject { /// from: public android.transition.TransitionManager getContentTransitionManager() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getContentTransitionManager() => const jni.JObjectType() - .fromRef(_getContentTransitionManager(reference).object); + jni.JObject getContentTransitionManager() { + return const jni.JObjectType() + .fromRef(_getContentTransitionManager(reference).object); + } static final _setContentTransitionManager = jniLookup< ffi.NativeFunction< @@ -7552,9 +8980,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setContentTransitionManager(android.transition.TransitionManager transitionManager) - void setContentTransitionManager(jni.JObject transitionManager) => - _setContentTransitionManager(reference, transitionManager.reference) - .check(); + void setContentTransitionManager( + jni.JObject transitionManager, + ) { + return _setContentTransitionManager(reference, transitionManager.reference) + .check(); + } static final _getContentScene = jniLookup< ffi.NativeFunction< @@ -7564,8 +8995,9 @@ class Activity extends jni.JObject { /// from: public android.transition.Scene getContentScene() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getContentScene() => - const jni.JObjectType().fromRef(_getContentScene(reference).object); + jni.JObject getContentScene() { + return const jni.JObjectType().fromRef(_getContentScene(reference).object); + } static final _setFinishOnTouchOutside = jniLookup< ffi.NativeFunction< @@ -7574,8 +9006,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setFinishOnTouchOutside(boolean z) - void setFinishOnTouchOutside(bool z) => - _setFinishOnTouchOutside(reference, z ? 1 : 0).check(); + void setFinishOnTouchOutside( + bool z, + ) { + return _setFinishOnTouchOutside(reference, z ? 1 : 0).check(); + } static final _setDefaultKeyMode = jniLookup< ffi.NativeFunction< @@ -7584,7 +9019,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void setDefaultKeyMode(int i) - void setDefaultKeyMode(int i) => _setDefaultKeyMode(reference, i).check(); + void setDefaultKeyMode( + int i, + ) { + return _setDefaultKeyMode(reference, i).check(); + } static final _onKeyDown = jniLookup< ffi.NativeFunction< @@ -7595,8 +9034,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public boolean onKeyDown(int i, android.view.KeyEvent keyEvent) - bool onKeyDown(int i, jni.JObject keyEvent) => - _onKeyDown(reference, i, keyEvent.reference).boolean; + bool onKeyDown( + int i, + jni.JObject keyEvent, + ) { + return _onKeyDown(reference, i, keyEvent.reference).boolean; + } static final _onKeyLongPress = jniLookup< ffi.NativeFunction< @@ -7607,8 +9050,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public boolean onKeyLongPress(int i, android.view.KeyEvent keyEvent) - bool onKeyLongPress(int i, jni.JObject keyEvent) => - _onKeyLongPress(reference, i, keyEvent.reference).boolean; + bool onKeyLongPress( + int i, + jni.JObject keyEvent, + ) { + return _onKeyLongPress(reference, i, keyEvent.reference).boolean; + } static final _onKeyUp = jniLookup< ffi.NativeFunction< @@ -7619,8 +9066,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public boolean onKeyUp(int i, android.view.KeyEvent keyEvent) - bool onKeyUp(int i, jni.JObject keyEvent) => - _onKeyUp(reference, i, keyEvent.reference).boolean; + bool onKeyUp( + int i, + jni.JObject keyEvent, + ) { + return _onKeyUp(reference, i, keyEvent.reference).boolean; + } static final _onKeyMultiple = jniLookup< ffi.NativeFunction< @@ -7631,8 +9082,13 @@ class Activity extends jni.JObject { ffi.Pointer, int, int, ffi.Pointer)>(); /// from: public boolean onKeyMultiple(int i, int i1, android.view.KeyEvent keyEvent) - bool onKeyMultiple(int i, int i1, jni.JObject keyEvent) => - _onKeyMultiple(reference, i, i1, keyEvent.reference).boolean; + bool onKeyMultiple( + int i, + int i1, + jni.JObject keyEvent, + ) { + return _onKeyMultiple(reference, i, i1, keyEvent.reference).boolean; + } static final _onBackPressed = jniLookup< ffi.NativeFunction< @@ -7641,7 +9097,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onBackPressed() - void onBackPressed() => _onBackPressed(reference).check(); + void onBackPressed() { + return _onBackPressed(reference).check(); + } static final _onKeyShortcut = jniLookup< ffi.NativeFunction< @@ -7652,8 +9110,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public boolean onKeyShortcut(int i, android.view.KeyEvent keyEvent) - bool onKeyShortcut(int i, jni.JObject keyEvent) => - _onKeyShortcut(reference, i, keyEvent.reference).boolean; + bool onKeyShortcut( + int i, + jni.JObject keyEvent, + ) { + return _onKeyShortcut(reference, i, keyEvent.reference).boolean; + } static final _onTouchEvent = jniLookup< ffi.NativeFunction< @@ -7664,8 +9126,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onTouchEvent(android.view.MotionEvent motionEvent) - bool onTouchEvent(jni.JObject motionEvent) => - _onTouchEvent(reference, motionEvent.reference).boolean; + bool onTouchEvent( + jni.JObject motionEvent, + ) { + return _onTouchEvent(reference, motionEvent.reference).boolean; + } static final _onTrackballEvent = jniLookup< ffi.NativeFunction< @@ -7676,8 +9141,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onTrackballEvent(android.view.MotionEvent motionEvent) - bool onTrackballEvent(jni.JObject motionEvent) => - _onTrackballEvent(reference, motionEvent.reference).boolean; + bool onTrackballEvent( + jni.JObject motionEvent, + ) { + return _onTrackballEvent(reference, motionEvent.reference).boolean; + } static final _onGenericMotionEvent = jniLookup< ffi.NativeFunction< @@ -7688,8 +9156,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onGenericMotionEvent(android.view.MotionEvent motionEvent) - bool onGenericMotionEvent(jni.JObject motionEvent) => - _onGenericMotionEvent(reference, motionEvent.reference).boolean; + bool onGenericMotionEvent( + jni.JObject motionEvent, + ) { + return _onGenericMotionEvent(reference, motionEvent.reference).boolean; + } static final _onUserInteraction = jniLookup< ffi.NativeFunction< @@ -7698,7 +9169,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onUserInteraction() - void onUserInteraction() => _onUserInteraction(reference).check(); + void onUserInteraction() { + return _onUserInteraction(reference).check(); + } static final _onWindowAttributesChanged = jniLookup< ffi.NativeFunction< @@ -7710,8 +9183,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onWindowAttributesChanged(android.view.WindowManager$LayoutParams layoutParams) - void onWindowAttributesChanged(jni.JObject layoutParams) => - _onWindowAttributesChanged(reference, layoutParams.reference).check(); + void onWindowAttributesChanged( + jni.JObject layoutParams, + ) { + return _onWindowAttributesChanged(reference, layoutParams.reference) + .check(); + } static final _onContentChanged = jniLookup< ffi.NativeFunction< @@ -7720,7 +9197,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onContentChanged() - void onContentChanged() => _onContentChanged(reference).check(); + void onContentChanged() { + return _onContentChanged(reference).check(); + } static final _onWindowFocusChanged = jniLookup< ffi.NativeFunction< @@ -7729,8 +9208,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void onWindowFocusChanged(boolean z) - void onWindowFocusChanged(bool z) => - _onWindowFocusChanged(reference, z ? 1 : 0).check(); + void onWindowFocusChanged( + bool z, + ) { + return _onWindowFocusChanged(reference, z ? 1 : 0).check(); + } static final _onAttachedToWindow = jniLookup< ffi.NativeFunction< @@ -7739,7 +9221,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onAttachedToWindow() - void onAttachedToWindow() => _onAttachedToWindow(reference).check(); + void onAttachedToWindow() { + return _onAttachedToWindow(reference).check(); + } static final _onDetachedFromWindow = jniLookup< ffi.NativeFunction< @@ -7748,7 +9232,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onDetachedFromWindow() - void onDetachedFromWindow() => _onDetachedFromWindow(reference).check(); + void onDetachedFromWindow() { + return _onDetachedFromWindow(reference).check(); + } static final _hasWindowFocus = jniLookup< ffi.NativeFunction< @@ -7757,7 +9243,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean hasWindowFocus() - bool hasWindowFocus() => _hasWindowFocus(reference).boolean; + bool hasWindowFocus() { + return _hasWindowFocus(reference).boolean; + } static final _dispatchKeyEvent = jniLookup< ffi.NativeFunction< @@ -7768,8 +9256,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean dispatchKeyEvent(android.view.KeyEvent keyEvent) - bool dispatchKeyEvent(jni.JObject keyEvent) => - _dispatchKeyEvent(reference, keyEvent.reference).boolean; + bool dispatchKeyEvent( + jni.JObject keyEvent, + ) { + return _dispatchKeyEvent(reference, keyEvent.reference).boolean; + } static final _dispatchKeyShortcutEvent = jniLookup< ffi.NativeFunction< @@ -7780,8 +9271,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean dispatchKeyShortcutEvent(android.view.KeyEvent keyEvent) - bool dispatchKeyShortcutEvent(jni.JObject keyEvent) => - _dispatchKeyShortcutEvent(reference, keyEvent.reference).boolean; + bool dispatchKeyShortcutEvent( + jni.JObject keyEvent, + ) { + return _dispatchKeyShortcutEvent(reference, keyEvent.reference).boolean; + } static final _dispatchTouchEvent = jniLookup< ffi.NativeFunction< @@ -7792,8 +9286,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean dispatchTouchEvent(android.view.MotionEvent motionEvent) - bool dispatchTouchEvent(jni.JObject motionEvent) => - _dispatchTouchEvent(reference, motionEvent.reference).boolean; + bool dispatchTouchEvent( + jni.JObject motionEvent, + ) { + return _dispatchTouchEvent(reference, motionEvent.reference).boolean; + } static final _dispatchTrackballEvent = jniLookup< ffi.NativeFunction< @@ -7804,8 +9301,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean dispatchTrackballEvent(android.view.MotionEvent motionEvent) - bool dispatchTrackballEvent(jni.JObject motionEvent) => - _dispatchTrackballEvent(reference, motionEvent.reference).boolean; + bool dispatchTrackballEvent( + jni.JObject motionEvent, + ) { + return _dispatchTrackballEvent(reference, motionEvent.reference).boolean; + } static final _dispatchGenericMotionEvent = jniLookup< ffi.NativeFunction< @@ -7817,8 +9317,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean dispatchGenericMotionEvent(android.view.MotionEvent motionEvent) - bool dispatchGenericMotionEvent(jni.JObject motionEvent) => - _dispatchGenericMotionEvent(reference, motionEvent.reference).boolean; + bool dispatchGenericMotionEvent( + jni.JObject motionEvent, + ) { + return _dispatchGenericMotionEvent(reference, motionEvent.reference) + .boolean; + } static final _dispatchPopulateAccessibilityEvent = jniLookup< ffi.NativeFunction< @@ -7830,10 +9334,13 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent accessibilityEvent) - bool dispatchPopulateAccessibilityEvent(jni.JObject accessibilityEvent) => - _dispatchPopulateAccessibilityEvent( - reference, accessibilityEvent.reference) - .boolean; + bool dispatchPopulateAccessibilityEvent( + jni.JObject accessibilityEvent, + ) { + return _dispatchPopulateAccessibilityEvent( + reference, accessibilityEvent.reference) + .boolean; + } static final _onCreatePanelView = jniLookup< ffi.NativeFunction< @@ -7843,8 +9350,12 @@ class Activity extends jni.JObject { /// from: public android.view.View onCreatePanelView(int i) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject onCreatePanelView(int i) => - const jni.JObjectType().fromRef(_onCreatePanelView(reference, i).object); + jni.JObject onCreatePanelView( + int i, + ) { + return const jni.JObjectType() + .fromRef(_onCreatePanelView(reference, i).object); + } static final _onCreatePanelMenu = jniLookup< ffi.NativeFunction< @@ -7855,8 +9366,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public boolean onCreatePanelMenu(int i, android.view.Menu menu) - bool onCreatePanelMenu(int i, jni.JObject menu) => - _onCreatePanelMenu(reference, i, menu.reference).boolean; + bool onCreatePanelMenu( + int i, + jni.JObject menu, + ) { + return _onCreatePanelMenu(reference, i, menu.reference).boolean; + } static final _onPreparePanel = jniLookup< ffi.NativeFunction< @@ -7870,8 +9385,14 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onPreparePanel(int i, android.view.View view, android.view.Menu menu) - bool onPreparePanel(int i, jni.JObject view, jni.JObject menu) => - _onPreparePanel(reference, i, view.reference, menu.reference).boolean; + bool onPreparePanel( + int i, + jni.JObject view, + jni.JObject menu, + ) { + return _onPreparePanel(reference, i, view.reference, menu.reference) + .boolean; + } static final _onMenuOpened = jniLookup< ffi.NativeFunction< @@ -7882,8 +9403,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public boolean onMenuOpened(int i, android.view.Menu menu) - bool onMenuOpened(int i, jni.JObject menu) => - _onMenuOpened(reference, i, menu.reference).boolean; + bool onMenuOpened( + int i, + jni.JObject menu, + ) { + return _onMenuOpened(reference, i, menu.reference).boolean; + } static final _onMenuItemSelected = jniLookup< ffi.NativeFunction< @@ -7894,8 +9419,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public boolean onMenuItemSelected(int i, android.view.MenuItem menuItem) - bool onMenuItemSelected(int i, jni.JObject menuItem) => - _onMenuItemSelected(reference, i, menuItem.reference).boolean; + bool onMenuItemSelected( + int i, + jni.JObject menuItem, + ) { + return _onMenuItemSelected(reference, i, menuItem.reference).boolean; + } static final _onPanelClosed = jniLookup< ffi.NativeFunction< @@ -7906,8 +9435,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public void onPanelClosed(int i, android.view.Menu menu) - void onPanelClosed(int i, jni.JObject menu) => - _onPanelClosed(reference, i, menu.reference).check(); + void onPanelClosed( + int i, + jni.JObject menu, + ) { + return _onPanelClosed(reference, i, menu.reference).check(); + } static final _invalidateOptionsMenu = jniLookup< ffi.NativeFunction< @@ -7916,7 +9449,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void invalidateOptionsMenu() - void invalidateOptionsMenu() => _invalidateOptionsMenu(reference).check(); + void invalidateOptionsMenu() { + return _invalidateOptionsMenu(reference).check(); + } static final _onCreateOptionsMenu = jniLookup< ffi.NativeFunction< @@ -7927,8 +9462,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onCreateOptionsMenu(android.view.Menu menu) - bool onCreateOptionsMenu(jni.JObject menu) => - _onCreateOptionsMenu(reference, menu.reference).boolean; + bool onCreateOptionsMenu( + jni.JObject menu, + ) { + return _onCreateOptionsMenu(reference, menu.reference).boolean; + } static final _onPrepareOptionsMenu = jniLookup< ffi.NativeFunction< @@ -7939,8 +9477,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onPrepareOptionsMenu(android.view.Menu menu) - bool onPrepareOptionsMenu(jni.JObject menu) => - _onPrepareOptionsMenu(reference, menu.reference).boolean; + bool onPrepareOptionsMenu( + jni.JObject menu, + ) { + return _onPrepareOptionsMenu(reference, menu.reference).boolean; + } static final _onOptionsItemSelected = jniLookup< ffi.NativeFunction< @@ -7951,8 +9492,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onOptionsItemSelected(android.view.MenuItem menuItem) - bool onOptionsItemSelected(jni.JObject menuItem) => - _onOptionsItemSelected(reference, menuItem.reference).boolean; + bool onOptionsItemSelected( + jni.JObject menuItem, + ) { + return _onOptionsItemSelected(reference, menuItem.reference).boolean; + } static final _onNavigateUp = jniLookup< ffi.NativeFunction< @@ -7961,7 +9505,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean onNavigateUp() - bool onNavigateUp() => _onNavigateUp(reference).boolean; + bool onNavigateUp() { + return _onNavigateUp(reference).boolean; + } static final _onNavigateUpFromChild = jniLookup< ffi.NativeFunction< @@ -7972,8 +9518,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onNavigateUpFromChild(android.app.Activity activity) - bool onNavigateUpFromChild(Activity activity) => - _onNavigateUpFromChild(reference, activity.reference).boolean; + bool onNavigateUpFromChild( + Activity activity, + ) { + return _onNavigateUpFromChild(reference, activity.reference).boolean; + } static final _onCreateNavigateUpTaskStack = jniLookup< ffi.NativeFunction< @@ -7985,9 +9534,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onCreateNavigateUpTaskStack(android.app.TaskStackBuilder taskStackBuilder) - void onCreateNavigateUpTaskStack(jni.JObject taskStackBuilder) => - _onCreateNavigateUpTaskStack(reference, taskStackBuilder.reference) - .check(); + void onCreateNavigateUpTaskStack( + jni.JObject taskStackBuilder, + ) { + return _onCreateNavigateUpTaskStack(reference, taskStackBuilder.reference) + .check(); + } static final _onPrepareNavigateUpTaskStack = jniLookup< ffi.NativeFunction< @@ -7999,9 +9551,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder taskStackBuilder) - void onPrepareNavigateUpTaskStack(jni.JObject taskStackBuilder) => - _onPrepareNavigateUpTaskStack(reference, taskStackBuilder.reference) - .check(); + void onPrepareNavigateUpTaskStack( + jni.JObject taskStackBuilder, + ) { + return _onPrepareNavigateUpTaskStack(reference, taskStackBuilder.reference) + .check(); + } static final _onOptionsMenuClosed = jniLookup< ffi.NativeFunction< @@ -8012,8 +9567,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onOptionsMenuClosed(android.view.Menu menu) - void onOptionsMenuClosed(jni.JObject menu) => - _onOptionsMenuClosed(reference, menu.reference).check(); + void onOptionsMenuClosed( + jni.JObject menu, + ) { + return _onOptionsMenuClosed(reference, menu.reference).check(); + } static final _openOptionsMenu = jniLookup< ffi.NativeFunction< @@ -8022,7 +9580,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void openOptionsMenu() - void openOptionsMenu() => _openOptionsMenu(reference).check(); + void openOptionsMenu() { + return _openOptionsMenu(reference).check(); + } static final _closeOptionsMenu = jniLookup< ffi.NativeFunction< @@ -8031,7 +9591,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void closeOptionsMenu() - void closeOptionsMenu() => _closeOptionsMenu(reference).check(); + void closeOptionsMenu() { + return _closeOptionsMenu(reference).check(); + } static final _onCreateContextMenu = jniLookup< ffi.NativeFunction< @@ -8045,11 +9607,15 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onCreateContextMenu(android.view.ContextMenu contextMenu, android.view.View view, android.view.ContextMenu$ContextMenuInfo contextMenuInfo) - void onCreateContextMenu(jni.JObject contextMenu, jni.JObject view, - jni.JObject contextMenuInfo) => - _onCreateContextMenu(reference, contextMenu.reference, view.reference, - contextMenuInfo.reference) - .check(); + void onCreateContextMenu( + jni.JObject contextMenu, + jni.JObject view, + jni.JObject contextMenuInfo, + ) { + return _onCreateContextMenu(reference, contextMenu.reference, + view.reference, contextMenuInfo.reference) + .check(); + } static final _registerForContextMenu = jniLookup< ffi.NativeFunction< @@ -8060,8 +9626,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void registerForContextMenu(android.view.View view) - void registerForContextMenu(jni.JObject view) => - _registerForContextMenu(reference, view.reference).check(); + void registerForContextMenu( + jni.JObject view, + ) { + return _registerForContextMenu(reference, view.reference).check(); + } static final _unregisterForContextMenu = jniLookup< ffi.NativeFunction< @@ -8072,8 +9641,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void unregisterForContextMenu(android.view.View view) - void unregisterForContextMenu(jni.JObject view) => - _unregisterForContextMenu(reference, view.reference).check(); + void unregisterForContextMenu( + jni.JObject view, + ) { + return _unregisterForContextMenu(reference, view.reference).check(); + } static final _openContextMenu = jniLookup< ffi.NativeFunction< @@ -8084,8 +9656,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void openContextMenu(android.view.View view) - void openContextMenu(jni.JObject view) => - _openContextMenu(reference, view.reference).check(); + void openContextMenu( + jni.JObject view, + ) { + return _openContextMenu(reference, view.reference).check(); + } static final _closeContextMenu = jniLookup< ffi.NativeFunction< @@ -8094,7 +9669,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void closeContextMenu() - void closeContextMenu() => _closeContextMenu(reference).check(); + void closeContextMenu() { + return _closeContextMenu(reference).check(); + } static final _onContextItemSelected = jniLookup< ffi.NativeFunction< @@ -8105,8 +9682,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onContextItemSelected(android.view.MenuItem menuItem) - bool onContextItemSelected(jni.JObject menuItem) => - _onContextItemSelected(reference, menuItem.reference).boolean; + bool onContextItemSelected( + jni.JObject menuItem, + ) { + return _onContextItemSelected(reference, menuItem.reference).boolean; + } static final _onContextMenuClosed = jniLookup< ffi.NativeFunction< @@ -8117,8 +9697,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onContextMenuClosed(android.view.Menu menu) - void onContextMenuClosed(jni.JObject menu) => - _onContextMenuClosed(reference, menu.reference).check(); + void onContextMenuClosed( + jni.JObject menu, + ) { + return _onContextMenuClosed(reference, menu.reference).check(); + } static final _onCreateDialog = jniLookup< ffi.NativeFunction< @@ -8128,8 +9711,12 @@ class Activity extends jni.JObject { /// from: protected android.app.Dialog onCreateDialog(int i) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject onCreateDialog(int i) => - const jni.JObjectType().fromRef(_onCreateDialog(reference, i).object); + jni.JObject onCreateDialog( + int i, + ) { + return const jni.JObjectType() + .fromRef(_onCreateDialog(reference, i).object); + } static final _onCreateDialog1 = jniLookup< ffi.NativeFunction< @@ -8141,9 +9728,13 @@ class Activity extends jni.JObject { /// 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. - jni.JObject onCreateDialog1(int i, jni.JObject bundle) => - const jni.JObjectType() - .fromRef(_onCreateDialog1(reference, i, bundle.reference).object); + jni.JObject onCreateDialog1( + int i, + jni.JObject bundle, + ) { + return const jni.JObjectType() + .fromRef(_onCreateDialog1(reference, i, bundle.reference).object); + } static final _onPrepareDialog = jniLookup< ffi.NativeFunction< @@ -8154,8 +9745,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: protected void onPrepareDialog(int i, android.app.Dialog dialog) - void onPrepareDialog(int i, jni.JObject dialog) => - _onPrepareDialog(reference, i, dialog.reference).check(); + void onPrepareDialog( + int i, + jni.JObject dialog, + ) { + return _onPrepareDialog(reference, i, dialog.reference).check(); + } static final _onPrepareDialog1 = jniLookup< ffi.NativeFunction< @@ -8169,9 +9764,14 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: protected void onPrepareDialog(int i, android.app.Dialog dialog, android.os.Bundle bundle) - void onPrepareDialog1(int i, jni.JObject dialog, jni.JObject bundle) => - _onPrepareDialog1(reference, i, dialog.reference, bundle.reference) - .check(); + void onPrepareDialog1( + int i, + jni.JObject dialog, + jni.JObject bundle, + ) { + return _onPrepareDialog1(reference, i, dialog.reference, bundle.reference) + .check(); + } static final _showDialog = jniLookup< ffi.NativeFunction< @@ -8180,7 +9780,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void showDialog(int i) - void showDialog(int i) => _showDialog(reference, i).check(); + void showDialog( + int i, + ) { + return _showDialog(reference, i).check(); + } static final _showDialog1 = jniLookup< ffi.NativeFunction< @@ -8191,8 +9795,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public final boolean showDialog(int i, android.os.Bundle bundle) - bool showDialog1(int i, jni.JObject bundle) => - _showDialog1(reference, i, bundle.reference).boolean; + bool showDialog1( + int i, + jni.JObject bundle, + ) { + return _showDialog1(reference, i, bundle.reference).boolean; + } static final _dismissDialog = jniLookup< ffi.NativeFunction< @@ -8201,7 +9809,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void dismissDialog(int i) - void dismissDialog(int i) => _dismissDialog(reference, i).check(); + void dismissDialog( + int i, + ) { + return _dismissDialog(reference, i).check(); + } static final _removeDialog = jniLookup< ffi.NativeFunction< @@ -8210,7 +9822,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void removeDialog(int i) - void removeDialog(int i) => _removeDialog(reference, i).check(); + void removeDialog( + int i, + ) { + return _removeDialog(reference, i).check(); + } static final _onSearchRequested = jniLookup< ffi.NativeFunction< @@ -8221,8 +9837,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean onSearchRequested(android.view.SearchEvent searchEvent) - bool onSearchRequested(jni.JObject searchEvent) => - _onSearchRequested(reference, searchEvent.reference).boolean; + bool onSearchRequested( + jni.JObject searchEvent, + ) { + return _onSearchRequested(reference, searchEvent.reference).boolean; + } static final _onSearchRequested1 = jniLookup< ffi.NativeFunction< @@ -8231,7 +9850,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean onSearchRequested() - bool onSearchRequested1() => _onSearchRequested1(reference).boolean; + bool onSearchRequested1() { + return _onSearchRequested1(reference).boolean; + } static final _getSearchEvent = jniLookup< ffi.NativeFunction< @@ -8241,8 +9862,9 @@ class Activity extends jni.JObject { /// from: public final android.view.SearchEvent getSearchEvent() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getSearchEvent() => - const jni.JObjectType().fromRef(_getSearchEvent(reference).object); + jni.JObject getSearchEvent() { + return const jni.JObjectType().fromRef(_getSearchEvent(reference).object); + } static final _startSearch = jniLookup< ffi.NativeFunction< @@ -8257,10 +9879,16 @@ class Activity extends jni.JObject { int, ffi.Pointer, int)>(); /// from: public void startSearch(java.lang.String string, boolean z, android.os.Bundle bundle, boolean z1) - void startSearch(jni.JString string, bool z, jni.JObject bundle, bool z1) => - _startSearch(reference, string.reference, z ? 1 : 0, bundle.reference, - z1 ? 1 : 0) - .check(); + void startSearch( + jni.JString string, + bool z, + jni.JObject bundle, + bool z1, + ) { + return _startSearch(reference, string.reference, z ? 1 : 0, + bundle.reference, z1 ? 1 : 0) + .check(); + } static final _triggerSearch = jniLookup< ffi.NativeFunction< @@ -8273,8 +9901,13 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void triggerSearch(java.lang.String string, android.os.Bundle bundle) - void triggerSearch(jni.JString string, jni.JObject bundle) => - _triggerSearch(reference, string.reference, bundle.reference).check(); + void triggerSearch( + jni.JString string, + jni.JObject bundle, + ) { + return _triggerSearch(reference, string.reference, bundle.reference) + .check(); + } static final _takeKeyEvents = jniLookup< ffi.NativeFunction< @@ -8283,7 +9916,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void takeKeyEvents(boolean z) - void takeKeyEvents(bool z) => _takeKeyEvents(reference, z ? 1 : 0).check(); + void takeKeyEvents( + bool z, + ) { + return _takeKeyEvents(reference, z ? 1 : 0).check(); + } static final _requestWindowFeature = jniLookup< ffi.NativeFunction< @@ -8292,8 +9929,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final boolean requestWindowFeature(int i) - bool requestWindowFeature(int i) => - _requestWindowFeature(reference, i).boolean; + bool requestWindowFeature( + int i, + ) { + return _requestWindowFeature(reference, i).boolean; + } static final _setFeatureDrawableResource = jniLookup< ffi.NativeFunction< @@ -8302,8 +9942,12 @@ class Activity extends jni.JObject { .asFunction, int, int)>(); /// from: public final void setFeatureDrawableResource(int i, int i1) - void setFeatureDrawableResource(int i, int i1) => - _setFeatureDrawableResource(reference, i, i1).check(); + void setFeatureDrawableResource( + int i, + int i1, + ) { + return _setFeatureDrawableResource(reference, i, i1).check(); + } static final _setFeatureDrawableUri = jniLookup< ffi.NativeFunction< @@ -8314,8 +9958,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public final void setFeatureDrawableUri(int i, android.net.Uri uri) - void setFeatureDrawableUri(int i, jni.JObject uri) => - _setFeatureDrawableUri(reference, i, uri.reference).check(); + void setFeatureDrawableUri( + int i, + jni.JObject uri, + ) { + return _setFeatureDrawableUri(reference, i, uri.reference).check(); + } static final _setFeatureDrawable = jniLookup< ffi.NativeFunction< @@ -8326,8 +9974,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public final void setFeatureDrawable(int i, android.graphics.drawable.Drawable drawable) - void setFeatureDrawable(int i, jni.JObject drawable) => - _setFeatureDrawable(reference, i, drawable.reference).check(); + void setFeatureDrawable( + int i, + jni.JObject drawable, + ) { + return _setFeatureDrawable(reference, i, drawable.reference).check(); + } static final _setFeatureDrawableAlpha = jniLookup< ffi.NativeFunction< @@ -8336,8 +9988,12 @@ class Activity extends jni.JObject { .asFunction, int, int)>(); /// from: public final void setFeatureDrawableAlpha(int i, int i1) - void setFeatureDrawableAlpha(int i, int i1) => - _setFeatureDrawableAlpha(reference, i, i1).check(); + void setFeatureDrawableAlpha( + int i, + int i1, + ) { + return _setFeatureDrawableAlpha(reference, i, i1).check(); + } static final _getLayoutInflater = jniLookup< ffi.NativeFunction< @@ -8347,8 +10003,10 @@ class Activity extends jni.JObject { /// from: public android.view.LayoutInflater getLayoutInflater() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getLayoutInflater() => - const jni.JObjectType().fromRef(_getLayoutInflater(reference).object); + jni.JObject getLayoutInflater() { + return const jni.JObjectType() + .fromRef(_getLayoutInflater(reference).object); + } static final _getMenuInflater = jniLookup< ffi.NativeFunction< @@ -8358,8 +10016,9 @@ class Activity extends jni.JObject { /// from: public android.view.MenuInflater getMenuInflater() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getMenuInflater() => - const jni.JObjectType().fromRef(_getMenuInflater(reference).object); + jni.JObject getMenuInflater() { + return const jni.JObjectType().fromRef(_getMenuInflater(reference).object); + } static final _setTheme = jniLookup< ffi.NativeFunction< @@ -8368,7 +10027,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setTheme(int i) - void setTheme(int i) => _setTheme(reference, i).check(); + void setTheme( + int i, + ) { + return _setTheme(reference, i).check(); + } static final _onApplyThemeResource = jniLookup< ffi.NativeFunction< @@ -8382,8 +10045,14 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer, int, int)>(); /// from: protected void onApplyThemeResource(android.content.res.Resources$Theme theme, int i, boolean z) - void onApplyThemeResource(jni.JObject theme, int i, bool z) => - _onApplyThemeResource(reference, theme.reference, i, z ? 1 : 0).check(); + void onApplyThemeResource( + jni.JObject theme, + int i, + bool z, + ) { + return _onApplyThemeResource(reference, theme.reference, i, z ? 1 : 0) + .check(); + } static final _requestPermissions = jniLookup< ffi.NativeFunction< @@ -8396,8 +10065,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public final void requestPermissions(java.lang.String[] strings, int i) - void requestPermissions(jni.JArray strings, int i) => - _requestPermissions(reference, strings.reference, i).check(); + void requestPermissions( + jni.JArray strings, + int i, + ) { + return _requestPermissions(reference, strings.reference, i).check(); + } static final _onRequestPermissionsResult = jniLookup< ffi.NativeFunction< @@ -8410,10 +10083,14 @@ class Activity extends jni.JObject { /// from: public void onRequestPermissionsResult(int i, java.lang.String[] strings, int[] is) void onRequestPermissionsResult( - int i, jni.JArray strings, jni.JArray is0) => - _onRequestPermissionsResult( - reference, i, strings.reference, is0.reference) - .check(); + int i, + jni.JArray strings, + jni.JArray is0, + ) { + return _onRequestPermissionsResult( + reference, i, strings.reference, is0.reference) + .check(); + } static final _shouldShowRequestPermissionRationale = jniLookup< ffi.NativeFunction< @@ -8425,9 +10102,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean shouldShowRequestPermissionRationale(java.lang.String string) - bool shouldShowRequestPermissionRationale(jni.JString string) => - _shouldShowRequestPermissionRationale(reference, string.reference) - .boolean; + bool shouldShowRequestPermissionRationale( + jni.JString string, + ) { + return _shouldShowRequestPermissionRationale(reference, string.reference) + .boolean; + } static final _startActivityForResult = jniLookup< ffi.NativeFunction< @@ -8440,8 +10120,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public void startActivityForResult(android.content.Intent intent, int i) - void startActivityForResult(Intent intent, int i) => - _startActivityForResult(reference, intent.reference, i).check(); + void startActivityForResult( + Intent intent, + int i, + ) { + return _startActivityForResult(reference, intent.reference, i).check(); + } static final _startActivityForResult1 = jniLookup< ffi.NativeFunction< @@ -8455,9 +10139,15 @@ class Activity extends jni.JObject { int, ffi.Pointer)>(); /// from: public void startActivityForResult(android.content.Intent intent, int i, android.os.Bundle bundle) - void startActivityForResult1(Intent intent, int i, jni.JObject bundle) => - _startActivityForResult1(reference, intent.reference, i, bundle.reference) - .check(); + void startActivityForResult1( + Intent intent, + int i, + jni.JObject bundle, + ) { + return _startActivityForResult1( + reference, intent.reference, i, bundle.reference) + .check(); + } static final _isActivityTransitionRunning = jniLookup< ffi.NativeFunction< @@ -8466,8 +10156,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isActivityTransitionRunning() - bool isActivityTransitionRunning() => - _isActivityTransitionRunning(reference).boolean; + bool isActivityTransitionRunning() { + return _isActivityTransitionRunning(reference).boolean; + } static final _startIntentSenderForResult = jniLookup< ffi.NativeFunction< @@ -8484,11 +10175,18 @@ class Activity extends jni.JObject { int, ffi.Pointer, int, int, int)>(); /// from: public void startIntentSenderForResult(android.content.IntentSender intentSender, int i, android.content.Intent intent, int i1, int i2, int i3) - void startIntentSenderForResult(jni.JObject intentSender, int i, - Intent intent, int i1, int i2, int i3) => - _startIntentSenderForResult(reference, intentSender.reference, i, - intent.reference, i1, i2, i3) - .check(); + void startIntentSenderForResult( + jni.JObject intentSender, + int i, + Intent intent, + int i1, + int i2, + int i3, + ) { + return _startIntentSenderForResult( + reference, intentSender.reference, i, intent.reference, i1, i2, i3) + .check(); + } static final _startIntentSenderForResult1 = jniLookup< ffi.NativeFunction< @@ -8514,11 +10212,19 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void startIntentSenderForResult(android.content.IntentSender intentSender, int i, android.content.Intent intent, int i1, int i2, int i3, android.os.Bundle bundle) - void startIntentSenderForResult1(jni.JObject intentSender, int i, - Intent intent, int i1, int i2, int i3, jni.JObject bundle) => - _startIntentSenderForResult1(reference, intentSender.reference, i, - intent.reference, i1, i2, i3, bundle.reference) - .check(); + void startIntentSenderForResult1( + jni.JObject intentSender, + int i, + Intent intent, + int i1, + int i2, + int i3, + jni.JObject bundle, + ) { + return _startIntentSenderForResult1(reference, intentSender.reference, i, + intent.reference, i1, i2, i3, bundle.reference) + .check(); + } static final _startActivity = jniLookup< ffi.NativeFunction< @@ -8529,8 +10235,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void startActivity(android.content.Intent intent) - void startActivity(Intent intent) => - _startActivity(reference, intent.reference).check(); + void startActivity( + Intent intent, + ) { + return _startActivity(reference, intent.reference).check(); + } static final _startActivity1 = jniLookup< ffi.NativeFunction< @@ -8543,8 +10252,13 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void startActivity(android.content.Intent intent, android.os.Bundle bundle) - void startActivity1(Intent intent, jni.JObject bundle) => - _startActivity1(reference, intent.reference, bundle.reference).check(); + void startActivity1( + Intent intent, + jni.JObject bundle, + ) { + return _startActivity1(reference, intent.reference, bundle.reference) + .check(); + } static final _startActivities = jniLookup< ffi.NativeFunction< @@ -8555,8 +10269,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void startActivities(android.content.Intent[] intents) - void startActivities(jni.JArray intents) => - _startActivities(reference, intents.reference).check(); + void startActivities( + jni.JArray intents, + ) { + return _startActivities(reference, intents.reference).check(); + } static final _startActivities1 = jniLookup< ffi.NativeFunction< @@ -8569,8 +10286,13 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void startActivities(android.content.Intent[] intents, android.os.Bundle bundle) - void startActivities1(jni.JArray intents, jni.JObject bundle) => - _startActivities1(reference, intents.reference, bundle.reference).check(); + void startActivities1( + jni.JArray intents, + jni.JObject bundle, + ) { + return _startActivities1(reference, intents.reference, bundle.reference) + .check(); + } static final _startIntentSender = jniLookup< ffi.NativeFunction< @@ -8587,10 +10309,16 @@ class Activity extends jni.JObject { /// from: public void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2) void startIntentSender( - jni.JObject intentSender, Intent intent, int i, int i1, int i2) => - _startIntentSender( - reference, intentSender.reference, intent.reference, i, i1, i2) - .check(); + jni.JObject intentSender, + Intent intent, + int i, + int i1, + int i2, + ) { + return _startIntentSender( + reference, intentSender.reference, intent.reference, i, i1, i2) + .check(); + } static final _startIntentSender1 = jniLookup< ffi.NativeFunction< @@ -8607,11 +10335,18 @@ class Activity extends jni.JObject { ffi.Pointer, int, int, int, ffi.Pointer)>(); /// from: public void startIntentSender(android.content.IntentSender intentSender, android.content.Intent intent, int i, int i1, int i2, android.os.Bundle bundle) - void startIntentSender1(jni.JObject intentSender, Intent intent, int i, - int i1, int i2, jni.JObject bundle) => - _startIntentSender1(reference, intentSender.reference, intent.reference, - i, i1, i2, bundle.reference) - .check(); + void startIntentSender1( + jni.JObject intentSender, + Intent intent, + int i, + int i1, + int i2, + jni.JObject bundle, + ) { + return _startIntentSender1(reference, intentSender.reference, + intent.reference, i, i1, i2, bundle.reference) + .check(); + } static final _startActivityIfNeeded = jniLookup< ffi.NativeFunction< @@ -8624,8 +10359,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public boolean startActivityIfNeeded(android.content.Intent intent, int i) - bool startActivityIfNeeded(Intent intent, int i) => - _startActivityIfNeeded(reference, intent.reference, i).boolean; + bool startActivityIfNeeded( + Intent intent, + int i, + ) { + return _startActivityIfNeeded(reference, intent.reference, i).boolean; + } static final _startActivityIfNeeded1 = jniLookup< ffi.NativeFunction< @@ -8639,9 +10378,15 @@ class Activity extends jni.JObject { int, ffi.Pointer)>(); /// from: public boolean startActivityIfNeeded(android.content.Intent intent, int i, android.os.Bundle bundle) - bool startActivityIfNeeded1(Intent intent, int i, jni.JObject bundle) => - _startActivityIfNeeded1(reference, intent.reference, i, bundle.reference) - .boolean; + bool startActivityIfNeeded1( + Intent intent, + int i, + jni.JObject bundle, + ) { + return _startActivityIfNeeded1( + reference, intent.reference, i, bundle.reference) + .boolean; + } static final _startNextMatchingActivity = jniLookup< ffi.NativeFunction< @@ -8653,8 +10398,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean startNextMatchingActivity(android.content.Intent intent) - bool startNextMatchingActivity(Intent intent) => - _startNextMatchingActivity(reference, intent.reference).boolean; + bool startNextMatchingActivity( + Intent intent, + ) { + return _startNextMatchingActivity(reference, intent.reference).boolean; + } static final _startNextMatchingActivity1 = jniLookup< ffi.NativeFunction< @@ -8666,9 +10414,14 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public boolean startNextMatchingActivity(android.content.Intent intent, android.os.Bundle bundle) - bool startNextMatchingActivity1(Intent intent, jni.JObject bundle) => - _startNextMatchingActivity1(reference, intent.reference, bundle.reference) - .boolean; + bool startNextMatchingActivity1( + Intent intent, + jni.JObject bundle, + ) { + return _startNextMatchingActivity1( + reference, intent.reference, bundle.reference) + .boolean; + } static final _startActivityFromChild = jniLookup< ffi.NativeFunction< @@ -8682,10 +10435,15 @@ class Activity extends jni.JObject { ffi.Pointer, int)>(); /// from: public void startActivityFromChild(android.app.Activity activity, android.content.Intent intent, int i) - void startActivityFromChild(Activity activity, Intent intent, int i) => - _startActivityFromChild( - reference, activity.reference, intent.reference, i) - .check(); + void startActivityFromChild( + Activity activity, + Intent intent, + int i, + ) { + return _startActivityFromChild( + reference, activity.reference, intent.reference, i) + .check(); + } static final _startActivityFromChild1 = jniLookup< ffi.NativeFunction< @@ -8701,10 +10459,15 @@ class Activity extends jni.JObject { /// from: public void startActivityFromChild(android.app.Activity activity, android.content.Intent intent, int i, android.os.Bundle bundle) void startActivityFromChild1( - Activity activity, Intent intent, int i, jni.JObject bundle) => - _startActivityFromChild1(reference, activity.reference, intent.reference, - i, bundle.reference) - .check(); + Activity activity, + Intent intent, + int i, + jni.JObject bundle, + ) { + return _startActivityFromChild1(reference, activity.reference, + intent.reference, i, bundle.reference) + .check(); + } static final _startActivityFromFragment = jniLookup< ffi.NativeFunction< @@ -8718,10 +10481,15 @@ class Activity extends jni.JObject { ffi.Pointer, int)>(); /// from: public void startActivityFromFragment(android.app.Fragment fragment, android.content.Intent intent, int i) - void startActivityFromFragment(jni.JObject fragment, Intent intent, int i) => - _startActivityFromFragment( - reference, fragment.reference, intent.reference, i) - .check(); + void startActivityFromFragment( + jni.JObject fragment, + Intent intent, + int i, + ) { + return _startActivityFromFragment( + reference, fragment.reference, intent.reference, i) + .check(); + } static final _startActivityFromFragment1 = jniLookup< ffi.NativeFunction< @@ -8738,10 +10506,15 @@ class Activity extends jni.JObject { /// from: public void startActivityFromFragment(android.app.Fragment fragment, android.content.Intent intent, int i, android.os.Bundle bundle) void startActivityFromFragment1( - jni.JObject fragment, Intent intent, int i, jni.JObject bundle) => - _startActivityFromFragment1(reference, fragment.reference, - intent.reference, i, bundle.reference) - .check(); + jni.JObject fragment, + Intent intent, + int i, + jni.JObject bundle, + ) { + return _startActivityFromFragment1(reference, fragment.reference, + intent.reference, i, bundle.reference) + .check(); + } static final _startIntentSenderFromChild = jniLookup< ffi.NativeFunction< @@ -8766,11 +10539,19 @@ class Activity extends jni.JObject { int)>(); /// from: public void startIntentSenderFromChild(android.app.Activity activity, android.content.IntentSender intentSender, int i, android.content.Intent intent, int i1, int i2, int i3) - void startIntentSenderFromChild(Activity activity, jni.JObject intentSender, - int i, Intent intent, int i1, int i2, int i3) => - _startIntentSenderFromChild(reference, activity.reference, - intentSender.reference, i, intent.reference, i1, i2, i3) - .check(); + void startIntentSenderFromChild( + Activity activity, + jni.JObject intentSender, + int i, + Intent intent, + int i1, + int i2, + int i3, + ) { + return _startIntentSenderFromChild(reference, activity.reference, + intentSender.reference, i, intent.reference, i1, i2, i3) + .check(); + } static final _startIntentSenderFromChild1 = jniLookup< ffi.NativeFunction< @@ -8798,19 +10579,28 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void startIntentSenderFromChild(android.app.Activity activity, android.content.IntentSender intentSender, int i, android.content.Intent intent, int i1, int i2, int i3, android.os.Bundle bundle) - void startIntentSenderFromChild1(Activity activity, jni.JObject intentSender, - int i, Intent intent, int i1, int i2, int i3, jni.JObject bundle) => - _startIntentSenderFromChild1( - reference, - activity.reference, - intentSender.reference, - i, - intent.reference, - i1, - i2, - i3, - bundle.reference) - .check(); + void startIntentSenderFromChild1( + Activity activity, + jni.JObject intentSender, + int i, + Intent intent, + int i1, + int i2, + int i3, + jni.JObject bundle, + ) { + return _startIntentSenderFromChild1( + reference, + activity.reference, + intentSender.reference, + i, + intent.reference, + i1, + i2, + i3, + bundle.reference) + .check(); + } static final _overridePendingTransition = jniLookup< ffi.NativeFunction< @@ -8819,8 +10609,12 @@ class Activity extends jni.JObject { .asFunction, int, int)>(); /// from: public void overridePendingTransition(int i, int i1) - void overridePendingTransition(int i, int i1) => - _overridePendingTransition(reference, i, i1).check(); + void overridePendingTransition( + int i, + int i1, + ) { + return _overridePendingTransition(reference, i, i1).check(); + } static final _overridePendingTransition1 = jniLookup< ffi.NativeFunction< @@ -8833,8 +10627,13 @@ class Activity extends jni.JObject { jni.JniResult Function(ffi.Pointer, int, int, int)>(); /// from: public void overridePendingTransition(int i, int i1, int i2) - void overridePendingTransition1(int i, int i1, int i2) => - _overridePendingTransition1(reference, i, i1, i2).check(); + void overridePendingTransition1( + int i, + int i1, + int i2, + ) { + return _overridePendingTransition1(reference, i, i1, i2).check(); + } static final _setResult = jniLookup< ffi.NativeFunction< @@ -8843,7 +10642,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void setResult(int i) - void setResult(int i) => _setResult(reference, i).check(); + void setResult( + int i, + ) { + return _setResult(reference, i).check(); + } static final _setResult1 = jniLookup< ffi.NativeFunction< @@ -8854,8 +10657,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public final void setResult(int i, android.content.Intent intent) - void setResult1(int i, Intent intent) => - _setResult1(reference, i, intent.reference).check(); + void setResult1( + int i, + Intent intent, + ) { + return _setResult1(reference, i, intent.reference).check(); + } static final _getReferrer = jniLookup< ffi.NativeFunction< @@ -8865,8 +10672,9 @@ class Activity extends jni.JObject { /// from: public android.net.Uri getReferrer() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getReferrer() => - const jni.JObjectType().fromRef(_getReferrer(reference).object); + jni.JObject getReferrer() { + return const jni.JObjectType().fromRef(_getReferrer(reference).object); + } static final _onProvideReferrer = jniLookup< ffi.NativeFunction< @@ -8876,8 +10684,10 @@ class Activity extends jni.JObject { /// from: public android.net.Uri onProvideReferrer() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject onProvideReferrer() => - const jni.JObjectType().fromRef(_onProvideReferrer(reference).object); + jni.JObject onProvideReferrer() { + return const jni.JObjectType() + .fromRef(_onProvideReferrer(reference).object); + } static final _getCallingPackage = jniLookup< ffi.NativeFunction< @@ -8887,8 +10697,10 @@ class Activity extends jni.JObject { /// from: public java.lang.String getCallingPackage() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getCallingPackage() => - const jni.JStringType().fromRef(_getCallingPackage(reference).object); + jni.JString getCallingPackage() { + return const jni.JStringType() + .fromRef(_getCallingPackage(reference).object); + } static final _getCallingActivity = jniLookup< ffi.NativeFunction< @@ -8898,8 +10710,10 @@ class Activity extends jni.JObject { /// from: public android.content.ComponentName getCallingActivity() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getCallingActivity() => - const jni.JObjectType().fromRef(_getCallingActivity(reference).object); + jni.JObject getCallingActivity() { + return const jni.JObjectType() + .fromRef(_getCallingActivity(reference).object); + } static final _setVisible = jniLookup< ffi.NativeFunction< @@ -8908,7 +10722,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setVisible(boolean z) - void setVisible(bool z) => _setVisible(reference, z ? 1 : 0).check(); + void setVisible( + bool z, + ) { + return _setVisible(reference, z ? 1 : 0).check(); + } static final _isFinishing = jniLookup< ffi.NativeFunction< @@ -8917,7 +10735,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isFinishing() - bool isFinishing() => _isFinishing(reference).boolean; + bool isFinishing() { + return _isFinishing(reference).boolean; + } static final _isDestroyed = jniLookup< ffi.NativeFunction< @@ -8926,7 +10746,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isDestroyed() - bool isDestroyed() => _isDestroyed(reference).boolean; + bool isDestroyed() { + return _isDestroyed(reference).boolean; + } static final _isChangingConfigurations = jniLookup< ffi.NativeFunction< @@ -8935,8 +10757,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isChangingConfigurations() - bool isChangingConfigurations() => - _isChangingConfigurations(reference).boolean; + bool isChangingConfigurations() { + return _isChangingConfigurations(reference).boolean; + } static final _recreate = jniLookup< ffi.NativeFunction< @@ -8945,7 +10768,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void recreate() - void recreate() => _recreate(reference).check(); + void recreate() { + return _recreate(reference).check(); + } static final _finish = jniLookup< ffi.NativeFunction< @@ -8954,7 +10779,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void finish() - void finish() => _finish(reference).check(); + void finish() { + return _finish(reference).check(); + } static final _finishAffinity = jniLookup< ffi.NativeFunction< @@ -8963,7 +10790,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void finishAffinity() - void finishAffinity() => _finishAffinity(reference).check(); + void finishAffinity() { + return _finishAffinity(reference).check(); + } static final _finishFromChild = jniLookup< ffi.NativeFunction< @@ -8974,8 +10803,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void finishFromChild(android.app.Activity activity) - void finishFromChild(Activity activity) => - _finishFromChild(reference, activity.reference).check(); + void finishFromChild( + Activity activity, + ) { + return _finishFromChild(reference, activity.reference).check(); + } static final _finishAfterTransition = jniLookup< ffi.NativeFunction< @@ -8984,7 +10816,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void finishAfterTransition() - void finishAfterTransition() => _finishAfterTransition(reference).check(); + void finishAfterTransition() { + return _finishAfterTransition(reference).check(); + } static final _finishActivity = jniLookup< ffi.NativeFunction< @@ -8993,7 +10827,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void finishActivity(int i) - void finishActivity(int i) => _finishActivity(reference, i).check(); + void finishActivity( + int i, + ) { + return _finishActivity(reference, i).check(); + } static final _finishActivityFromChild = jniLookup< ffi.NativeFunction< @@ -9006,8 +10844,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: public void finishActivityFromChild(android.app.Activity activity, int i) - void finishActivityFromChild(Activity activity, int i) => - _finishActivityFromChild(reference, activity.reference, i).check(); + void finishActivityFromChild( + Activity activity, + int i, + ) { + return _finishActivityFromChild(reference, activity.reference, i).check(); + } static final _finishAndRemoveTask = jniLookup< ffi.NativeFunction< @@ -9016,7 +10858,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void finishAndRemoveTask() - void finishAndRemoveTask() => _finishAndRemoveTask(reference).check(); + void finishAndRemoveTask() { + return _finishAndRemoveTask(reference).check(); + } static final _releaseInstance = jniLookup< ffi.NativeFunction< @@ -9025,7 +10869,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean releaseInstance() - bool releaseInstance() => _releaseInstance(reference).boolean; + bool releaseInstance() { + return _releaseInstance(reference).boolean; + } static final _onActivityResult = jniLookup< ffi.NativeFunction< @@ -9039,8 +10885,13 @@ class Activity extends jni.JObject { ffi.Pointer, int, int, ffi.Pointer)>(); /// from: protected void onActivityResult(int i, int i1, android.content.Intent intent) - void onActivityResult(int i, int i1, Intent intent) => - _onActivityResult(reference, i, i1, intent.reference).check(); + void onActivityResult( + int i, + int i1, + Intent intent, + ) { + return _onActivityResult(reference, i, i1, intent.reference).check(); + } static final _onActivityReenter = jniLookup< ffi.NativeFunction< @@ -9051,8 +10902,12 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public void onActivityReenter(int i, android.content.Intent intent) - void onActivityReenter(int i, Intent intent) => - _onActivityReenter(reference, i, intent.reference).check(); + void onActivityReenter( + int i, + Intent intent, + ) { + return _onActivityReenter(reference, i, intent.reference).check(); + } static final _createPendingResult = jniLookup< ffi.NativeFunction< @@ -9067,9 +10922,14 @@ class Activity extends jni.JObject { /// 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. - jni.JObject createPendingResult(int i, Intent intent, int i1) => - const jni.JObjectType().fromRef( - _createPendingResult(reference, i, intent.reference, i1).object); + jni.JObject createPendingResult( + int i, + Intent intent, + int i1, + ) { + return const jni.JObjectType().fromRef( + _createPendingResult(reference, i, intent.reference, i1).object); + } static final _setRequestedOrientation = jniLookup< ffi.NativeFunction< @@ -9078,8 +10938,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setRequestedOrientation(int i) - void setRequestedOrientation(int i) => - _setRequestedOrientation(reference, i).check(); + void setRequestedOrientation( + int i, + ) { + return _setRequestedOrientation(reference, i).check(); + } static final _getRequestedOrientation = jniLookup< ffi.NativeFunction< @@ -9088,7 +10951,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public int getRequestedOrientation() - int getRequestedOrientation() => _getRequestedOrientation(reference).integer; + int getRequestedOrientation() { + return _getRequestedOrientation(reference).integer; + } static final _getTaskId = jniLookup< ffi.NativeFunction< @@ -9097,7 +10962,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public int getTaskId() - int getTaskId() => _getTaskId(reference).integer; + int getTaskId() { + return _getTaskId(reference).integer; + } static final _isTaskRoot = jniLookup< ffi.NativeFunction< @@ -9106,7 +10973,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isTaskRoot() - bool isTaskRoot() => _isTaskRoot(reference).boolean; + bool isTaskRoot() { + return _isTaskRoot(reference).boolean; + } static final _moveTaskToBack = jniLookup< ffi.NativeFunction< @@ -9115,7 +10984,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public boolean moveTaskToBack(boolean z) - bool moveTaskToBack(bool z) => _moveTaskToBack(reference, z ? 1 : 0).boolean; + bool moveTaskToBack( + bool z, + ) { + return _moveTaskToBack(reference, z ? 1 : 0).boolean; + } static final _getLocalClassName = jniLookup< ffi.NativeFunction< @@ -9125,8 +10998,10 @@ class Activity extends jni.JObject { /// from: public java.lang.String getLocalClassName() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString getLocalClassName() => - const jni.JStringType().fromRef(_getLocalClassName(reference).object); + jni.JString getLocalClassName() { + return const jni.JStringType() + .fromRef(_getLocalClassName(reference).object); + } static final _getComponentName = jniLookup< ffi.NativeFunction< @@ -9136,8 +11011,9 @@ class Activity extends jni.JObject { /// from: public android.content.ComponentName getComponentName() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getComponentName() => - const jni.JObjectType().fromRef(_getComponentName(reference).object); + jni.JObject getComponentName() { + return const jni.JObjectType().fromRef(_getComponentName(reference).object); + } static final _getPreferences = jniLookup< ffi.NativeFunction< @@ -9147,8 +11023,12 @@ class Activity extends jni.JObject { /// from: public android.content.SharedPreferences getPreferences(int i) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getPreferences(int i) => - const jni.JObjectType().fromRef(_getPreferences(reference, i).object); + jni.JObject getPreferences( + int i, + ) { + return const jni.JObjectType() + .fromRef(_getPreferences(reference, i).object); + } static final _isLaunchedFromBubble = jniLookup< ffi.NativeFunction< @@ -9157,7 +11037,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isLaunchedFromBubble() - bool isLaunchedFromBubble() => _isLaunchedFromBubble(reference).boolean; + bool isLaunchedFromBubble() { + return _isLaunchedFromBubble(reference).boolean; + } static final _getSystemService = jniLookup< ffi.NativeFunction< @@ -9169,8 +11051,12 @@ class Activity extends jni.JObject { /// from: public java.lang.Object getSystemService(java.lang.String string) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getSystemService(jni.JString string) => const jni.JObjectType() - .fromRef(_getSystemService(reference, string.reference).object); + jni.JObject getSystemService( + jni.JString string, + ) { + return const jni.JObjectType() + .fromRef(_getSystemService(reference, string.reference).object); + } static final _setTitle = jniLookup< ffi.NativeFunction< @@ -9181,8 +11067,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setTitle(java.lang.CharSequence charSequence) - void setTitle(jni.JObject charSequence) => - _setTitle(reference, charSequence.reference).check(); + void setTitle( + jni.JObject charSequence, + ) { + return _setTitle(reference, charSequence.reference).check(); + } static final _setTitle1 = jniLookup< ffi.NativeFunction< @@ -9191,7 +11080,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setTitle(int i) - void setTitle1(int i) => _setTitle1(reference, i).check(); + void setTitle1( + int i, + ) { + return _setTitle1(reference, i).check(); + } static final _setTitleColor = jniLookup< ffi.NativeFunction< @@ -9200,7 +11093,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setTitleColor(int i) - void setTitleColor(int i) => _setTitleColor(reference, i).check(); + void setTitleColor( + int i, + ) { + return _setTitleColor(reference, i).check(); + } static final _getTitle = jniLookup< ffi.NativeFunction< @@ -9210,8 +11107,9 @@ class Activity extends jni.JObject { /// from: public final java.lang.CharSequence getTitle() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getTitle() => - const jni.JObjectType().fromRef(_getTitle(reference).object); + jni.JObject getTitle() { + return const jni.JObjectType().fromRef(_getTitle(reference).object); + } static final _getTitleColor = jniLookup< ffi.NativeFunction< @@ -9220,7 +11118,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final int getTitleColor() - int getTitleColor() => _getTitleColor(reference).integer; + int getTitleColor() { + return _getTitleColor(reference).integer; + } static final _onTitleChanged = jniLookup< ffi.NativeFunction< @@ -9233,8 +11133,12 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer, int)>(); /// from: protected void onTitleChanged(java.lang.CharSequence charSequence, int i) - void onTitleChanged(jni.JObject charSequence, int i) => - _onTitleChanged(reference, charSequence.reference, i).check(); + void onTitleChanged( + jni.JObject charSequence, + int i, + ) { + return _onTitleChanged(reference, charSequence.reference, i).check(); + } static final _onChildTitleChanged = jniLookup< ffi.NativeFunction< @@ -9247,10 +11151,14 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: protected void onChildTitleChanged(android.app.Activity activity, java.lang.CharSequence charSequence) - void onChildTitleChanged(Activity activity, jni.JObject charSequence) => - _onChildTitleChanged( - reference, activity.reference, charSequence.reference) - .check(); + void onChildTitleChanged( + Activity activity, + jni.JObject charSequence, + ) { + return _onChildTitleChanged( + reference, activity.reference, charSequence.reference) + .check(); + } static final _setTaskDescription = jniLookup< ffi.NativeFunction< @@ -9261,8 +11169,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setTaskDescription(android.app.ActivityManager$TaskDescription taskDescription) - void setTaskDescription(jni.JObject taskDescription) => - _setTaskDescription(reference, taskDescription.reference).check(); + void setTaskDescription( + jni.JObject taskDescription, + ) { + return _setTaskDescription(reference, taskDescription.reference).check(); + } static final _setProgressBarVisibility = jniLookup< ffi.NativeFunction< @@ -9271,8 +11182,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void setProgressBarVisibility(boolean z) - void setProgressBarVisibility(bool z) => - _setProgressBarVisibility(reference, z ? 1 : 0).check(); + void setProgressBarVisibility( + bool z, + ) { + return _setProgressBarVisibility(reference, z ? 1 : 0).check(); + } static final _setProgressBarIndeterminateVisibility = jniLookup< ffi.NativeFunction< @@ -9281,8 +11195,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void setProgressBarIndeterminateVisibility(boolean z) - void setProgressBarIndeterminateVisibility(bool z) => - _setProgressBarIndeterminateVisibility(reference, z ? 1 : 0).check(); + void setProgressBarIndeterminateVisibility( + bool z, + ) { + return _setProgressBarIndeterminateVisibility(reference, z ? 1 : 0).check(); + } static final _setProgressBarIndeterminate = jniLookup< ffi.NativeFunction< @@ -9291,8 +11208,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void setProgressBarIndeterminate(boolean z) - void setProgressBarIndeterminate(bool z) => - _setProgressBarIndeterminate(reference, z ? 1 : 0).check(); + void setProgressBarIndeterminate( + bool z, + ) { + return _setProgressBarIndeterminate(reference, z ? 1 : 0).check(); + } static final _setProgress = jniLookup< ffi.NativeFunction< @@ -9301,7 +11221,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void setProgress(int i) - void setProgress(int i) => _setProgress(reference, i).check(); + void setProgress( + int i, + ) { + return _setProgress(reference, i).check(); + } static final _setSecondaryProgress = jniLookup< ffi.NativeFunction< @@ -9310,8 +11234,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void setSecondaryProgress(int i) - void setSecondaryProgress(int i) => - _setSecondaryProgress(reference, i).check(); + void setSecondaryProgress( + int i, + ) { + return _setSecondaryProgress(reference, i).check(); + } static final _setVolumeControlStream = jniLookup< ffi.NativeFunction< @@ -9320,8 +11247,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public final void setVolumeControlStream(int i) - void setVolumeControlStream(int i) => - _setVolumeControlStream(reference, i).check(); + void setVolumeControlStream( + int i, + ) { + return _setVolumeControlStream(reference, i).check(); + } static final _getVolumeControlStream = jniLookup< ffi.NativeFunction< @@ -9330,7 +11260,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public final int getVolumeControlStream() - int getVolumeControlStream() => _getVolumeControlStream(reference).integer; + int getVolumeControlStream() { + return _getVolumeControlStream(reference).integer; + } static final _setMediaController = jniLookup< ffi.NativeFunction< @@ -9341,8 +11273,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final void setMediaController(android.media.session.MediaController mediaController) - void setMediaController(jni.JObject mediaController) => - _setMediaController(reference, mediaController.reference).check(); + void setMediaController( + jni.JObject mediaController, + ) { + return _setMediaController(reference, mediaController.reference).check(); + } static final _getMediaController = jniLookup< ffi.NativeFunction< @@ -9352,8 +11287,10 @@ class Activity extends jni.JObject { /// from: public final android.media.session.MediaController getMediaController() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getMediaController() => - const jni.JObjectType().fromRef(_getMediaController(reference).object); + jni.JObject getMediaController() { + return const jni.JObjectType() + .fromRef(_getMediaController(reference).object); + } static final _runOnUiThread = jniLookup< ffi.NativeFunction< @@ -9364,8 +11301,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final void runOnUiThread(java.lang.Runnable runnable) - void runOnUiThread(jni.JObject runnable) => - _runOnUiThread(reference, runnable.reference).check(); + void runOnUiThread( + jni.JObject runnable, + ) { + return _runOnUiThread(reference, runnable.reference).check(); + } static final _onCreateView = jniLookup< ffi.NativeFunction< @@ -9381,10 +11321,14 @@ class Activity extends jni.JObject { /// 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. jni.JObject onCreateView( - jni.JString string, Context context, jni.JObject attributeSet) => - const jni.JObjectType().fromRef(_onCreateView(reference, string.reference, - context.reference, attributeSet.reference) - .object); + jni.JString string, + Context context, + jni.JObject attributeSet, + ) { + return const jni.JObjectType().fromRef(_onCreateView(reference, + string.reference, context.reference, attributeSet.reference) + .object); + } static final _onCreateView1 = jniLookup< ffi.NativeFunction< @@ -9404,11 +11348,20 @@ class Activity extends jni.JObject { /// 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. - jni.JObject onCreateView1(jni.JObject view, jni.JString string, - Context context, jni.JObject attributeSet) => - const jni.JObjectType().fromRef(_onCreateView1(reference, view.reference, - string.reference, context.reference, attributeSet.reference) - .object); + jni.JObject onCreateView1( + jni.JObject view, + jni.JString string, + Context context, + jni.JObject attributeSet, + ) { + return const jni.JObjectType().fromRef(_onCreateView1( + reference, + view.reference, + string.reference, + context.reference, + attributeSet.reference) + .object); + } static final _dump = jniLookup< ffi.NativeFunction< @@ -9427,11 +11380,16 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public void dump(java.lang.String string, java.io.FileDescriptor fileDescriptor, java.io.PrintWriter printWriter, java.lang.String[] strings) - void dump(jni.JString string, jni.JObject fileDescriptor, - jni.JObject printWriter, jni.JArray strings) => - _dump(reference, string.reference, fileDescriptor.reference, - printWriter.reference, strings.reference) - .check(); + void dump( + jni.JString string, + jni.JObject fileDescriptor, + jni.JObject printWriter, + jni.JArray strings, + ) { + return _dump(reference, string.reference, fileDescriptor.reference, + printWriter.reference, strings.reference) + .check(); + } static final _isImmersive = jniLookup< ffi.NativeFunction< @@ -9440,7 +11398,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public boolean isImmersive() - bool isImmersive() => _isImmersive(reference).boolean; + bool isImmersive() { + return _isImmersive(reference).boolean; + } static final _setTranslucent = jniLookup< ffi.NativeFunction< @@ -9449,7 +11409,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public boolean setTranslucent(boolean z) - bool setTranslucent(bool z) => _setTranslucent(reference, z ? 1 : 0).boolean; + bool setTranslucent( + bool z, + ) { + return _setTranslucent(reference, z ? 1 : 0).boolean; + } static final _requestVisibleBehind = jniLookup< ffi.NativeFunction< @@ -9458,8 +11422,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public boolean requestVisibleBehind(boolean z) - bool requestVisibleBehind(bool z) => - _requestVisibleBehind(reference, z ? 1 : 0).boolean; + bool requestVisibleBehind( + bool z, + ) { + return _requestVisibleBehind(reference, z ? 1 : 0).boolean; + } static final _onVisibleBehindCanceled = jniLookup< ffi.NativeFunction< @@ -9468,7 +11435,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onVisibleBehindCanceled() - void onVisibleBehindCanceled() => _onVisibleBehindCanceled(reference).check(); + void onVisibleBehindCanceled() { + return _onVisibleBehindCanceled(reference).check(); + } static final _onEnterAnimationComplete = jniLookup< ffi.NativeFunction< @@ -9477,8 +11446,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void onEnterAnimationComplete() - void onEnterAnimationComplete() => - _onEnterAnimationComplete(reference).check(); + void onEnterAnimationComplete() { + return _onEnterAnimationComplete(reference).check(); + } static final _setImmersive = jniLookup< ffi.NativeFunction< @@ -9487,7 +11457,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setImmersive(boolean z) - void setImmersive(bool z) => _setImmersive(reference, z ? 1 : 0).check(); + void setImmersive( + bool z, + ) { + return _setImmersive(reference, z ? 1 : 0).check(); + } static final _setVrModeEnabled = jniLookup< ffi.NativeFunction< @@ -9498,8 +11472,13 @@ class Activity extends jni.JObject { ffi.Pointer, int, ffi.Pointer)>(); /// from: public void setVrModeEnabled(boolean z, android.content.ComponentName componentName) - void setVrModeEnabled(bool z, jni.JObject componentName) => - _setVrModeEnabled(reference, z ? 1 : 0, componentName.reference).check(); + void setVrModeEnabled( + bool z, + jni.JObject componentName, + ) { + return _setVrModeEnabled(reference, z ? 1 : 0, componentName.reference) + .check(); + } static final _startActionMode = jniLookup< ffi.NativeFunction< @@ -9511,8 +11490,12 @@ class Activity extends jni.JObject { /// from: public android.view.ActionMode startActionMode(android.view.ActionMode$Callback callback) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject startActionMode(jni.JObject callback) => const jni.JObjectType() - .fromRef(_startActionMode(reference, callback.reference).object); + jni.JObject startActionMode( + jni.JObject callback, + ) { + return const jni.JObjectType() + .fromRef(_startActionMode(reference, callback.reference).object); + } static final _startActionMode1 = jniLookup< ffi.NativeFunction< @@ -9526,9 +11509,13 @@ class Activity extends jni.JObject { /// 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. - jni.JObject startActionMode1(jni.JObject callback, int i) => - const jni.JObjectType() - .fromRef(_startActionMode1(reference, callback.reference, i).object); + jni.JObject startActionMode1( + jni.JObject callback, + int i, + ) { + return const jni.JObjectType() + .fromRef(_startActionMode1(reference, callback.reference, i).object); + } static final _onWindowStartingActionMode = jniLookup< ffi.NativeFunction< @@ -9541,9 +11528,12 @@ class Activity extends jni.JObject { /// from: public android.view.ActionMode onWindowStartingActionMode(android.view.ActionMode$Callback callback) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject onWindowStartingActionMode(jni.JObject callback) => - const jni.JObjectType().fromRef( - _onWindowStartingActionMode(reference, callback.reference).object); + jni.JObject onWindowStartingActionMode( + jni.JObject callback, + ) { + return const jni.JObjectType().fromRef( + _onWindowStartingActionMode(reference, callback.reference).object); + } static final _onWindowStartingActionMode1 = jniLookup< ffi.NativeFunction< @@ -9557,10 +11547,13 @@ class Activity extends jni.JObject { /// 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. - jni.JObject onWindowStartingActionMode1(jni.JObject callback, int i) => - const jni.JObjectType().fromRef( - _onWindowStartingActionMode1(reference, callback.reference, i) - .object); + jni.JObject onWindowStartingActionMode1( + jni.JObject callback, + int i, + ) { + return const jni.JObjectType().fromRef( + _onWindowStartingActionMode1(reference, callback.reference, i).object); + } static final _onActionModeStarted = jniLookup< ffi.NativeFunction< @@ -9571,8 +11564,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onActionModeStarted(android.view.ActionMode actionMode) - void onActionModeStarted(jni.JObject actionMode) => - _onActionModeStarted(reference, actionMode.reference).check(); + void onActionModeStarted( + jni.JObject actionMode, + ) { + return _onActionModeStarted(reference, actionMode.reference).check(); + } static final _onActionModeFinished = jniLookup< ffi.NativeFunction< @@ -9583,8 +11579,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void onActionModeFinished(android.view.ActionMode actionMode) - void onActionModeFinished(jni.JObject actionMode) => - _onActionModeFinished(reference, actionMode.reference).check(); + void onActionModeFinished( + jni.JObject actionMode, + ) { + return _onActionModeFinished(reference, actionMode.reference).check(); + } static final _shouldUpRecreateTask = jniLookup< ffi.NativeFunction< @@ -9595,8 +11594,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean shouldUpRecreateTask(android.content.Intent intent) - bool shouldUpRecreateTask(Intent intent) => - _shouldUpRecreateTask(reference, intent.reference).boolean; + bool shouldUpRecreateTask( + Intent intent, + ) { + return _shouldUpRecreateTask(reference, intent.reference).boolean; + } static final _navigateUpTo = jniLookup< ffi.NativeFunction< @@ -9607,8 +11609,11 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean navigateUpTo(android.content.Intent intent) - bool navigateUpTo(Intent intent) => - _navigateUpTo(reference, intent.reference).boolean; + bool navigateUpTo( + Intent intent, + ) { + return _navigateUpTo(reference, intent.reference).boolean; + } static final _navigateUpToFromChild = jniLookup< ffi.NativeFunction< @@ -9621,9 +11626,14 @@ class Activity extends jni.JObject { ffi.Pointer)>(); /// from: public boolean navigateUpToFromChild(android.app.Activity activity, android.content.Intent intent) - bool navigateUpToFromChild(Activity activity, Intent intent) => - _navigateUpToFromChild(reference, activity.reference, intent.reference) - .boolean; + bool navigateUpToFromChild( + Activity activity, + Intent intent, + ) { + return _navigateUpToFromChild( + reference, activity.reference, intent.reference) + .boolean; + } static final _getParentActivityIntent = jniLookup< ffi.NativeFunction< @@ -9633,8 +11643,10 @@ class Activity extends jni.JObject { /// from: public android.content.Intent getParentActivityIntent() /// The returned object must be deleted after use, by calling the `delete` method. - Intent getParentActivityIntent() => - const $IntentType().fromRef(_getParentActivityIntent(reference).object); + Intent getParentActivityIntent() { + return const $IntentType() + .fromRef(_getParentActivityIntent(reference).object); + } static final _setEnterSharedElementCallback = jniLookup< ffi.NativeFunction< @@ -9646,9 +11658,13 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setEnterSharedElementCallback(android.app.SharedElementCallback sharedElementCallback) - void setEnterSharedElementCallback(jni.JObject sharedElementCallback) => - _setEnterSharedElementCallback(reference, sharedElementCallback.reference) - .check(); + void setEnterSharedElementCallback( + jni.JObject sharedElementCallback, + ) { + return _setEnterSharedElementCallback( + reference, sharedElementCallback.reference) + .check(); + } static final _setExitSharedElementCallback = jniLookup< ffi.NativeFunction< @@ -9660,9 +11676,13 @@ class Activity extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void setExitSharedElementCallback(android.app.SharedElementCallback sharedElementCallback) - void setExitSharedElementCallback(jni.JObject sharedElementCallback) => - _setExitSharedElementCallback(reference, sharedElementCallback.reference) - .check(); + void setExitSharedElementCallback( + jni.JObject sharedElementCallback, + ) { + return _setExitSharedElementCallback( + reference, sharedElementCallback.reference) + .check(); + } static final _postponeEnterTransition = jniLookup< ffi.NativeFunction< @@ -9671,7 +11691,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void postponeEnterTransition() - void postponeEnterTransition() => _postponeEnterTransition(reference).check(); + void postponeEnterTransition() { + return _postponeEnterTransition(reference).check(); + } static final _startPostponedEnterTransition = jniLookup< ffi.NativeFunction< @@ -9680,8 +11702,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void startPostponedEnterTransition() - void startPostponedEnterTransition() => - _startPostponedEnterTransition(reference).check(); + void startPostponedEnterTransition() { + return _startPostponedEnterTransition(reference).check(); + } static final _requestDragAndDropPermissions = jniLookup< ffi.NativeFunction< @@ -9694,10 +11717,12 @@ class Activity extends jni.JObject { /// from: public android.view.DragAndDropPermissions requestDragAndDropPermissions(android.view.DragEvent dragEvent) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject requestDragAndDropPermissions(jni.JObject dragEvent) => - const jni.JObjectType().fromRef( - _requestDragAndDropPermissions(reference, dragEvent.reference) - .object); + jni.JObject requestDragAndDropPermissions( + jni.JObject dragEvent, + ) { + return const jni.JObjectType().fromRef( + _requestDragAndDropPermissions(reference, dragEvent.reference).object); + } static final _startLockTask = jniLookup< ffi.NativeFunction< @@ -9706,7 +11731,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void startLockTask() - void startLockTask() => _startLockTask(reference).check(); + void startLockTask() { + return _startLockTask(reference).check(); + } static final _stopLockTask = jniLookup< ffi.NativeFunction< @@ -9715,7 +11742,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void stopLockTask() - void stopLockTask() => _stopLockTask(reference).check(); + void stopLockTask() { + return _stopLockTask(reference).check(); + } static final _showLockTaskEscapeMessage = jniLookup< ffi.NativeFunction< @@ -9724,8 +11753,9 @@ class Activity extends jni.JObject { .asFunction)>(); /// from: public void showLockTaskEscapeMessage() - void showLockTaskEscapeMessage() => - _showLockTaskEscapeMessage(reference).check(); + void showLockTaskEscapeMessage() { + return _showLockTaskEscapeMessage(reference).check(); + } static final _setRecentsScreenshotEnabled = jniLookup< ffi.NativeFunction< @@ -9734,8 +11764,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setRecentsScreenshotEnabled(boolean z) - void setRecentsScreenshotEnabled(bool z) => - _setRecentsScreenshotEnabled(reference, z ? 1 : 0).check(); + void setRecentsScreenshotEnabled( + bool z, + ) { + return _setRecentsScreenshotEnabled(reference, z ? 1 : 0).check(); + } static final _setShowWhenLocked = jniLookup< ffi.NativeFunction< @@ -9744,8 +11777,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setShowWhenLocked(boolean z) - void setShowWhenLocked(bool z) => - _setShowWhenLocked(reference, z ? 1 : 0).check(); + void setShowWhenLocked( + bool z, + ) { + return _setShowWhenLocked(reference, z ? 1 : 0).check(); + } static final _setInheritShowWhenLocked = jniLookup< ffi.NativeFunction< @@ -9754,8 +11790,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setInheritShowWhenLocked(boolean z) - void setInheritShowWhenLocked(bool z) => - _setInheritShowWhenLocked(reference, z ? 1 : 0).check(); + void setInheritShowWhenLocked( + bool z, + ) { + return _setInheritShowWhenLocked(reference, z ? 1 : 0).check(); + } static final _setTurnScreenOn = jniLookup< ffi.NativeFunction< @@ -9764,8 +11803,11 @@ class Activity extends jni.JObject { .asFunction, int)>(); /// from: public void setTurnScreenOn(boolean z) - void setTurnScreenOn(bool z) => - _setTurnScreenOn(reference, z ? 1 : 0).check(); + void setTurnScreenOn( + bool z, + ) { + return _setTurnScreenOn(reference, z ? 1 : 0).check(); + } static final _getOnBackInvokedDispatcher = jniLookup< ffi.NativeFunction< @@ -9775,8 +11817,10 @@ class Activity extends jni.JObject { /// from: public android.window.OnBackInvokedDispatcher getOnBackInvokedDispatcher() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject getOnBackInvokedDispatcher() => const jni.JObjectType() - .fromRef(_getOnBackInvokedDispatcher(reference).object); + jni.JObject getOnBackInvokedDispatcher() { + return const jni.JObjectType() + .fromRef(_getOnBackInvokedDispatcher(reference).object); + } } class $ActivityType extends jni.JObjType { @@ -9787,24 +11831,26 @@ class $ActivityType extends jni.JObjType { @override Activity fromRef(jni.JObjectPtr ref) => Activity.fromRef(ref); -} -extension $ActivityArray on jni.JArray { - Activity operator [](int index) { - return (elementType as $ActivityType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($ActivityType).hashCode; - void operator []=(int index, Activity value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($ActivityType) && other is $ActivityType; } } /// from: java.time.Instant class Instant extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; Instant.fromRef( jni.JObjectPtr ref, @@ -9812,7 +11858,6 @@ class Instant extends jni.JObject { /// The type which includes information such as the signature of this class. static const type = $InstantType(); - static final _get_EPOCH = jniLookup>( "get_Instant__EPOCH") @@ -9846,7 +11891,9 @@ class Instant extends jni.JObject { /// from: static public java.time.Instant now() /// The returned object must be deleted after use, by calling the `delete` method. - static Instant now() => const $InstantType().fromRef(_now().object); + static Instant now() { + return const $InstantType().fromRef(_now().object); + } static final _now1 = jniLookup< ffi.NativeFunction< @@ -9855,8 +11902,11 @@ class Instant extends jni.JObject { /// from: static public java.time.Instant now(java.time.Clock clock) /// The returned object must be deleted after use, by calling the `delete` method. - static Instant now1(jni.JObject clock) => - const $InstantType().fromRef(_now1(clock.reference).object); + static Instant now1( + jni.JObject clock, + ) { + return const $InstantType().fromRef(_now1(clock.reference).object); + } static final _ofEpochSecond = jniLookup>( @@ -9865,8 +11915,11 @@ class Instant extends jni.JObject { /// from: static public java.time.Instant ofEpochSecond(long j) /// The returned object must be deleted after use, by calling the `delete` method. - static Instant ofEpochSecond(int j) => - const $InstantType().fromRef(_ofEpochSecond(j).object); + static Instant ofEpochSecond( + int j, + ) { + return const $InstantType().fromRef(_ofEpochSecond(j).object); + } static final _ofEpochSecond1 = jniLookup< ffi.NativeFunction>( @@ -9875,8 +11928,12 @@ class Instant extends jni.JObject { /// from: static public java.time.Instant ofEpochSecond(long j, long j1) /// The returned object must be deleted after use, by calling the `delete` method. - static Instant ofEpochSecond1(int j, int j1) => - const $InstantType().fromRef(_ofEpochSecond1(j, j1).object); + static Instant ofEpochSecond1( + int j, + int j1, + ) { + return const $InstantType().fromRef(_ofEpochSecond1(j, j1).object); + } static final _ofEpochMilli = jniLookup>( @@ -9885,8 +11942,11 @@ class Instant extends jni.JObject { /// from: static public java.time.Instant ofEpochMilli(long j) /// The returned object must be deleted after use, by calling the `delete` method. - static Instant ofEpochMilli(int j) => - const $InstantType().fromRef(_ofEpochMilli(j).object); + static Instant ofEpochMilli( + int j, + ) { + return const $InstantType().fromRef(_ofEpochMilli(j).object); + } static final _from = jniLookup< ffi.NativeFunction< @@ -9895,8 +11955,12 @@ class Instant extends jni.JObject { /// 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. - static Instant from(jni.JObject temporalAccessor) => - const $InstantType().fromRef(_from(temporalAccessor.reference).object); + static Instant from( + jni.JObject temporalAccessor, + ) { + return const $InstantType() + .fromRef(_from(temporalAccessor.reference).object); + } static final _parse = jniLookup< ffi.NativeFunction< @@ -9905,8 +11969,11 @@ class Instant extends jni.JObject { /// from: static public java.time.Instant parse(java.lang.CharSequence charSequence) /// The returned object must be deleted after use, by calling the `delete` method. - static Instant parse(jni.JObject charSequence) => - const $InstantType().fromRef(_parse(charSequence.reference).object); + static Instant parse( + jni.JObject charSequence, + ) { + return const $InstantType().fromRef(_parse(charSequence.reference).object); + } static final _isSupported = jniLookup< ffi.NativeFunction< @@ -9917,8 +11984,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean isSupported(java.time.temporal.TemporalField temporalField) - bool isSupported(jni.JObject temporalField) => - _isSupported(reference, temporalField.reference).boolean; + bool isSupported( + jni.JObject temporalField, + ) { + return _isSupported(reference, temporalField.reference).boolean; + } static final _isSupported1 = jniLookup< ffi.NativeFunction< @@ -9929,8 +11999,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean isSupported(java.time.temporal.TemporalUnit temporalUnit) - bool isSupported1(jni.JObject temporalUnit) => - _isSupported1(reference, temporalUnit.reference).boolean; + bool isSupported1( + jni.JObject temporalUnit, + ) { + return _isSupported1(reference, temporalUnit.reference).boolean; + } static final _range = jniLookup< ffi.NativeFunction< @@ -9942,8 +12015,12 @@ class Instant extends jni.JObject { /// 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. - jni.JObject range(jni.JObject temporalField) => const jni.JObjectType() - .fromRef(_range(reference, temporalField.reference).object); + jni.JObject range( + jni.JObject temporalField, + ) { + return const jni.JObjectType() + .fromRef(_range(reference, temporalField.reference).object); + } static final _get0 = jniLookup< ffi.NativeFunction< @@ -9954,8 +12031,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public int get(java.time.temporal.TemporalField temporalField) - int get0(jni.JObject temporalField) => - _get0(reference, temporalField.reference).integer; + int get0( + jni.JObject temporalField, + ) { + return _get0(reference, temporalField.reference).integer; + } static final _getLong = jniLookup< ffi.NativeFunction< @@ -9966,8 +12046,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public long getLong(java.time.temporal.TemporalField temporalField) - int getLong(jni.JObject temporalField) => - _getLong(reference, temporalField.reference).long; + int getLong( + jni.JObject temporalField, + ) { + return _getLong(reference, temporalField.reference).long; + } static final _getEpochSecond = jniLookup< ffi.NativeFunction< @@ -9976,7 +12059,9 @@ class Instant extends jni.JObject { .asFunction)>(); /// from: public long getEpochSecond() - int getEpochSecond() => _getEpochSecond(reference).long; + int getEpochSecond() { + return _getEpochSecond(reference).long; + } static final _getNano = jniLookup< ffi.NativeFunction< @@ -9985,7 +12070,9 @@ class Instant extends jni.JObject { .asFunction)>(); /// from: public int getNano() - int getNano() => _getNano(reference).integer; + int getNano() { + return _getNano(reference).integer; + } static final _with0 = jniLookup< ffi.NativeFunction< @@ -9997,8 +12084,12 @@ class Instant extends jni.JObject { /// from: public java.time.Instant with(java.time.temporal.TemporalAdjuster temporalAdjuster) /// The returned object must be deleted after use, by calling the `delete` method. - Instant with0(jni.JObject temporalAdjuster) => const $InstantType() - .fromRef(_with0(reference, temporalAdjuster.reference).object); + Instant with0( + jni.JObject temporalAdjuster, + ) { + return const $InstantType() + .fromRef(_with0(reference, temporalAdjuster.reference).object); + } static final _with1 = jniLookup< ffi.NativeFunction< @@ -10010,8 +12101,13 @@ class Instant extends jni.JObject { /// 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. - Instant with1(jni.JObject temporalField, int j) => const $InstantType() - .fromRef(_with1(reference, temporalField.reference, j).object); + Instant with1( + jni.JObject temporalField, + int j, + ) { + return const $InstantType() + .fromRef(_with1(reference, temporalField.reference, j).object); + } static final _truncatedTo = jniLookup< ffi.NativeFunction< @@ -10023,8 +12119,12 @@ class Instant extends jni.JObject { /// from: public java.time.Instant truncatedTo(java.time.temporal.TemporalUnit temporalUnit) /// The returned object must be deleted after use, by calling the `delete` method. - Instant truncatedTo(jni.JObject temporalUnit) => const $InstantType() - .fromRef(_truncatedTo(reference, temporalUnit.reference).object); + Instant truncatedTo( + jni.JObject temporalUnit, + ) { + return const $InstantType() + .fromRef(_truncatedTo(reference, temporalUnit.reference).object); + } static final _plus = jniLookup< ffi.NativeFunction< @@ -10036,8 +12136,12 @@ class Instant extends jni.JObject { /// from: public java.time.Instant plus(java.time.temporal.TemporalAmount temporalAmount) /// The returned object must be deleted after use, by calling the `delete` method. - Instant plus(jni.JObject temporalAmount) => const $InstantType() - .fromRef(_plus(reference, temporalAmount.reference).object); + Instant plus( + jni.JObject temporalAmount, + ) { + return const $InstantType() + .fromRef(_plus(reference, temporalAmount.reference).object); + } static final _plus1 = jniLookup< ffi.NativeFunction< @@ -10049,8 +12153,13 @@ class Instant extends jni.JObject { /// 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. - Instant plus1(int j, jni.JObject temporalUnit) => const $InstantType() - .fromRef(_plus1(reference, j, temporalUnit.reference).object); + Instant plus1( + int j, + jni.JObject temporalUnit, + ) { + return const $InstantType() + .fromRef(_plus1(reference, j, temporalUnit.reference).object); + } static final _plusSeconds = jniLookup< ffi.NativeFunction< @@ -10060,8 +12169,11 @@ class Instant extends jni.JObject { /// from: public java.time.Instant plusSeconds(long j) /// The returned object must be deleted after use, by calling the `delete` method. - Instant plusSeconds(int j) => - const $InstantType().fromRef(_plusSeconds(reference, j).object); + Instant plusSeconds( + int j, + ) { + return const $InstantType().fromRef(_plusSeconds(reference, j).object); + } static final _plusMillis = jniLookup< ffi.NativeFunction< @@ -10071,8 +12183,11 @@ class Instant extends jni.JObject { /// from: public java.time.Instant plusMillis(long j) /// The returned object must be deleted after use, by calling the `delete` method. - Instant plusMillis(int j) => - const $InstantType().fromRef(_plusMillis(reference, j).object); + Instant plusMillis( + int j, + ) { + return const $InstantType().fromRef(_plusMillis(reference, j).object); + } static final _plusNanos = jniLookup< ffi.NativeFunction< @@ -10082,8 +12197,11 @@ class Instant extends jni.JObject { /// from: public java.time.Instant plusNanos(long j) /// The returned object must be deleted after use, by calling the `delete` method. - Instant plusNanos(int j) => - const $InstantType().fromRef(_plusNanos(reference, j).object); + Instant plusNanos( + int j, + ) { + return const $InstantType().fromRef(_plusNanos(reference, j).object); + } static final _minus = jniLookup< ffi.NativeFunction< @@ -10095,8 +12213,12 @@ class Instant extends jni.JObject { /// from: public java.time.Instant minus(java.time.temporal.TemporalAmount temporalAmount) /// The returned object must be deleted after use, by calling the `delete` method. - Instant minus(jni.JObject temporalAmount) => const $InstantType() - .fromRef(_minus(reference, temporalAmount.reference).object); + Instant minus( + jni.JObject temporalAmount, + ) { + return const $InstantType() + .fromRef(_minus(reference, temporalAmount.reference).object); + } static final _minus1 = jniLookup< ffi.NativeFunction< @@ -10108,8 +12230,13 @@ class Instant extends jni.JObject { /// 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. - Instant minus1(int j, jni.JObject temporalUnit) => const $InstantType() - .fromRef(_minus1(reference, j, temporalUnit.reference).object); + Instant minus1( + int j, + jni.JObject temporalUnit, + ) { + return const $InstantType() + .fromRef(_minus1(reference, j, temporalUnit.reference).object); + } static final _minusSeconds = jniLookup< ffi.NativeFunction< @@ -10119,8 +12246,11 @@ class Instant extends jni.JObject { /// from: public java.time.Instant minusSeconds(long j) /// The returned object must be deleted after use, by calling the `delete` method. - Instant minusSeconds(int j) => - const $InstantType().fromRef(_minusSeconds(reference, j).object); + Instant minusSeconds( + int j, + ) { + return const $InstantType().fromRef(_minusSeconds(reference, j).object); + } static final _minusMillis = jniLookup< ffi.NativeFunction< @@ -10130,8 +12260,11 @@ class Instant extends jni.JObject { /// from: public java.time.Instant minusMillis(long j) /// The returned object must be deleted after use, by calling the `delete` method. - Instant minusMillis(int j) => - const $InstantType().fromRef(_minusMillis(reference, j).object); + Instant minusMillis( + int j, + ) { + return const $InstantType().fromRef(_minusMillis(reference, j).object); + } static final _minusNanos = jniLookup< ffi.NativeFunction< @@ -10141,8 +12274,11 @@ class Instant extends jni.JObject { /// from: public java.time.Instant minusNanos(long j) /// The returned object must be deleted after use, by calling the `delete` method. - Instant minusNanos(int j) => - const $InstantType().fromRef(_minusNanos(reference, j).object); + Instant minusNanos( + int j, + ) { + return const $InstantType().fromRef(_minusNanos(reference, j).object); + } static final _query = jniLookup< ffi.NativeFunction< @@ -10154,9 +12290,12 @@ class Instant extends jni.JObject { /// from: public R query(java.time.temporal.TemporalQuery temporalQuery) /// The returned object must be deleted after use, by calling the `delete` method. - R query( - jni.JObjType $R, jni.JObject temporalQuery) => - $R.fromRef(_query(reference, temporalQuery.reference).object); + $R query<$R extends jni.JObject>( + jni.JObject temporalQuery, { + required jni.JObjType<$R> R, + }) { + return R.fromRef(_query(reference, temporalQuery.reference).object); + } static final _adjustInto = jniLookup< ffi.NativeFunction< @@ -10168,8 +12307,12 @@ class Instant extends jni.JObject { /// 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. - jni.JObject adjustInto(jni.JObject temporal) => const jni.JObjectType() - .fromRef(_adjustInto(reference, temporal.reference).object); + jni.JObject adjustInto( + jni.JObject temporal, + ) { + return const jni.JObjectType() + .fromRef(_adjustInto(reference, temporal.reference).object); + } static final _until = jniLookup< ffi.NativeFunction< @@ -10182,8 +12325,12 @@ class Instant extends jni.JObject { ffi.Pointer)>(); /// from: public long until(java.time.temporal.Temporal temporal, java.time.temporal.TemporalUnit temporalUnit) - int until(jni.JObject temporal, jni.JObject temporalUnit) => - _until(reference, temporal.reference, temporalUnit.reference).long; + int until( + jni.JObject temporal, + jni.JObject temporalUnit, + ) { + return _until(reference, temporal.reference, temporalUnit.reference).long; + } static final _atOffset = jniLookup< ffi.NativeFunction< @@ -10195,8 +12342,12 @@ class Instant extends jni.JObject { /// from: public java.time.OffsetDateTime atOffset(java.time.ZoneOffset zoneOffset) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject atOffset(jni.JObject zoneOffset) => const jni.JObjectType() - .fromRef(_atOffset(reference, zoneOffset.reference).object); + jni.JObject atOffset( + jni.JObject zoneOffset, + ) { + return const jni.JObjectType() + .fromRef(_atOffset(reference, zoneOffset.reference).object); + } static final _atZone = jniLookup< ffi.NativeFunction< @@ -10208,8 +12359,12 @@ class Instant extends jni.JObject { /// from: public java.time.ZonedDateTime atZone(java.time.ZoneId zoneId) /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject atZone(jni.JObject zoneId) => const jni.JObjectType() - .fromRef(_atZone(reference, zoneId.reference).object); + jni.JObject atZone( + jni.JObject zoneId, + ) { + return const jni.JObjectType() + .fromRef(_atZone(reference, zoneId.reference).object); + } static final _toEpochMilli = jniLookup< ffi.NativeFunction< @@ -10218,7 +12373,9 @@ class Instant extends jni.JObject { .asFunction)>(); /// from: public long toEpochMilli() - int toEpochMilli() => _toEpochMilli(reference).long; + int toEpochMilli() { + return _toEpochMilli(reference).long; + } static final _compareTo = jniLookup< ffi.NativeFunction< @@ -10229,8 +12386,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public int compareTo(java.time.Instant instant) - int compareTo(Instant instant) => - _compareTo(reference, instant.reference).integer; + int compareTo( + Instant instant, + ) { + return _compareTo(reference, instant.reference).integer; + } static final _isAfter = jniLookup< ffi.NativeFunction< @@ -10241,8 +12401,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean isAfter(java.time.Instant instant) - bool isAfter(Instant instant) => - _isAfter(reference, instant.reference).boolean; + bool isAfter( + Instant instant, + ) { + return _isAfter(reference, instant.reference).boolean; + } static final _isBefore = jniLookup< ffi.NativeFunction< @@ -10253,8 +12416,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean isBefore(java.time.Instant instant) - bool isBefore(Instant instant) => - _isBefore(reference, instant.reference).boolean; + bool isBefore( + Instant instant, + ) { + return _isBefore(reference, instant.reference).boolean; + } static final _equals1 = jniLookup< ffi.NativeFunction< @@ -10265,8 +12431,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean equals(java.lang.Object object) - bool equals1(jni.JObject object) => - _equals1(reference, object.reference).boolean; + bool equals1( + jni.JObject object, + ) { + return _equals1(reference, object.reference).boolean; + } static final _hashCode1 = jniLookup< ffi.NativeFunction< @@ -10275,7 +12444,9 @@ class Instant extends jni.JObject { .asFunction)>(); /// from: public int hashCode() - int hashCode1() => _hashCode1(reference).integer; + int hashCode1() { + return _hashCode1(reference).integer; + } static final _toString1 = jniLookup< ffi.NativeFunction< @@ -10285,8 +12456,9 @@ class Instant extends jni.JObject { /// from: public java.lang.String toString() /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString toString1() => - const jni.JStringType().fromRef(_toString1(reference).object); + jni.JString toString1() { + return const jni.JStringType().fromRef(_toString1(reference).object); + } static final _minus2 = jniLookup< ffi.NativeFunction< @@ -10298,8 +12470,13 @@ class Instant extends jni.JObject { /// 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. - jni.JObject minus2(int j, jni.JObject temporalUnit) => const jni.JObjectType() - .fromRef(_minus2(reference, j, temporalUnit.reference).object); + jni.JObject minus2( + int j, + jni.JObject temporalUnit, + ) { + return const jni.JObjectType() + .fromRef(_minus2(reference, j, temporalUnit.reference).object); + } static final _minus3 = jniLookup< ffi.NativeFunction< @@ -10311,8 +12488,12 @@ class Instant extends jni.JObject { /// 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. - jni.JObject minus3(jni.JObject temporalAmount) => const jni.JObjectType() - .fromRef(_minus3(reference, temporalAmount.reference).object); + jni.JObject minus3( + jni.JObject temporalAmount, + ) { + return const jni.JObjectType() + .fromRef(_minus3(reference, temporalAmount.reference).object); + } static final _plus2 = jniLookup< ffi.NativeFunction< @@ -10324,8 +12505,13 @@ class Instant extends jni.JObject { /// 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. - jni.JObject plus2(int j, jni.JObject temporalUnit) => const jni.JObjectType() - .fromRef(_plus2(reference, j, temporalUnit.reference).object); + jni.JObject plus2( + int j, + jni.JObject temporalUnit, + ) { + return const jni.JObjectType() + .fromRef(_plus2(reference, j, temporalUnit.reference).object); + } static final _plus3 = jniLookup< ffi.NativeFunction< @@ -10337,8 +12523,12 @@ class Instant extends jni.JObject { /// 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. - jni.JObject plus3(jni.JObject temporalAmount) => const jni.JObjectType() - .fromRef(_plus3(reference, temporalAmount.reference).object); + jni.JObject plus3( + jni.JObject temporalAmount, + ) { + return const jni.JObjectType() + .fromRef(_plus3(reference, temporalAmount.reference).object); + } static final _with2 = jniLookup< ffi.NativeFunction< @@ -10350,8 +12540,13 @@ class Instant extends jni.JObject { /// 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. - jni.JObject with2(jni.JObject temporalField, int j) => const jni.JObjectType() - .fromRef(_with2(reference, temporalField.reference, j).object); + jni.JObject with2( + jni.JObject temporalField, + int j, + ) { + return const jni.JObjectType() + .fromRef(_with2(reference, temporalField.reference, j).object); + } static final _with3 = jniLookup< ffi.NativeFunction< @@ -10363,8 +12558,12 @@ class Instant extends jni.JObject { /// 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. - jni.JObject with3(jni.JObject temporalAdjuster) => const jni.JObjectType() - .fromRef(_with3(reference, temporalAdjuster.reference).object); + jni.JObject with3( + jni.JObject temporalAdjuster, + ) { + return const jni.JObjectType() + .fromRef(_with3(reference, temporalAdjuster.reference).object); + } static final _compareTo1 = jniLookup< ffi.NativeFunction< @@ -10375,8 +12574,11 @@ class Instant extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public int compareTo(java.lang.Object object) - int compareTo1(jni.JObject object) => - _compareTo1(reference, object.reference).integer; + int compareTo1( + jni.JObject object, + ) { + return _compareTo1(reference, object.reference).integer; + } } class $InstantType extends jni.JObjType { @@ -10387,1129 +12589,57 @@ class $InstantType extends jni.JObjType { @override Instant fromRef(jni.JObjectPtr ref) => Instant.fromRef(ref); -} -extension $InstantArray on jni.JArray { - Instant operator [](int index) { - return (elementType as $InstantType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($InstantType).hashCode; - void operator []=(int index, Instant value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($InstantType) && other is $InstantType; } } -/// from: java.lang.Long -class Long extends jni.JObject { - late final jni.JObjType? _$type; +/// from: androidx.health.connect.client.request.AggregateGroupByDurationRequest +class AggregateGroupByDurationRequest extends jni.JObject { @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; - Long.fromRef( + AggregateGroupByDurationRequest.fromRef( jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. - static const type = $LongType(); - - /// from: static public final int BYTES - static const BYTES = 8; - - /// from: static public final long MAX_VALUE - static const MAX_VALUE = 9223372036854775807; - - /// from: static public final long MIN_VALUE - static const MIN_VALUE = -9223372036854775808; - - /// from: static public final int SIZE - static const SIZE = 64; - - static final _get_TYPE = - jniLookup>("get_Long__TYPE") - .asFunction(); + static const type = $AggregateGroupByDurationRequestType(); + static final _ctor = jniLookup< + ffi.NativeFunction< + jni.JniResult Function( + ffi.Pointer, + ffi.Pointer, + ffi.Pointer, + ffi.Pointer)>>( + "AggregateGroupByDurationRequest__ctor") + .asFunction< + jni.JniResult Function(ffi.Pointer, ffi.Pointer, + ffi.Pointer, ffi.Pointer)>(); - /// from: static public final java.lang.Class TYPE + /// 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. - static jni.JObject get TYPE => - const jni.JObjectType().fromRef(_get_TYPE().object); - - static final _ctor = - jniLookup>( - "Long__ctor") - .asFunction(); - - /// from: public void (long j) - Long(int j) : super.fromRef(_ctor(j).object); - - static final _ctor1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__ctor1") - .asFunction)>(); - - /// from: public void (java.lang.String string) - Long.ctor1(jni.JString string) - : super.fromRef(_ctor1(string.reference).object); - - static final _toString1 = jniLookup< - ffi.NativeFunction>( - "Long__toString1") - .asFunction(); - - /// from: static public java.lang.String toString(long j, int i) - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JString toString1(int j, int i) => - const jni.JStringType().fromRef(_toString1(j, i).object); - - static final _toUnsignedString = jniLookup< - ffi.NativeFunction>( - "Long__toUnsignedString") - .asFunction(); - - /// from: static public java.lang.String toUnsignedString(long j, int i) - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JString toUnsignedString(int j, int i) => - const jni.JStringType().fromRef(_toUnsignedString(j, i).object); - - static final _toHexString = - jniLookup>( - "Long__toHexString") - .asFunction(); - - /// from: static public java.lang.String toHexString(long j) - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JString toHexString(int j) => - const jni.JStringType().fromRef(_toHexString(j).object); - - static final _toOctalString = - jniLookup>( - "Long__toOctalString") - .asFunction(); - - /// from: static public java.lang.String toOctalString(long j) - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JString toOctalString(int j) => - const jni.JStringType().fromRef(_toOctalString(j).object); - - static final _toBinaryString = - jniLookup>( - "Long__toBinaryString") - .asFunction(); - - /// from: static public java.lang.String toBinaryString(long j) - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JString toBinaryString(int j) => - const jni.JStringType().fromRef(_toBinaryString(j).object); - - static final _toString2 = - jniLookup>( - "Long__toString2") - .asFunction(); - - /// from: static public java.lang.String toString(long j) - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JString toString2(int j) => - const jni.JStringType().fromRef(_toString2(j).object); - - static final _toUnsignedString1 = - jniLookup>( - "Long__toUnsignedString1") - .asFunction(); - - /// from: static public java.lang.String toUnsignedString(long j) - /// The returned object must be deleted after use, by calling the `delete` method. - static jni.JString toUnsignedString1(int j) => - const jni.JStringType().fromRef(_toUnsignedString1(j).object); - - static final _parseLong = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Int32)>>("Long__parseLong") - .asFunction, int)>(); - - /// from: static public long parseLong(java.lang.String string, int i) - static int parseLong(jni.JString string, int i) => - _parseLong(string.reference, i).long; - - static final _parseLong1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, ffi.Int32, - ffi.Int32, ffi.Int32)>>("Long__parseLong1") - .asFunction< - jni.JniResult Function(ffi.Pointer, int, int, int)>(); - - /// from: static public long parseLong(java.lang.CharSequence charSequence, int i, int i1, int i2) - static int parseLong1(jni.JObject charSequence, int i, int i1, int i2) => - _parseLong1(charSequence.reference, i, i1, i2).long; - - static final _parseLong2 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer)>>("Long__parseLong2") - .asFunction)>(); - - /// from: static public long parseLong(java.lang.String string) - static int parseLong2(jni.JString string) => - _parseLong2(string.reference).long; - - static final _parseUnsignedLong = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Int32)>>("Long__parseUnsignedLong") - .asFunction, int)>(); - - /// from: static public long parseUnsignedLong(java.lang.String string, int i) - static int parseUnsignedLong(jni.JString string, int i) => - _parseUnsignedLong(string.reference, i).long; - - static final _parseUnsignedLong1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, ffi.Int32, - ffi.Int32, ffi.Int32)>>("Long__parseUnsignedLong1") - .asFunction< - jni.JniResult Function(ffi.Pointer, int, int, int)>(); - - /// from: static public long parseUnsignedLong(java.lang.CharSequence charSequence, int i, int i1, int i2) - static int parseUnsignedLong1( - jni.JObject charSequence, int i, int i1, int i2) => - _parseUnsignedLong1(charSequence.reference, i, i1, i2).long; - - static final _parseUnsignedLong2 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer)>>("Long__parseUnsignedLong2") - .asFunction)>(); - - /// from: static public long parseUnsignedLong(java.lang.String string) - static int parseUnsignedLong2(jni.JString string) => - _parseUnsignedLong2(string.reference).long; - - static final _valueOf = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Int32)>>("Long__valueOf") - .asFunction, int)>(); - - /// from: static public java.lang.Long valueOf(java.lang.String string, int i) - /// The returned object must be deleted after use, by calling the `delete` method. - static Long valueOf(jni.JString string, int i) => - const $LongType().fromRef(_valueOf(string.reference, i).object); - - static final _valueOf1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__valueOf1") - .asFunction)>(); - - /// from: static public java.lang.Long valueOf(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. - static Long valueOf1(jni.JString string) => - const $LongType().fromRef(_valueOf1(string.reference).object); - - static final _valueOf2 = - jniLookup>( - "Long__valueOf2") - .asFunction(); - - /// from: static public java.lang.Long valueOf(long j) - /// The returned object must be deleted after use, by calling the `delete` method. - static Long valueOf2(int j) => const $LongType().fromRef(_valueOf2(j).object); - - static final _decode = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__decode") - .asFunction)>(); - - /// from: static public java.lang.Long decode(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. - static Long decode(jni.JString string) => - const $LongType().fromRef(_decode(string.reference).object); - - static final _byteValue = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__byteValue") - .asFunction)>(); - - /// from: public byte byteValue() - int byteValue() => _byteValue(reference).byte; - - static final _shortValue = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer)>>("Long__shortValue") - .asFunction)>(); - - /// from: public short shortValue() - int shortValue() => _shortValue(reference).short; - - static final _intValue = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__intValue") - .asFunction)>(); - - /// from: public int intValue() - int intValue() => _intValue(reference).integer; - - static final _longValue = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__longValue") - .asFunction)>(); - - /// from: public long longValue() - int longValue() => _longValue(reference).long; - - static final _floatValue = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer)>>("Long__floatValue") - .asFunction)>(); - - /// from: public float floatValue() - double floatValue() => _floatValue(reference).float; - - static final _doubleValue = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer)>>("Long__doubleValue") - .asFunction)>(); - - /// from: public double doubleValue() - double doubleValue() => _doubleValue(reference).doubleFloat; - - static final _toString3 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__toString3") - .asFunction)>(); - - /// from: public java.lang.String toString() - /// The returned object must be deleted after use, by calling the `delete` method. - jni.JString toString3() => - const jni.JStringType().fromRef(_toString3(reference).object); - - static final _hashCode1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__hashCode1") - .asFunction)>(); - - /// from: public int hashCode() - int hashCode1() => _hashCode1(reference).integer; - - static final _hashCode2 = - jniLookup>( - "Long__hashCode2") - .asFunction(); - - /// from: static public int hashCode(long j) - static int hashCode2(int j) => _hashCode2(j).integer; - - static final _equals1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Long__equals1") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public boolean equals(java.lang.Object object) - bool equals1(jni.JObject object) => - _equals1(reference, object.reference).boolean; - - static final _getLong = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Long__getLong") - .asFunction)>(); - - /// from: static public java.lang.Long getLong(java.lang.String string) - /// The returned object must be deleted after use, by calling the `delete` method. - static Long getLong(jni.JString string) => - const $LongType().fromRef(_getLong(string.reference).object); - - static final _getLong1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Int64)>>("Long__getLong1") - .asFunction, int)>(); - - /// from: static public java.lang.Long getLong(java.lang.String string, long j) - /// The returned object must be deleted after use, by calling the `delete` method. - static Long getLong1(jni.JString string, int j) => - const $LongType().fromRef(_getLong1(string.reference, j).object); - - static final _getLong2 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Long__getLong2") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public java.lang.Long getLong(java.lang.String string, java.lang.Long long) - /// The returned object must be deleted after use, by calling the `delete` method. - static Long getLong2(jni.JString string, Long long) => const $LongType() - .fromRef(_getLong2(string.reference, long.reference).object); - - static final _compareTo = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Long__compareTo") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public int compareTo(java.lang.Long long) - int compareTo(Long long) => _compareTo(reference, long.reference).integer; - - static final _compare = jniLookup< - ffi.NativeFunction>( - "Long__compare") - .asFunction(); - - /// from: static public int compare(long j, long j1) - static int compare(int j, int j1) => _compare(j, j1).integer; - - static final _compareUnsigned = jniLookup< - ffi.NativeFunction>( - "Long__compareUnsigned") - .asFunction(); - - /// from: static public int compareUnsigned(long j, long j1) - static int compareUnsigned(int j, int j1) => _compareUnsigned(j, j1).integer; - - static final _divideUnsigned = jniLookup< - ffi.NativeFunction>( - "Long__divideUnsigned") - .asFunction(); - - /// from: static public long divideUnsigned(long j, long j1) - static int divideUnsigned(int j, int j1) => _divideUnsigned(j, j1).long; - - static final _remainderUnsigned = jniLookup< - ffi.NativeFunction>( - "Long__remainderUnsigned") - .asFunction(); - - /// from: static public long remainderUnsigned(long j, long j1) - static int remainderUnsigned(int j, int j1) => _remainderUnsigned(j, j1).long; - - static final _highestOneBit = - jniLookup>( - "Long__highestOneBit") - .asFunction(); - - /// from: static public long highestOneBit(long j) - static int highestOneBit(int j) => _highestOneBit(j).long; - - static final _lowestOneBit = - jniLookup>( - "Long__lowestOneBit") - .asFunction(); - - /// from: static public long lowestOneBit(long j) - static int lowestOneBit(int j) => _lowestOneBit(j).long; - - static final _numberOfLeadingZeros = - jniLookup>( - "Long__numberOfLeadingZeros") - .asFunction(); - - /// from: static public int numberOfLeadingZeros(long j) - static int numberOfLeadingZeros(int j) => _numberOfLeadingZeros(j).integer; - - static final _numberOfTrailingZeros = - jniLookup>( - "Long__numberOfTrailingZeros") - .asFunction(); - - /// from: static public int numberOfTrailingZeros(long j) - static int numberOfTrailingZeros(int j) => _numberOfTrailingZeros(j).integer; - - static final _bitCount = - jniLookup>( - "Long__bitCount") - .asFunction(); - - /// from: static public int bitCount(long j) - static int bitCount(int j) => _bitCount(j).integer; - - static final _rotateLeft = jniLookup< - ffi.NativeFunction>( - "Long__rotateLeft") - .asFunction(); - - /// from: static public long rotateLeft(long j, int i) - static int rotateLeft(int j, int i) => _rotateLeft(j, i).long; - - static final _rotateRight = jniLookup< - ffi.NativeFunction>( - "Long__rotateRight") - .asFunction(); - - /// from: static public long rotateRight(long j, int i) - static int rotateRight(int j, int i) => _rotateRight(j, i).long; - - static final _reverse = - jniLookup>( - "Long__reverse") - .asFunction(); - - /// from: static public long reverse(long j) - static int reverse(int j) => _reverse(j).long; - - static final _signum = - jniLookup>( - "Long__signum") - .asFunction(); - - /// from: static public int signum(long j) - static int signum(int j) => _signum(j).integer; - - static final _reverseBytes = - jniLookup>( - "Long__reverseBytes") - .asFunction(); - - /// from: static public long reverseBytes(long j) - static int reverseBytes(int j) => _reverseBytes(j).long; - - static final _sum = jniLookup< - ffi.NativeFunction>( - "Long__sum") - .asFunction(); - - /// from: static public long sum(long j, long j1) - static int sum(int j, int j1) => _sum(j, j1).long; - - static final _max = jniLookup< - ffi.NativeFunction>( - "Long__max") - .asFunction(); - - /// from: static public long max(long j, long j1) - static int max(int j, int j1) => _max(j, j1).long; - - static final _min = jniLookup< - ffi.NativeFunction>( - "Long__min") - .asFunction(); - - /// from: static public long min(long j, long j1) - static int min(int j, int j1) => _min(j, j1).long; - - static final _compareTo1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Long__compareTo1") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public int compareTo(java.lang.Object object) - int compareTo1(jni.JObject object) => - _compareTo1(reference, object.reference).integer; -} - -class $LongType extends jni.JObjType { - const $LongType(); - - @override - String get signature => r"Ljava/lang/Long;"; - - @override - Long fromRef(jni.JObjectPtr ref) => Long.fromRef(ref); -} - -extension $LongArray on jni.JArray { - Long operator [](int index) { - return (elementType as $LongType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } - - void operator []=(int index, Long value) { - (this as jni.JArray)[index] = value; - } -} - -/// from: java.util.Set -class Set extends jni.JObject { - late final jni.JObjType? _$type; - @override - jni.JObjType get $type => _$type ??= type( - $E, - ); - - final jni.JObjType $E; - - Set.fromRef( - this.$E, - jni.JObjectPtr ref, - ) : super.fromRef(ref); - - /// The type which includes information such as the signature of this class. - static $SetType type( - jni.JObjType $E, - ) { - return $SetType( - $E, - ); - } - - static final _size = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__size") - .asFunction)>(); - - /// from: public abstract int size() - int size() => _size(reference).integer; - - static final _isEmpty = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__isEmpty") - .asFunction)>(); - - /// from: public abstract boolean isEmpty() - bool isEmpty() => _isEmpty(reference).boolean; - - static final _contains = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Set__contains") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract boolean contains(java.lang.Object object) - bool contains(jni.JObject object) => - _contains(reference, object.reference).boolean; - - static final _iterator = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__iterator") - .asFunction)>(); - - /// from: public abstract java.util.Iterator iterator() - /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject iterator() => - const jni.JObjectType().fromRef(_iterator(reference).object); - - static final _toArray = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__toArray") - .asFunction)>(); - - /// from: public abstract java.lang.Object[] toArray() - /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray toArray() => const jni.JArrayType(jni.JObjectType()) - .fromRef(_toArray(reference).object); - - static final _toArray1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Set__toArray1") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract java.lang.Object[] toArray(java.lang.Object[] objects) - /// The returned object must be deleted after use, by calling the `delete` method. - jni.JArray toArray1( - jni.JObjType $T, jni.JArray objects) => - jni.JArrayType($T) - .fromRef(_toArray1(reference, objects.reference).object); - - static final _add = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>>("Set__add") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract boolean add(E object) - bool add(E object) => _add(reference, object.reference).boolean; - - static final _remove = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>>("Set__remove") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract boolean remove(java.lang.Object object) - bool remove(jni.JObject object) => - _remove(reference, object.reference).boolean; - - static final _containsAll = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Set__containsAll") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract boolean containsAll(java.util.Collection collection) - bool containsAll(jni.JObject collection) => - _containsAll(reference, collection.reference).boolean; - - static final _addAll = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>>("Set__addAll") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract boolean addAll(java.util.Collection collection) - bool addAll(jni.JObject collection) => - _addAll(reference, collection.reference).boolean; - - static final _retainAll = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Set__retainAll") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract boolean retainAll(java.util.Collection collection) - bool retainAll(jni.JObject collection) => - _retainAll(reference, collection.reference).boolean; - - static final _removeAll = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Set__removeAll") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract boolean removeAll(java.util.Collection collection) - bool removeAll(jni.JObject collection) => - _removeAll(reference, collection.reference).boolean; - - static final _clear = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__clear") - .asFunction)>(); - - /// from: public abstract void clear() - void clear() => _clear(reference).check(); - - static final _equals1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer)>>("Set__equals1") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract boolean equals(java.lang.Object object) - bool equals1(jni.JObject object) => - _equals1(reference, object.reference).boolean; - - static final _hashCode1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__hashCode1") - .asFunction)>(); - - /// from: public abstract int hashCode() - int hashCode1() => _hashCode1(reference).integer; - - static final _spliterator = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer)>>("Set__spliterator") - .asFunction)>(); - - /// from: public java.util.Spliterator spliterator() - /// The returned object must be deleted after use, by calling the `delete` method. - jni.JObject spliterator() => - const jni.JObjectType().fromRef(_spliterator(reference).object); - - static final _of = - jniLookup>("Set__of") - .asFunction(); - - /// from: static public java.util.Set of() - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of(jni.JObjType $E) => - $SetType($E).fromRef(_of().object); - - static final _of1 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__of1") - .asFunction)>(); - - /// from: static public java.util.Set of(E object) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of1(jni.JObjType $E, E object) => - $SetType($E).fromRef(_of1(object.reference).object); - - static final _of2 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>>("Set__of2") - .asFunction< - jni.JniResult Function( - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of2( - jni.JObjType $E, E object, E object1) => - $SetType($E).fromRef(_of2(object.reference, object1.reference).object); - - static final _of3 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, - ffi.Pointer, ffi.Pointer)>>("Set__of3") - .asFunction< - jni.JniResult Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1, E object2) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of3( - jni.JObjType $E, E object, E object1, E object2) => - $SetType($E).fromRef( - _of3(object.reference, object1.reference, object2.reference).object); - - static final _of4 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>("Set__of4") - .asFunction< - jni.JniResult Function(ffi.Pointer, ffi.Pointer, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1, E object2, E object3) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of4( - jni.JObjType $E, E object, E object1, E object2, E object3) => - $SetType($E).fromRef(_of4(object.reference, object1.reference, - object2.reference, object3.reference) - .object); - - static final _of5 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>("Set__of5") - .asFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1, E object2, E object3, E object4) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of5(jni.JObjType $E, E object, - E object1, E object2, E object3, E object4) => - $SetType($E).fromRef(_of5(object.reference, object1.reference, - object2.reference, object3.reference, object4.reference) - .object); - - static final _of6 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>("Set__of6") - .asFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1, E object2, E object3, E object4, E object5) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of6(jni.JObjType $E, E object, - E object1, E object2, E object3, E object4, E object5) => - $SetType($E).fromRef(_of6( - object.reference, - object1.reference, - object2.reference, - object3.reference, - object4.reference, - object5.reference) - .object); - - static final _of7 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>("Set__of7") - .asFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1, E object2, E object3, E object4, E object5, E object6) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of7(jni.JObjType $E, E object, - E object1, E object2, E object3, E object4, E object5, E object6) => - $SetType($E).fromRef(_of7( - object.reference, - object1.reference, - object2.reference, - object3.reference, - object4.reference, - object5.reference, - object6.reference) - .object); - - static final _of8 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>("Set__of8") - .asFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1, E object2, E object3, E object4, E object5, E object6, E object7) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of8( - jni.JObjType $E, - E object, - E object1, - E object2, - E object3, - E object4, - E object5, - E object6, - E object7) => - $SetType($E).fromRef(_of8( - object.reference, - object1.reference, - object2.reference, - object3.reference, - object4.reference, - object5.reference, - object6.reference, - object7.reference) - .object); - - static final _of9 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>("Set__of9") - .asFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1, E object2, E object3, E object4, E object5, E object6, E object7, E object8) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of9( - jni.JObjType $E, - E object, - E object1, - E object2, - E object3, - E object4, - E object5, - E object6, - E object7, - E object8) => - $SetType($E).fromRef(_of9( - object.reference, - object1.reference, - object2.reference, - object3.reference, - object4.reference, - object5.reference, - object6.reference, - object7.reference, - object8.reference) - .object); - - static final _of10 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>("Set__of10") - .asFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: static public java.util.Set of(E object, E object1, E object2, E object3, E object4, E object5, E object6, E object7, E object8, E object9) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of10( - jni.JObjType $E, - E object, - E object1, - E object2, - E object3, - E object4, - E object5, - E object6, - E object7, - E object8, - E object9) => - $SetType($E).fromRef(_of10( - object.reference, - object1.reference, - object2.reference, - object3.reference, - object4.reference, - object5.reference, - object6.reference, - object7.reference, - object8.reference, - object9.reference) - .object); - - static final _of11 = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__of11") - .asFunction)>(); - - /// from: static public java.util.Set of(java.lang.Object[] objects) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set of11( - jni.JObjType $E, jni.JArray objects) => - $SetType($E).fromRef(_of11(objects.reference).object); - - static final _copyOf = jniLookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer)>>("Set__copyOf") - .asFunction)>(); - - /// from: static public java.util.Set copyOf(java.util.Collection collection) - /// The returned object must be deleted after use, by calling the `delete` method. - static Set copyOf( - jni.JObjType $E, jni.JObject collection) => - $SetType($E).fromRef(_copyOf(collection.reference).object); -} - -class $SetType extends jni.JObjType> { - final jni.JObjType $E; - - const $SetType( - this.$E, - ); - - @override - String get signature => r"Ljava/util/Set;"; - - @override - Set fromRef(jni.JObjectPtr ref) => Set.fromRef($E, ref); -} - -extension $SetArray on jni.JArray> { - Set operator [](int index) { - return (elementType as $SetType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } - - void operator []=(int index, Set value) { - (this as jni.JArray)[index] = value; - } -} - -/// from: androidx.health.connect.client.request.AggregateGroupByDurationRequest -class AggregateGroupByDurationRequest extends jni.JObject { - late final jni.JObjType? _$type; - @override - jni.JObjType get $type => _$type ??= type; - - AggregateGroupByDurationRequest.fromRef( - jni.JObjectPtr ref, - ) : super.fromRef(ref); - - /// The type which includes information such as the signature of this class. - static const type = $AggregateGroupByDurationRequestType(); - - static final _ctor = jniLookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>>( - "AggregateGroupByDurationRequest__ctor") - .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) - AggregateGroupByDurationRequest( - Set> set0, - TimeRangeFilter timeRangeFilter, - jni.JObject duration, - Set set1) - : super.fromRef(_ctor(set0.reference, timeRangeFilter.reference, - duration.reference, set1.reference) - .object); + factory AggregateGroupByDurationRequest( + jni.JSet> set0, + TimeRangeFilter timeRangeFilter, + jni.JObject duration, + jni.JSet set1, + ) { + return AggregateGroupByDurationRequest.fromRef(_ctor(set0.reference, + timeRangeFilter.reference, duration.reference, set1.reference) + .object); + } static final _ctor1 = jniLookup< ffi.NativeFunction< @@ -11531,21 +12661,24 @@ 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) - AggregateGroupByDurationRequest.ctor1( - Set set0, - TimeRangeFilter timeRangeFilter, - jni.JObject duration, - Set set1, - int i, - jni.JObject defaultConstructorMarker) - : super.fromRef(_ctor1( - set0.reference, - timeRangeFilter.reference, - duration.reference, - set1.reference, - i, - defaultConstructorMarker.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory AggregateGroupByDurationRequest.ctor1( + jni.JSet set0, + TimeRangeFilter timeRangeFilter, + jni.JObject duration, + jni.JSet set1, + int i, + jni.JObject defaultConstructorMarker, + ) { + return AggregateGroupByDurationRequest.fromRef(_ctor1( + set0.reference, + timeRangeFilter.reference, + duration.reference, + set1.reference, + i, + defaultConstructorMarker.reference) + .object); + } } class $AggregateGroupByDurationRequestType @@ -11559,25 +12692,27 @@ class $AggregateGroupByDurationRequestType @override AggregateGroupByDurationRequest fromRef(jni.JObjectPtr ref) => AggregateGroupByDurationRequest.fromRef(ref); -} -extension $AggregateGroupByDurationRequestArray - on jni.JArray { - AggregateGroupByDurationRequest operator [](int index) { - return (elementType as $AggregateGroupByDurationRequestType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); - void operator []=(int index, AggregateGroupByDurationRequest value) { - (this as jni.JArray)[index] = value; + @override + final superCount = 1; + + @override + int get hashCode => ($AggregateGroupByDurationRequestType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregateGroupByDurationRequestType) && + other is $AggregateGroupByDurationRequestType; } } /// from: androidx.health.connect.client.request.AggregateGroupByPeriodRequest class AggregateGroupByPeriodRequest extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; AggregateGroupByPeriodRequest.fromRef( jni.JObjectPtr ref, @@ -11585,7 +12720,6 @@ 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< ffi.NativeFunction< jni.JniResult Function( @@ -11599,14 +12733,17 @@ class AggregateGroupByPeriodRequest extends jni.JObject { 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) - AggregateGroupByPeriodRequest( - Set> set0, - TimeRangeFilter timeRangeFilter, - jni.JObject period, - Set set1) - : super.fromRef(_ctor(set0.reference, timeRangeFilter.reference, - period.reference, set1.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory AggregateGroupByPeriodRequest( + jni.JSet> set0, + TimeRangeFilter timeRangeFilter, + jni.JObject period, + jni.JSet set1, + ) { + return AggregateGroupByPeriodRequest.fromRef(_ctor(set0.reference, + timeRangeFilter.reference, period.reference, set1.reference) + .object); + } static final _ctor1 = jniLookup< ffi.NativeFunction< @@ -11628,21 +12765,24 @@ 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) - AggregateGroupByPeriodRequest.ctor1( - Set set0, - TimeRangeFilter timeRangeFilter, - jni.JObject period, - Set set1, - int i, - jni.JObject defaultConstructorMarker) - : super.fromRef(_ctor1( - set0.reference, - timeRangeFilter.reference, - period.reference, - set1.reference, - i, - defaultConstructorMarker.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory AggregateGroupByPeriodRequest.ctor1( + jni.JSet set0, + TimeRangeFilter timeRangeFilter, + jni.JObject period, + jni.JSet set1, + int i, + jni.JObject defaultConstructorMarker, + ) { + return AggregateGroupByPeriodRequest.fromRef(_ctor1( + set0.reference, + timeRangeFilter.reference, + period.reference, + set1.reference, + i, + defaultConstructorMarker.reference) + .object); + } } class $AggregateGroupByPeriodRequestType @@ -11656,25 +12796,27 @@ class $AggregateGroupByPeriodRequestType @override AggregateGroupByPeriodRequest fromRef(jni.JObjectPtr ref) => AggregateGroupByPeriodRequest.fromRef(ref); -} -extension $AggregateGroupByPeriodRequestArray - on jni.JArray { - AggregateGroupByPeriodRequest operator [](int index) { - return (elementType as $AggregateGroupByPeriodRequestType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($AggregateGroupByPeriodRequestType).hashCode; - void operator []=(int index, AggregateGroupByPeriodRequest value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregateGroupByPeriodRequestType) && + other is $AggregateGroupByPeriodRequestType; } } /// from: androidx.health.connect.client.request.AggregateRequest class AggregateRequest extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; AggregateRequest.fromRef( jni.JObjectPtr ref, @@ -11682,7 +12824,6 @@ 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< ffi.NativeFunction< jni.JniResult Function( @@ -11694,11 +12835,16 @@ class AggregateRequest extends jni.JObject { ffi.Pointer)>(); /// from: public void (java.util.Set set, androidx.health.connect.client.time.TimeRangeFilter timeRangeFilter, java.util.Set set1) - AggregateRequest(Set> set0, - TimeRangeFilter timeRangeFilter, Set set1) - : super.fromRef( - _ctor(set0.reference, timeRangeFilter.reference, set1.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory AggregateRequest( + jni.JSet> set0, + TimeRangeFilter timeRangeFilter, + jni.JSet set1, + ) { + return AggregateRequest.fromRef( + _ctor(set0.reference, timeRangeFilter.reference, set1.reference) + .object); + } static final _ctor1 = jniLookup< ffi.NativeFunction< @@ -11713,11 +12859,22 @@ class AggregateRequest extends jni.JObject { 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) - AggregateRequest.ctor1(Set set0, TimeRangeFilter timeRangeFilter, - Set set1, int i, jni.JObject defaultConstructorMarker) - : super.fromRef(_ctor1(set0.reference, timeRangeFilter.reference, - set1.reference, i, defaultConstructorMarker.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory AggregateRequest.ctor1( + jni.JSet set0, + TimeRangeFilter timeRangeFilter, + jni.JSet set1, + int i, + jni.JObject defaultConstructorMarker, + ) { + return AggregateRequest.fromRef(_ctor1( + set0.reference, + timeRangeFilter.reference, + set1.reference, + i, + defaultConstructorMarker.reference) + .object); + } } class $AggregateRequestType extends jni.JObjType { @@ -11729,24 +12886,27 @@ class $AggregateRequestType extends jni.JObjType { @override AggregateRequest fromRef(jni.JObjectPtr ref) => AggregateRequest.fromRef(ref); -} -extension $AggregateRequestArray on jni.JArray { - AggregateRequest operator [](int index) { - return (elementType as $AggregateRequestType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; - void operator []=(int index, AggregateRequest value) { - (this as jni.JArray)[index] = value; + @override + int get hashCode => ($AggregateRequestType).hashCode; + + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregateRequestType) && + other is $AggregateRequestType; } } /// from: androidx.health.connect.client.request.ChangesTokenRequest class ChangesTokenRequest extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; ChangesTokenRequest.fromRef( jni.JObjectPtr ref, @@ -11754,7 +12914,6 @@ 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< ffi.NativeFunction< jni.JniResult Function(ffi.Pointer, @@ -11764,8 +12923,14 @@ class ChangesTokenRequest extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public void (java.util.Set set, java.util.Set set1) - ChangesTokenRequest(Set set0, Set set1) - : super.fromRef(_ctor(set0.reference, set1.reference).object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory ChangesTokenRequest( + jni.JSet set0, + jni.JSet set1, + ) { + return ChangesTokenRequest.fromRef( + _ctor(set0.reference, set1.reference).object); + } static final _ctor1 = jniLookup< ffi.NativeFunction< @@ -11779,11 +12944,17 @@ class ChangesTokenRequest extends jni.JObject { int, ffi.Pointer)>(); /// from: public void (java.util.Set set, java.util.Set set1, int i, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - ChangesTokenRequest.ctor1(Set set0, Set set1, int i, - jni.JObject defaultConstructorMarker) - : super.fromRef(_ctor1(set0.reference, set1.reference, i, - defaultConstructorMarker.reference) - .object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory ChangesTokenRequest.ctor1( + jni.JSet set0, + jni.JSet set1, + int i, + jni.JObject defaultConstructorMarker, + ) { + return ChangesTokenRequest.fromRef(_ctor1(set0.reference, set1.reference, i, + defaultConstructorMarker.reference) + .object); + } } class $ChangesTokenRequestType extends jni.JObjType { @@ -11796,40 +12967,41 @@ class $ChangesTokenRequestType extends jni.JObjType { @override ChangesTokenRequest fromRef(jni.JObjectPtr ref) => ChangesTokenRequest.fromRef(ref); -} -extension $ChangesTokenRequestArray on jni.JArray { - ChangesTokenRequest operator [](int index) { - return (elementType as $ChangesTokenRequestType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($ChangesTokenRequestType).hashCode; - void operator []=(int index, ChangesTokenRequest value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($ChangesTokenRequestType) && + other is $ChangesTokenRequestType; } } /// from: androidx.health.connect.client.request.ReadRecordsRequest -class ReadRecordsRequest extends jni.JObject { - late final jni.JObjType? _$type; +class ReadRecordsRequest<$T extends jni.JObject> extends jni.JObject { @override - jni.JObjType get $type => _$type ??= type( - $T, - ); + late final jni.JObjType> $type = type(T); - final jni.JObjType $T; + final jni.JObjType<$T> T; ReadRecordsRequest.fromRef( - this.$T, + this.T, jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. - static $ReadRecordsRequestType type( - jni.JObjType $T, + static $ReadRecordsRequestType<$T> type<$T extends jni.JObject>( + jni.JObjType<$T> T, ) { return $ReadRecordsRequestType( - $T, + T, ); } @@ -11847,17 +13019,22 @@ class ReadRecordsRequest extends jni.JObject { 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) - ReadRecordsRequest( - this.$T, - jni.JObject kClass, - TimeRangeFilter timeRangeFilter, - Set set0, - bool z, - int i, - jni.JString string) - : super.fromRef(_ctor(kClass.reference, timeRangeFilter.reference, - set0.reference, z ? 1 : 0, i, string.reference) + /// The returned object must be deleted after use, by calling the `delete` method. + factory ReadRecordsRequest( + jni.JObject kClass, + TimeRangeFilter timeRangeFilter, + jni.JSet set0, + bool z, + int i, + jni.JString string, { + required jni.JObjType<$T> T, + }) { + return ReadRecordsRequest.fromRef( + T, + _ctor(kClass.reference, timeRangeFilter.reference, set0.reference, + z ? 1 : 0, i, string.reference) .object); + } static final _ctor1 = jniLookup< ffi.NativeFunction< @@ -11882,17 +13059,21 @@ class ReadRecordsRequest 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) - ReadRecordsRequest.ctor1( - this.$T, - jni.JObject kClass, - TimeRangeFilter timeRangeFilter, - Set set0, - bool z, - int i, - jni.JString string, - int i1, - jni.JObject defaultConstructorMarker) - : super.fromRef(_ctor1( + /// The returned object must be deleted after use, by calling the `delete` method. + factory ReadRecordsRequest.ctor1( + jni.JObject kClass, + TimeRangeFilter timeRangeFilter, + jni.JSet set0, + bool z, + int i, + jni.JString string, + int i1, + jni.JObject defaultConstructorMarker, { + required jni.JObjType<$T> T, + }) { + return ReadRecordsRequest.fromRef( + T, + _ctor1( kClass.reference, timeRangeFilter.reference, set0.reference, @@ -11902,6 +13083,7 @@ class ReadRecordsRequest extends jni.JObject { i1, defaultConstructorMarker.reference) .object); + } static final _equals1 = jniLookup< ffi.NativeFunction< @@ -11912,8 +13094,11 @@ class ReadRecordsRequest extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public boolean equals(java.lang.Object object) - bool equals1(jni.JObject object) => - _equals1(reference, object.reference).boolean; + bool equals1( + jni.JObject object, + ) { + return _equals1(reference, object.reference).boolean; + } static final _hashCode1 = jniLookup< ffi.NativeFunction< @@ -11922,15 +13107,17 @@ class ReadRecordsRequest extends jni.JObject { .asFunction)>(); /// from: public int hashCode() - int hashCode1() => _hashCode1(reference).integer; + int hashCode1() { + return _hashCode1(reference).integer; + } } -class $ReadRecordsRequestType - extends jni.JObjType> { - final jni.JObjType $T; +class $ReadRecordsRequestType<$T extends jni.JObject> + extends jni.JObjType> { + final jni.JObjType<$T> T; const $ReadRecordsRequestType( - this.$T, + this.T, ); @override @@ -11938,27 +13125,30 @@ class $ReadRecordsRequestType r"Landroidx/health/connect/client/request/ReadRecordsRequest;"; @override - ReadRecordsRequest fromRef(jni.JObjectPtr ref) => - ReadRecordsRequest.fromRef($T, ref); -} + ReadRecordsRequest<$T> fromRef(jni.JObjectPtr ref) => + ReadRecordsRequest.fromRef(T, ref); -extension $ReadRecordsRequestArray - on jni.JArray> { - ReadRecordsRequest operator [](int index) { - return (elementType as $ReadRecordsRequestType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; - void operator []=(int index, ReadRecordsRequest value) { - (this as jni.JArray)[index] = value; + @override + int get hashCode => Object.hash($ReadRecordsRequestType, T); + + @override + bool operator ==(Object other) { + return other.runtimeType == ($ReadRecordsRequestType<$T>) && + other is $ReadRecordsRequestType<$T> && + T == other.T; } } /// from: androidx.health.connect.client.aggregate.AggregationResult class AggregationResult extends jni.JObject { - late final jni.JObjType? _$type; @override - jni.JObjType get $type => _$type ??= type; + late final jni.JObjType $type = type; AggregationResult.fromRef( jni.JObjectPtr ref, @@ -11966,7 +13156,6 @@ 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< ffi.NativeFunction< jni.JniResult Function( @@ -11978,9 +13167,15 @@ class AggregationResult extends jni.JObject { ffi.Pointer)>(); /// from: public void (java.util.Map map, java.util.Map map1, java.util.Set set) - AggregationResult(jni.JObject map, jni.JObject map1, Set set0) - : super.fromRef( - _ctor(map.reference, map1.reference, set0.reference).object); + /// The returned object must be deleted after use, by calling the `delete` method. + factory AggregationResult( + jni.JMap map, + jni.JMap map1, + jni.JSet set0, + ) { + return AggregationResult.fromRef( + _ctor(map.reference, map1.reference, set0.reference).object); + } static final _getDataOrigins = jniLookup< ffi.NativeFunction< @@ -11990,8 +13185,10 @@ class AggregationResult extends jni.JObject { /// from: public final java.util.Set getDataOrigins() /// The returned object must be deleted after use, by calling the `delete` method. - Set getDataOrigins() => const $SetType(jni.JObjectType()) - .fromRef(_getDataOrigins(reference).object); + jni.JSet getDataOrigins() { + return const jni.JSetType(jni.JObjectType()) + .fromRef(_getDataOrigins(reference).object); + } static final _hasMetric = jniLookup< ffi.NativeFunction< @@ -12002,8 +13199,11 @@ class AggregationResult extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final boolean hasMetric(androidx.health.connect.client.aggregate.AggregateMetric aggregateMetric) - bool hasMetric(AggregateMetric aggregateMetric) => - _hasMetric(reference, aggregateMetric.reference).boolean; + bool hasMetric( + AggregateMetric aggregateMetric, + ) { + return _hasMetric(reference, aggregateMetric.reference).boolean; + } static final _contains = jniLookup< ffi.NativeFunction< @@ -12014,8 +13214,11 @@ class AggregationResult extends jni.JObject { ffi.Pointer, ffi.Pointer)>(); /// from: public final boolean contains(androidx.health.connect.client.aggregate.AggregateMetric aggregateMetric) - bool contains(AggregateMetric aggregateMetric) => - _contains(reference, aggregateMetric.reference).boolean; + bool contains( + AggregateMetric aggregateMetric, + ) { + return _contains(reference, aggregateMetric.reference).boolean; + } static final _getMetric = jniLookup< ffi.NativeFunction< @@ -12027,9 +13230,15 @@ class AggregationResult extends jni.JObject { /// 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. - T getMetric( - jni.JObjType $T, AggregateMetric aggregateMetric) => - $T.fromRef(_getMetric(reference, aggregateMetric.reference).object); + $T getMetric<$T extends jni.JObject>( + AggregateMetric<$T> aggregateMetric, { + jni.JObjType<$T>? T, + }) { + T ??= jni.lowestCommonSuperType([ + (aggregateMetric.$type as $AggregateMetricType).T, + ]) as jni.JObjType<$T>; + return T.fromRef(_getMetric(reference, aggregateMetric.reference).object); + } static final _get0 = jniLookup< ffi.NativeFunction< @@ -12041,9 +13250,15 @@ class AggregationResult extends jni.JObject { /// 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. - T get0( - jni.JObjType $T, AggregateMetric aggregateMetric) => - $T.fromRef(_get0(reference, aggregateMetric.reference).object); + $T get0<$T extends jni.JObject>( + AggregateMetric<$T> aggregateMetric, { + jni.JObjType<$T>? T, + }) { + T ??= jni.lowestCommonSuperType([ + (aggregateMetric.$type as $AggregateMetricType).T, + ]) as jni.JObjType<$T>; + return T.fromRef(_get0(reference, aggregateMetric.reference).object); + } } class $AggregationResultType extends jni.JObjType { @@ -12056,40 +13271,41 @@ class $AggregationResultType extends jni.JObjType { @override AggregationResult fromRef(jni.JObjectPtr ref) => AggregationResult.fromRef(ref); -} -extension $AggregationResultArray on jni.JArray { - AggregationResult operator [](int index) { - return (elementType as $AggregationResultType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => ($AggregationResultType).hashCode; - void operator []=(int index, AggregationResult value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregationResultType) && + other is $AggregationResultType; } } /// from: androidx.health.connect.client.aggregate.AggregateMetric -class AggregateMetric extends jni.JObject { - late final jni.JObjType? _$type; +class AggregateMetric<$T extends jni.JObject> extends jni.JObject { @override - jni.JObjType get $type => _$type ??= type( - $T, - ); + late final jni.JObjType> $type = type(T); - final jni.JObjType $T; + final jni.JObjType<$T> T; AggregateMetric.fromRef( - this.$T, + this.T, jni.JObjectPtr ref, ) : super.fromRef(ref); /// The type which includes information such as the signature of this class. - static $AggregateMetricType type( - jni.JObjType $T, + static $AggregateMetricType<$T> type<$T extends jni.JObject>( + jni.JObjType<$T> T, ) { return $AggregateMetricType( - $T, + T, ); } @@ -12115,19 +13331,28 @@ class AggregateMetric extends jni.JObject { 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) - AggregateMetric(this.$T, jni.JObject converter, jni.JString string, - jni.JObject aggregationType, jni.JString string1) - : super.fromRef(_ctor(converter.reference, string.reference, - aggregationType.reference, string1.reference) + /// The returned object must be deleted after use, by calling the `delete` method. + factory AggregateMetric( + jni.JObject converter, + jni.JString string, + jni.JObject aggregationType, + jni.JString string1, { + required jni.JObjType<$T> T, + }) { + return AggregateMetric.fromRef( + T, + _ctor(converter.reference, string.reference, aggregationType.reference, + string1.reference) .object); + } } -class $AggregateMetricType - extends jni.JObjType> { - final jni.JObjType $T; +class $AggregateMetricType<$T extends jni.JObject> + extends jni.JObjType> { + final jni.JObjType<$T> T; const $AggregateMetricType( - this.$T, + this.T, ); @override @@ -12135,18 +13360,22 @@ class $AggregateMetricType r"Landroidx/health/connect/client/aggregate/AggregateMetric;"; @override - AggregateMetric fromRef(jni.JObjectPtr ref) => - AggregateMetric.fromRef($T, ref); -} + AggregateMetric<$T> fromRef(jni.JObjectPtr ref) => + AggregateMetric.fromRef(T, ref); -extension $AggregateMetricArray - on jni.JArray> { - AggregateMetric operator [](int index) { - return (elementType as $AggregateMetricType) - .fromRef(elementAt(index, jni.JniCallType.objectType).object); - } + @override + jni.JObjType get superType => const jni.JObjectType(); + + @override + final superCount = 1; + + @override + int get hashCode => Object.hash($AggregateMetricType, T); - void operator []=(int index, AggregateMetric value) { - (this as jni.JArray)[index] = value; + @override + bool operator ==(Object other) { + return other.runtimeType == ($AggregateMetricType<$T>) && + other is $AggregateMetricType<$T> && + T == other.T; } } diff --git a/experimental/pedometer/pubspec.yaml b/experimental/pedometer/pubspec.yaml index f7298593e..3a1f9687d 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.3.0 + jni: ^0.5.0 ffi: ^2.0.1 dev_dependencies: ffigen: ^8.0.0 - jnigen: ^0.4.0 + jnigen: ^0.5.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 39b70bd8f..c0713af53 100644 --- a/experimental/pedometer/src/health_connect/dartjni.h +++ b/experimental/pedometer/src/health_connect/dartjni.h @@ -39,6 +39,66 @@ #define __ENVP_CAST (void**) #endif +/// Locking functions for windows and pthread. + +#if defined _WIN32 +#include + +typedef CRITICAL_SECTION MutexLock; + +static inline void init_lock(MutexLock* lock) { + InitializeCriticalSection(lock); +} + +static inline void acquire_lock(MutexLock* lock) { + EnterCriticalSection(lock); +} + +static inline void release_lock(MutexLock* lock) { + LeaveCriticalSection(lock); +} + +static inline void _destroyLock(MutexLock* lock) { + DeleteCriticalSection(lock); +} + +#elif defined __DARWIN__ || defined __LINUX__ || defined __ANDROID__ || \ + defined __GNUC__ +#include + +typedef pthread_mutex_t MutexLock; + +static inline void init_lock(MutexLock* lock) { + pthread_mutex_init(lock, NULL); +} + +static inline void acquire_lock(MutexLock* lock) { + pthread_mutex_lock(lock); +} + +static inline void release_lock(MutexLock* lock) { + pthread_mutex_unlock(lock); +} + +static inline void _destroyLock(MutexLock* lock) { + pthread_mutex_destroy(lock); +} + +#else + +#error "No locking support; Possibly unsupported platform" + +#endif + +typedef struct JniLocks { + MutexLock classLoadingLock; + MutexLock methodLoadingLock; + MutexLock fieldLoadingLock; +} JniLocks; + +/// Represents the error when dart-jni layer has already spawned singleton VM. +#define DART_JNI_SINGLETON_EXISTS (-99); + /// Stores the global state of the JNI. typedef struct JniContext { JavaVM* jvm; @@ -46,13 +106,14 @@ typedef struct JniContext { jmethodID loadClassMethod; jobject currentActivity; jobject appContext; + JniLocks locks; } JniContext; // jniEnv for this thread, used by inline functions in this header, // therefore declared as extern. extern thread_local JNIEnv* jniEnv; -extern JniContext jni; +extern JniContext* jni; /// Types used by JNI API to distinguish between primitive types. enum JniType { @@ -73,19 +134,19 @@ enum JniType { /// If [exception] is null, it means the result is valid. /// It's assumed that the caller knows the expected type in [result]. typedef struct JniResult { - jvalue result; + jvalue value; jthrowable exception; } JniResult; /// Similar to [JniResult] but for class lookups. typedef struct JniClassLookupResult { - jclass classRef; + jclass value; jthrowable exception; } JniClassLookupResult; /// Similar to [JniResult] but for method/field ID lookups. typedef struct JniPointerResult { - void* id; + const void* value; jthrowable exception; } JniPointerResult; @@ -102,7 +163,7 @@ typedef struct JniExceptionDetails { /// Flutter embedding checks for pending JNI exceptions before an FFI transition, which requires us /// to check for and clear the exception before returning to dart code, which requires these functions /// to return result types. -typedef struct JniAccessors { +typedef struct JniAccessorsStruct { JniClassLookupResult (*getClass)(char* internalName); JniPointerResult (*getFieldID)(jclass cls, char* fieldName, char* signature); JniPointerResult (*getStaticFieldID)(jclass cls, @@ -115,10 +176,10 @@ typedef struct JniAccessors { char* methodName, char* signature); JniResult (*newObject)(jclass cls, jmethodID ctor, jvalue* args); - JniPointerResult (*newPrimitiveArray)(jsize length, int type); - JniPointerResult (*newObjectArray)(jsize length, - jclass elementClass, - jobject initialElement); + JniResult (*newPrimitiveArray)(jsize length, int type); + JniResult (*newObjectArray)(jsize length, + jclass elementClass, + jobject initialElement); JniResult (*getArrayElement)(jarray array, int index, int type); JniResult (*callMethod)(jobject obj, jmethodID methodID, @@ -131,62 +192,81 @@ typedef struct JniAccessors { JniResult (*getField)(jobject obj, jfieldID fieldID, int callType); JniResult (*getStaticField)(jclass cls, jfieldID fieldID, int callType); JniExceptionDetails (*getExceptionDetails)(jthrowable exception); -} JniAccessors; +} JniAccessorsStruct; -FFI_PLUGIN_EXPORT JniAccessors* GetAccessors(); +FFI_PLUGIN_EXPORT JniAccessorsStruct* GetAccessors(); FFI_PLUGIN_EXPORT JavaVM* GetJavaVM(void); FFI_PLUGIN_EXPORT JNIEnv* GetJniEnv(void); -FFI_PLUGIN_EXPORT JNIEnv* SpawnJvm(JavaVMInitArgs* args); +/// Spawn a JVM with given arguments. +/// +/// Returns JNI_OK on success, and one of the documented JNI error codes on +/// failure. It returns DART_JNI_SINGLETON_EXISTS if an attempt to spawn multiple +/// JVMs is made, even if the underlying API potentially supports multiple VMs. +FFI_PLUGIN_EXPORT int SpawnJvm(JavaVMInitArgs* args); -FFI_PLUGIN_EXPORT jclass LoadClass(const char* name); +/// Load class through platform-specific mechanism. +/// +/// Currently uses application classloader on android, +/// and JNIEnv->FindClass on other platforms. +FFI_PLUGIN_EXPORT jclass FindClass(const char* name); +/// Returns Application classLoader (on Android), +/// which can be used to load application and platform classes. +/// +/// On other platforms, NULL is returned. FFI_PLUGIN_EXPORT jobject GetClassLoader(void); +/// Returns application context on Android. +/// +/// On other platforms, NULL is returned. FFI_PLUGIN_EXPORT jobject GetApplicationContext(void); +/// Returns current activity of the app on Android. FFI_PLUGIN_EXPORT jobject GetCurrentActivity(void); -// Migration note: Below inline functions are required by C bindings, but can be moved to dartjni.c -// once migration to pure dart bindings is complete. - -// `static inline` because `inline` doesn't work, it may still not -// inline the function in which case a linker error may be produced. -// -// There has to be a better way to do this. Either to force inlining on target -// platforms, or just leave it as normal function. +static inline void attach_thread() { + if (jniEnv == NULL) { + (*jni->jvm)->AttachCurrentThread(jni->jvm, __ENVP_CAST & jniEnv, NULL); + } +} -static inline void __load_class_into(jclass* cls, const char* name) { +/// Load class into [cls] using platform specific mechanism +static inline void load_class_platform(jclass* cls, const char* name) { #ifdef __ANDROID__ jstring className = (*jniEnv)->NewStringUTF(jniEnv, name); - *cls = (*jniEnv)->CallObjectMethod(jniEnv, jni.classLoader, - jni.loadClassMethod, className); + *cls = (*jniEnv)->CallObjectMethod(jniEnv, jni->classLoader, + jni->loadClassMethod, className); (*jniEnv)->DeleteLocalRef(jniEnv, className); #else *cls = (*jniEnv)->FindClass(jniEnv, name); #endif } -static inline void load_class(jclass* cls, const char* name) { +static inline void load_class_local_ref(jclass* cls, const char* name) { if (*cls == NULL) { - __load_class_into(cls, name); + acquire_lock(&jni->locks.classLoadingLock); + if (*cls == NULL) { + load_class_platform(cls, name); + } + release_lock(&jni->locks.classLoadingLock); } } -static inline void load_class_gr(jclass* cls, const char* name) { +static inline void load_class_global_ref(jclass* cls, const char* name) { if (*cls == NULL) { - jclass tmp; - __load_class_into(&tmp, name); - *cls = (*jniEnv)->NewGlobalRef(jniEnv, tmp); - (*jniEnv)->DeleteLocalRef(jniEnv, tmp); - } -} - -static inline void attach_thread() { - if (jniEnv == NULL) { - (*jni.jvm)->AttachCurrentThread(jni.jvm, __ENVP_CAST & jniEnv, NULL); + jclass tmp = NULL; + acquire_lock(&jni->locks.classLoadingLock); + if (*cls == NULL) { + load_class_platform(&tmp, name); + if (!(*jniEnv)->ExceptionCheck(jniEnv)) { + *cls = (*jniEnv)->NewGlobalRef(jniEnv, tmp); + (*jniEnv)->DeleteLocalRef(jniEnv, tmp); + } + } + release_lock(&jni->locks.classLoadingLock); } } @@ -195,7 +275,11 @@ static inline void load_method(jclass cls, const char* name, const char* sig) { if (*res == NULL) { - *res = (*jniEnv)->GetMethodID(jniEnv, cls, name, sig); + acquire_lock(&jni->locks.methodLoadingLock); + if (*res == NULL) { + *res = (*jniEnv)->GetMethodID(jniEnv, cls, name, sig); + } + release_lock(&jni->locks.methodLoadingLock); } } @@ -204,7 +288,11 @@ static inline void load_static_method(jclass cls, const char* name, const char* sig) { if (*res == NULL) { - *res = (*jniEnv)->GetStaticMethodID(jniEnv, cls, name, sig); + acquire_lock(&jni->locks.methodLoadingLock); + if (*res == NULL) { + *res = (*jniEnv)->GetStaticMethodID(jniEnv, cls, name, sig); + } + release_lock(&jni->locks.methodLoadingLock); } } @@ -213,7 +301,11 @@ static inline void load_field(jclass cls, const char* name, const char* sig) { if (*res == NULL) { - *res = (*jniEnv)->GetFieldID(jniEnv, cls, name, sig); + acquire_lock(&jni->locks.fieldLoadingLock); + if (*res == NULL) { + *res = (*jniEnv)->GetFieldID(jniEnv, cls, name, sig); + } + release_lock(&jni->locks.fieldLoadingLock); } } @@ -222,7 +314,11 @@ static inline void load_static_field(jclass cls, const char* name, const char* sig) { if (*res == NULL) { - *res = (*jniEnv)->GetStaticFieldID(jniEnv, cls, name, sig); + acquire_lock(&jni->locks.fieldLoadingLock); + if (*res == NULL) { + *res = (*jniEnv)->GetStaticFieldID(jniEnv, cls, name, sig); + } + release_lock(&jni->locks.fieldLoadingLock); } } @@ -234,17 +330,18 @@ static inline jobject to_global_ref(jobject ref) { // These functions are useful for C+Dart bindings, and not required for pure dart bindings. -FFI_PLUGIN_EXPORT JniContext GetJniContext(); +FFI_PLUGIN_EXPORT JniContext* GetJniContextPtr(); + /// For use by jni_gen's generated code /// don't use these. // these 2 fn ptr vars will be defined by generated code library -extern JniContext (*context_getter)(void); +extern JniContext* (*context_getter)(void); extern JNIEnv* (*env_getter)(void); // this function will be exported by generated code library // it will set above 2 variables. -FFI_PLUGIN_EXPORT void setJniGetters(struct JniContext (*cg)(void), +FFI_PLUGIN_EXPORT void setJniGetters(struct JniContext* (*cg)(void), JNIEnv* (*eg)(void)); static inline void load_env() { @@ -261,6 +358,15 @@ static inline jthrowable check_exception() { return to_global_ref(exception); } +static inline JniResult to_global_ref_result(jobject ref) { + JniResult result; + result.exception = check_exception(); + if (result.exception == NULL) { + result.value.l = to_global_ref(ref); + } + return result; +} + FFI_PLUGIN_EXPORT intptr_t InitDartApiDL(void* data); JNIEXPORT void JNICALL diff --git a/experimental/pedometer/src/health_connect/health_connect.c b/experimental/pedometer/src/health_connect/health_connect.c index 7dec6a93f..11cc63f2f 100644 --- a/experimental/pedometer/src/health_connect/health_connect.c +++ b/experimental/pedometer/src/health_connect/health_connect.c @@ -5,12 +5,12 @@ #include "jni.h" thread_local JNIEnv* jniEnv; -JniContext jni; +JniContext* jni; -JniContext (*context_getter)(void); +JniContext* (*context_getter)(void); JNIEnv* (*env_getter)(void); -void setJniGetters(JniContext (*cg)(void), JNIEnv* (*eg)(void)) { +void setJniGetters(JniContext* (*cg)(void), JNIEnv* (*eg)(void)) { context_getter = cg; env_getter = eg; } @@ -22,20 +22,19 @@ jmethodID _m_HealthConnectClient__getPermissionController = NULL; FFI_PLUGIN_EXPORT JniResult HealthConnectClient__getPermissionController(jobject self_) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_HealthConnectClient, &_m_HealthConnectClient__getPermissionController, "getPermissionController", "()Landroidx/health/connect/client/PermissionController;"); if (_m_HealthConnectClient__getPermissionController == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__getPermissionController); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__insertRecords = NULL; @@ -44,20 +43,19 @@ JniResult HealthConnectClient__insertRecords(jobject self_, jobject list, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_HealthConnectClient, &_m_HealthConnectClient__insertRecords, "insertRecords", "(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__insertRecords == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__insertRecords, list, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__updateRecords = NULL; @@ -66,20 +64,19 @@ JniResult HealthConnectClient__updateRecords(jobject self_, jobject list, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_HealthConnectClient, &_m_HealthConnectClient__updateRecords, "updateRecords", "(Ljava/util/List;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__updateRecords == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__updateRecords, list, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__deleteRecords = NULL; @@ -90,21 +87,20 @@ JniResult HealthConnectClient__deleteRecords(jobject self_, jobject list1, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_HealthConnectClient, &_m_HealthConnectClient__deleteRecords, "deleteRecords", "(Lkotlin/reflect/KClass;Ljava/util/List;Ljava/util/List;Lkotlin/" "coroutines/Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__deleteRecords == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__deleteRecords, kClass, list, list1, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__deleteRecords1 = NULL; @@ -114,22 +110,21 @@ JniResult HealthConnectClient__deleteRecords1(jobject self_, jobject timeRangeFilter, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_HealthConnectClient, &_m_HealthConnectClient__deleteRecords1, "deleteRecords", "(Lkotlin/reflect/KClass;Landroidx/health/connect/client/time/" "TimeRangeFilter;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__deleteRecords1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__deleteRecords1, kClass, timeRangeFilter, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__readRecord = NULL; @@ -139,21 +134,20 @@ JniResult HealthConnectClient__readRecord(jobject self_, jobject string, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_HealthConnectClient, &_m_HealthConnectClient__readRecord, "readRecord", "(Lkotlin/reflect/KClass;Ljava/lang/String;Lkotlin/coroutines/" "Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__readRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__readRecord, kClass, string, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__readRecords = NULL; @@ -162,22 +156,21 @@ JniResult HealthConnectClient__readRecords(jobject self_, jobject readRecordsRequest, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_HealthConnectClient, &_m_HealthConnectClient__readRecords, "readRecords", "(Landroidx/health/connect/client/request/ReadRecordsRequest;Lkotlin/" "coroutines/Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__readRecords == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__readRecords, readRecordsRequest, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__aggregate = NULL; @@ -186,21 +179,20 @@ JniResult HealthConnectClient__aggregate(jobject self_, jobject aggregateRequest, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_HealthConnectClient, &_m_HealthConnectClient__aggregate, "aggregate", "(Landroidx/health/connect/client/request/AggregateRequest;Lkotlin/" "coroutines/Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__aggregate == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__aggregate, aggregateRequest, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__aggregateGroupByDuration = NULL; @@ -210,10 +202,10 @@ JniResult HealthConnectClient__aggregateGroupByDuration( jobject aggregateGroupByDurationRequest, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_HealthConnectClient, &_m_HealthConnectClient__aggregateGroupByDuration, "aggregateGroupByDuration", @@ -221,12 +213,11 @@ JniResult HealthConnectClient__aggregateGroupByDuration( "AggregateGroupByDurationRequest;Lkotlin/coroutines/" "Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__aggregateGroupByDuration == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__aggregateGroupByDuration, aggregateGroupByDurationRequest, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__aggregateGroupByPeriod = NULL; @@ -236,10 +227,10 @@ JniResult HealthConnectClient__aggregateGroupByPeriod( jobject aggregateGroupByPeriodRequest, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_HealthConnectClient, &_m_HealthConnectClient__aggregateGroupByPeriod, "aggregateGroupByPeriod", @@ -247,12 +238,11 @@ JniResult HealthConnectClient__aggregateGroupByPeriod( "AggregateGroupByPeriodRequest;Lkotlin/coroutines/" "Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__aggregateGroupByPeriod == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__aggregateGroupByPeriod, aggregateGroupByPeriodRequest, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__getChangesToken = NULL; @@ -261,22 +251,70 @@ JniResult HealthConnectClient__getChangesToken(jobject self_, jobject changesTokenRequest, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_HealthConnectClient, &_m_HealthConnectClient__getChangesToken, "getChangesToken", "(Landroidx/health/connect/client/request/ChangesTokenRequest;Lkotlin/" "coroutines/Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__getChangesToken == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__getChangesToken, changesTokenRequest, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); +} + +jmethodID _m_HealthConnectClient__registerForDataNotifications = NULL; +FFI_PLUGIN_EXPORT +JniResult HealthConnectClient__registerForDataNotifications( + jobject self_, + jobject string, + jobject iterable, + jobject continuation) { + load_env(); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); + if (_c_HealthConnectClient == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method(_c_HealthConnectClient, + &_m_HealthConnectClient__registerForDataNotifications, + "registerForDataNotifications", + "(Ljava/lang/String;Ljava/lang/Iterable;Lkotlin/coroutines/" + "Continuation;)Ljava/lang/Object;"); + if (_m_HealthConnectClient__registerForDataNotifications == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, _m_HealthConnectClient__registerForDataNotifications, + string, iterable, continuation); + return to_global_ref_result(_result); +} + +jmethodID _m_HealthConnectClient__unregisterFromDataNotifications = NULL; +FFI_PLUGIN_EXPORT +JniResult HealthConnectClient__unregisterFromDataNotifications( + jobject self_, + jobject string, + jobject continuation) { + load_env(); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); + if (_c_HealthConnectClient == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_method( + _c_HealthConnectClient, + &_m_HealthConnectClient__unregisterFromDataNotifications, + "unregisterFromDataNotifications", + "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"); + if (_m_HealthConnectClient__unregisterFromDataNotifications == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallObjectMethod( + jniEnv, self_, _m_HealthConnectClient__unregisterFromDataNotifications, + string, continuation); + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__getChanges = NULL; @@ -285,164 +323,137 @@ JniResult HealthConnectClient__getChanges(jobject self_, jobject string, jobject continuation) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_HealthConnectClient, &_m_HealthConnectClient__getChanges, "getChanges", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"); if (_m_HealthConnectClient__getChanges == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_HealthConnectClient__getChanges, string, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__isAvailable = NULL; FFI_PLUGIN_EXPORT JniResult HealthConnectClient__isAvailable(jobject context, jobject list) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_HealthConnectClient, &_m_HealthConnectClient__isAvailable, "isAvailable", "(Landroid/content/Context;Ljava/util/List;)Z"); if (_m_HealthConnectClient__isAvailable == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallStaticBooleanMethod( jniEnv, _c_HealthConnectClient, _m_HealthConnectClient__isAvailable, context, list); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_HealthConnectClient__getOrCreate = NULL; FFI_PLUGIN_EXPORT JniResult HealthConnectClient__getOrCreate(jobject context, jobject list) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_HealthConnectClient, &_m_HealthConnectClient__getOrCreate, "getOrCreate", "(Landroid/content/Context;Ljava/util/List;)Landroidx/" "health/connect/client/HealthConnectClient;"); if (_m_HealthConnectClient__getOrCreate == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_HealthConnectClient, _m_HealthConnectClient__getOrCreate, context, list); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_HealthConnectClient__isAvailable1 = NULL; FFI_PLUGIN_EXPORT JniResult HealthConnectClient__isAvailable1(jobject context) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_HealthConnectClient, &_m_HealthConnectClient__isAvailable1, "isAvailable", "(Landroid/content/Context;)Z"); if (_m_HealthConnectClient__isAvailable1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallStaticBooleanMethod( jniEnv, _c_HealthConnectClient, _m_HealthConnectClient__isAvailable1, context); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_HealthConnectClient__getOrCreate1 = NULL; FFI_PLUGIN_EXPORT JniResult HealthConnectClient__getOrCreate1(jobject context) { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_HealthConnectClient, &_m_HealthConnectClient__getOrCreate1, "getOrCreate", "(Landroid/content/Context;)Landroidx/health/connect/" "client/HealthConnectClient;"); if (_m_HealthConnectClient__getOrCreate1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_HealthConnectClient, _m_HealthConnectClient__getOrCreate1, context); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jfieldID _f_HealthConnectClient__Companion = NULL; FFI_PLUGIN_EXPORT JniResult get_HealthConnectClient__Companion() { load_env(); - load_class_gr(&_c_HealthConnectClient, - "androidx/health/connect/client/HealthConnectClient"); + load_class_global_ref(&_c_HealthConnectClient, + "androidx/health/connect/client/HealthConnectClient"); if (_c_HealthConnectClient == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field( _c_HealthConnectClient, &_f_HealthConnectClient__Companion, "Companion", "Landroidx/health/connect/client/HealthConnectClient$Companion;"); - jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField( - jniEnv, _c_HealthConnectClient, _f_HealthConnectClient__Companion)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_HealthConnectClient, _f_HealthConnectClient__Companion); + return to_global_ref_result(_result); } // androidx.health.connect.client.PermissionController jclass _c_PermissionController = NULL; -jmethodID _m_PermissionController__createRequestPermissionActivityContract = - NULL; -FFI_PLUGIN_EXPORT -JniResult PermissionController__createRequestPermissionActivityContract( - jobject self_) { - load_env(); - load_class_gr(&_c_PermissionController, - "androidx/health/connect/client/PermissionController"); - if (_c_PermissionController == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_PermissionController, - &_m_PermissionController__createRequestPermissionActivityContract, - "createRequestPermissionActivityContract", - "()Landroidx/activity/result/contract/ActivityResultContract;"); - if (_m_PermissionController__createRequestPermissionActivityContract == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallObjectMethod( - jniEnv, self_, - _m_PermissionController__createRequestPermissionActivityContract); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - jmethodID _m_PermissionController__getGrantedPermissions = NULL; FFI_PLUGIN_EXPORT JniResult PermissionController__getGrantedPermissions(jobject self_, jobject set, jobject continuation) { load_env(); - load_class_gr(&_c_PermissionController, - "androidx/health/connect/client/PermissionController"); + load_class_global_ref(&_c_PermissionController, + "androidx/health/connect/client/PermissionController"); if (_c_PermissionController == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_PermissionController, &_m_PermissionController__getGrantedPermissions, "getGrantedPermissions", "(Ljava/util/Set;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"); if (_m_PermissionController__getGrantedPermissions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_PermissionController__getGrantedPermissions, set, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_PermissionController__revokeAllPermissions = NULL; @@ -450,21 +461,81 @@ FFI_PLUGIN_EXPORT JniResult PermissionController__revokeAllPermissions(jobject self_, jobject continuation) { load_env(); - load_class_gr(&_c_PermissionController, - "androidx/health/connect/client/PermissionController"); + load_class_global_ref(&_c_PermissionController, + "androidx/health/connect/client/PermissionController"); if (_c_PermissionController == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_PermissionController, &_m_PermissionController__revokeAllPermissions, "revokeAllPermissions", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;"); if (_m_PermissionController__revokeAllPermissions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_PermissionController__revokeAllPermissions, continuation); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); +} + +jmethodID _m_PermissionController__createRequestPermissionResultContract = NULL; +FFI_PLUGIN_EXPORT +JniResult PermissionController__createRequestPermissionResultContract( + jobject string) { + load_env(); + load_class_global_ref(&_c_PermissionController, + "androidx/health/connect/client/PermissionController"); + if (_c_PermissionController == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_method( + _c_PermissionController, + &_m_PermissionController__createRequestPermissionResultContract, + "createRequestPermissionResultContract", + "(Ljava/lang/String;)Landroidx/activity/result/contract/" + "ActivityResultContract;"); + if (_m_PermissionController__createRequestPermissionResultContract == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallStaticObjectMethod( + jniEnv, _c_PermissionController, + _m_PermissionController__createRequestPermissionResultContract, string); + return to_global_ref_result(_result); +} + +jmethodID _m_PermissionController__createRequestPermissionResultContract1 = + NULL; +FFI_PLUGIN_EXPORT +JniResult PermissionController__createRequestPermissionResultContract1() { + load_env(); + load_class_global_ref(&_c_PermissionController, + "androidx/health/connect/client/PermissionController"); + if (_c_PermissionController == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_method( + _c_PermissionController, + &_m_PermissionController__createRequestPermissionResultContract1, + "createRequestPermissionResultContract", + "()Landroidx/activity/result/contract/ActivityResultContract;"); + if (_m_PermissionController__createRequestPermissionResultContract1 == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + jobject _result = (*jniEnv)->CallStaticObjectMethod( + jniEnv, _c_PermissionController, + _m_PermissionController__createRequestPermissionResultContract1); + return to_global_ref_result(_result); +} + +jfieldID _f_PermissionController__Companion = NULL; +FFI_PLUGIN_EXPORT +JniResult get_PermissionController__Companion() { + load_env(); + load_class_global_ref(&_c_PermissionController, + "androidx/health/connect/client/PermissionController"); + if (_c_PermissionController == NULL) + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + load_static_field( + _c_PermissionController, &_f_PermissionController__Companion, "Companion", + "Landroidx/health/connect/client/PermissionController$Companion;"); + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_PermissionController, _f_PermissionController__Companion); + return to_global_ref_result(_result); } // androidx.health.connect.client.records.StepsRecord @@ -479,21 +550,20 @@ JniResult StepsRecord__ctor(int64_t j, jobject zoneOffset1, jobject metadata) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__ctor, "", "(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) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_StepsRecord, _m_StepsRecord__ctor, j, instant, zoneOffset, instant1, zoneOffset1, metadata); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_StepsRecord__ctor1 = NULL; @@ -507,193 +577,187 @@ JniResult StepsRecord__ctor1(int64_t j, int32_t i, jobject defaultConstructorMarker) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_StepsRecord, &_m_StepsRecord__ctor1, "", "(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) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_StepsRecord, _m_StepsRecord__ctor1, j, instant, zoneOffset, instant1, zoneOffset1, metadata, i, defaultConstructorMarker); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_StepsRecord__getCount = NULL; FFI_PLUGIN_EXPORT JniResult StepsRecord__getCount(jobject self_) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__getCount, "getCount", "()J"); if (_m_StepsRecord__getCount == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int64_t _result = (*jniEnv)->CallLongMethod(jniEnv, self_, _m_StepsRecord__getCount); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; + return (JniResult){.value = {.j = _result}, .exception = check_exception()}; } jmethodID _m_StepsRecord__getStartTime = NULL; FFI_PLUGIN_EXPORT JniResult StepsRecord__getStartTime(jobject self_) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__getStartTime, "getStartTime", "()Ljava/time/Instant;"); if (_m_StepsRecord__getStartTime == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_StepsRecord__getStartTime); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_StepsRecord__getStartZoneOffset = NULL; FFI_PLUGIN_EXPORT JniResult StepsRecord__getStartZoneOffset(jobject self_) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__getStartZoneOffset, "getStartZoneOffset", "()Ljava/time/ZoneOffset;"); if (_m_StepsRecord__getStartZoneOffset == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_StepsRecord__getStartZoneOffset); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_StepsRecord__getEndTime = NULL; FFI_PLUGIN_EXPORT JniResult StepsRecord__getEndTime(jobject self_) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__getEndTime, "getEndTime", "()Ljava/time/Instant;"); if (_m_StepsRecord__getEndTime == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_StepsRecord__getEndTime); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_StepsRecord__getEndZoneOffset = NULL; FFI_PLUGIN_EXPORT JniResult StepsRecord__getEndZoneOffset(jobject self_) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__getEndZoneOffset, "getEndZoneOffset", "()Ljava/time/ZoneOffset;"); if (_m_StepsRecord__getEndZoneOffset == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_StepsRecord__getEndZoneOffset); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_StepsRecord__getMetadata = NULL; FFI_PLUGIN_EXPORT JniResult StepsRecord__getMetadata(jobject self_) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__getMetadata, "getMetadata", "()Landroidx/health/connect/client/records/metadata/Metadata;"); if (_m_StepsRecord__getMetadata == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_StepsRecord__getMetadata); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_StepsRecord__equals1 = NULL; FFI_PLUGIN_EXPORT JniResult StepsRecord__equals1(jobject self_, jobject object) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__equals1, "equals", "(Ljava/lang/Object;)Z"); if (_m_StepsRecord__equals1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_StepsRecord__equals1, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_StepsRecord__hashCode1 = NULL; FFI_PLUGIN_EXPORT JniResult StepsRecord__hashCode1(jobject self_) { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_StepsRecord, &_m_StepsRecord__hashCode1, "hashCode", "()I"); if (_m_StepsRecord__hashCode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_StepsRecord__hashCode1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jfieldID _f_StepsRecord__Companion = NULL; FFI_PLUGIN_EXPORT JniResult get_StepsRecord__Companion() { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field( _c_StepsRecord, &_f_StepsRecord__Companion, "Companion", "Landroidx/health/connect/client/records/StepsRecord$Companion;"); - jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField( - jniEnv, _c_StepsRecord, _f_StepsRecord__Companion)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = (*jniEnv)->GetStaticObjectField(jniEnv, _c_StepsRecord, + _f_StepsRecord__Companion); + return to_global_ref_result(_result); } jfieldID _f_StepsRecord__COUNT_TOTAL = NULL; FFI_PLUGIN_EXPORT JniResult get_StepsRecord__COUNT_TOTAL() { load_env(); - load_class_gr(&_c_StepsRecord, - "androidx/health/connect/client/records/StepsRecord"); + load_class_global_ref(&_c_StepsRecord, + "androidx/health/connect/client/records/StepsRecord"); if (_c_StepsRecord == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field( _c_StepsRecord, &_f_StepsRecord__COUNT_TOTAL, "COUNT_TOTAL", "Landroidx/health/connect/client/aggregate/AggregateMetric;"); - jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField( - jniEnv, _c_StepsRecord, _f_StepsRecord__COUNT_TOTAL)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_StepsRecord, _f_StepsRecord__COUNT_TOTAL); + return to_global_ref_result(_result); } // androidx.health.connect.client.time.TimeRangeFilter$Companion @@ -705,21 +769,20 @@ JniResult TimeRangeFilter_Companion__between(jobject self_, jobject instant, jobject instant1) { load_env(); - load_class_gr( + load_class_global_ref( &_c_TimeRangeFilter_Companion, "androidx/health/connect/client/time/TimeRangeFilter$Companion"); if (_c_TimeRangeFilter_Companion == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__between, "between", "(Ljava/time/Instant;Ljava/time/Instant;)Landroidx/health/" "connect/client/time/TimeRangeFilter;"); if (_m_TimeRangeFilter_Companion__between == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_TimeRangeFilter_Companion__between, instant, instant1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter_Companion__between1 = NULL; @@ -728,43 +791,41 @@ JniResult TimeRangeFilter_Companion__between1(jobject self_, jobject localDateTime, jobject localDateTime1) { load_env(); - load_class_gr( + load_class_global_ref( &_c_TimeRangeFilter_Companion, "androidx/health/connect/client/time/TimeRangeFilter$Companion"); if (_c_TimeRangeFilter_Companion == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__between1, "between", "(Ljava/time/LocalDateTime;Ljava/time/LocalDateTime;)Landroidx/" "health/connect/client/time/TimeRangeFilter;"); if (_m_TimeRangeFilter_Companion__between1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_TimeRangeFilter_Companion__between1, localDateTime, localDateTime1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter_Companion__before = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter_Companion__before(jobject self_, jobject instant) { load_env(); - load_class_gr( + load_class_global_ref( &_c_TimeRangeFilter_Companion, "androidx/health/connect/client/time/TimeRangeFilter$Companion"); if (_c_TimeRangeFilter_Companion == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__before, "before", "(Ljava/time/Instant;)Landroidx/health/connect/client/time/" "TimeRangeFilter;"); if (_m_TimeRangeFilter_Companion__before == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_TimeRangeFilter_Companion__before, instant); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter_Companion__before1 = NULL; @@ -772,42 +833,40 @@ FFI_PLUGIN_EXPORT JniResult TimeRangeFilter_Companion__before1(jobject self_, jobject localDateTime) { load_env(); - load_class_gr( + load_class_global_ref( &_c_TimeRangeFilter_Companion, "androidx/health/connect/client/time/TimeRangeFilter$Companion"); if (_c_TimeRangeFilter_Companion == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__before1, "before", "(Ljava/time/LocalDateTime;)Landroidx/health/connect/client/time/" "TimeRangeFilter;"); if (_m_TimeRangeFilter_Companion__before1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_TimeRangeFilter_Companion__before1, localDateTime); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter_Companion__after = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter_Companion__after(jobject self_, jobject instant) { load_env(); - load_class_gr( + load_class_global_ref( &_c_TimeRangeFilter_Companion, "androidx/health/connect/client/time/TimeRangeFilter$Companion"); if (_c_TimeRangeFilter_Companion == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__after, "after", "(Ljava/time/Instant;)Landroidx/health/connect/client/time/" "TimeRangeFilter;"); if (_m_TimeRangeFilter_Companion__after == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_TimeRangeFilter_Companion__after, instant); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter_Companion__after1 = NULL; @@ -815,41 +874,39 @@ FFI_PLUGIN_EXPORT JniResult TimeRangeFilter_Companion__after1(jobject self_, jobject localDateTime) { load_env(); - load_class_gr( + load_class_global_ref( &_c_TimeRangeFilter_Companion, "androidx/health/connect/client/time/TimeRangeFilter$Companion"); if (_c_TimeRangeFilter_Companion == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__after1, "after", "(Ljava/time/LocalDateTime;)Landroidx/health/connect/client/time/" "TimeRangeFilter;"); if (_m_TimeRangeFilter_Companion__after1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_TimeRangeFilter_Companion__after1, localDateTime); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter_Companion__ctor = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter_Companion__ctor(jobject defaultConstructorMarker) { load_env(); - load_class_gr( + load_class_global_ref( &_c_TimeRangeFilter_Companion, "androidx/health/connect/client/time/TimeRangeFilter$Companion"); if (_c_TimeRangeFilter_Companion == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter_Companion, &_m_TimeRangeFilter_Companion__ctor, "", "(Lkotlin/jvm/internal/DefaultConstructorMarker;)V"); if (_m_TimeRangeFilter_Companion__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_TimeRangeFilter_Companion, _m_TimeRangeFilter_Companion__ctor, defaultConstructorMarker); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } // androidx.health.connect.client.time.TimeRangeFilter @@ -862,20 +919,19 @@ JniResult TimeRangeFilter__ctor(jobject instant, jobject localDateTime, jobject localDateTime1) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__ctor, "", "(Ljava/time/Instant;Ljava/time/Instant;Ljava/time/" "LocalDateTime;Ljava/time/LocalDateTime;)V"); if (_m_TimeRangeFilter__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__ctor, instant, instant1, localDateTime, localDateTime1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter__ctor1 = NULL; @@ -887,93 +943,90 @@ JniResult TimeRangeFilter__ctor1(jobject instant, int32_t i, jobject defaultConstructorMarker) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_TimeRangeFilter, &_m_TimeRangeFilter__ctor1, "", "(Ljava/time/Instant;Ljava/time/Instant;Ljava/time/LocalDateTime;Ljava/" "time/LocalDateTime;ILkotlin/jvm/internal/DefaultConstructorMarker;)V"); if (_m_TimeRangeFilter__ctor1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__ctor1, instant, instant1, localDateTime, localDateTime1, i, defaultConstructorMarker); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter__equals1 = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__equals1(jobject self_, jobject object) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__equals1, "equals", "(Ljava/lang/Object;)Z"); if (_m_TimeRangeFilter__equals1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_TimeRangeFilter__equals1, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_TimeRangeFilter__hashCode1 = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__hashCode1(jobject self_) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__hashCode1, "hashCode", "()I"); if (_m_TimeRangeFilter__hashCode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_TimeRangeFilter__hashCode1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_TimeRangeFilter__ctor2 = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__ctor2() { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__ctor2, "", "()V"); if (_m_TimeRangeFilter__ctor2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__ctor2); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter__between = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__between(jobject instant, jobject instant1) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__between, "between", "(Ljava/time/Instant;Ljava/time/Instant;)Landroidx/health/" "connect/client/time/TimeRangeFilter;"); if (_m_TimeRangeFilter__between == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__between, instant, instant1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter__between1 = NULL; @@ -981,113 +1034,108 @@ FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__between1(jobject localDateTime, jobject localDateTime1) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method( _c_TimeRangeFilter, &_m_TimeRangeFilter__between1, "between", "(Ljava/time/LocalDateTime;Ljava/time/LocalDateTime;)Landroidx/health/" "connect/client/time/TimeRangeFilter;"); if (_m_TimeRangeFilter__between1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__between1, localDateTime, localDateTime1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter__before = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__before(jobject instant) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__before, "before", "(Ljava/time/Instant;)Landroidx/health/connect/client/" "time/TimeRangeFilter;"); if (_m_TimeRangeFilter__before == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__before, instant); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter__before1 = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__before1(jobject localDateTime) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__before1, "before", "(Ljava/time/LocalDateTime;)Landroidx/health/connect/" "client/time/TimeRangeFilter;"); if (_m_TimeRangeFilter__before1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__before1, localDateTime); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter__after = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__after(jobject instant) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__after, "after", "(Ljava/time/Instant;)Landroidx/health/connect/client/" "time/TimeRangeFilter;"); if (_m_TimeRangeFilter__after == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__after, instant); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_TimeRangeFilter__after1 = NULL; FFI_PLUGIN_EXPORT JniResult TimeRangeFilter__after1(jobject localDateTime) { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_TimeRangeFilter, &_m_TimeRangeFilter__after1, "after", "(Ljava/time/LocalDateTime;)Landroidx/health/connect/" "client/time/TimeRangeFilter;"); if (_m_TimeRangeFilter__after1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_TimeRangeFilter, _m_TimeRangeFilter__after1, localDateTime); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jfieldID _f_TimeRangeFilter__Companion = NULL; FFI_PLUGIN_EXPORT JniResult get_TimeRangeFilter__Companion() { load_env(); - load_class_gr(&_c_TimeRangeFilter, - "androidx/health/connect/client/time/TimeRangeFilter"); + load_class_global_ref(&_c_TimeRangeFilter, + "androidx/health/connect/client/time/TimeRangeFilter"); if (_c_TimeRangeFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field( _c_TimeRangeFilter, &_f_TimeRangeFilter__Companion, "Companion", "Landroidx/health/connect/client/time/TimeRangeFilter$Companion;"); - jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField( - jniEnv, _c_TimeRangeFilter, _f_TimeRangeFilter__Companion)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_TimeRangeFilter, _f_TimeRangeFilter__Companion); + return to_global_ref_result(_result); } // android.content.Context @@ -1097,134 +1145,126 @@ jmethodID _m_Context__ctor = NULL; FFI_PLUGIN_EXPORT JniResult Context__ctor() { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__ctor, "", "()V"); if (_m_Context__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Context, _m_Context__ctor); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getAssets = NULL; FFI_PLUGIN_EXPORT JniResult Context__getAssets(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getAssets, "getAssets", "()Landroid/content/res/AssetManager;"); if (_m_Context__getAssets == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getAssets); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getResources = NULL; FFI_PLUGIN_EXPORT JniResult Context__getResources(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getResources, "getResources", "()Landroid/content/res/Resources;"); if (_m_Context__getResources == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getResources); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getPackageManager = NULL; FFI_PLUGIN_EXPORT JniResult Context__getPackageManager(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getPackageManager, "getPackageManager", "()Landroid/content/pm/PackageManager;"); if (_m_Context__getPackageManager == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getPackageManager); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getContentResolver = NULL; FFI_PLUGIN_EXPORT JniResult Context__getContentResolver(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getContentResolver, "getContentResolver", "()Landroid/content/ContentResolver;"); if (_m_Context__getContentResolver == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getContentResolver); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getMainLooper = NULL; FFI_PLUGIN_EXPORT JniResult Context__getMainLooper(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getMainLooper, "getMainLooper", "()Landroid/os/Looper;"); if (_m_Context__getMainLooper == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getMainLooper); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getMainExecutor = NULL; FFI_PLUGIN_EXPORT JniResult Context__getMainExecutor(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getMainExecutor, "getMainExecutor", "()Ljava/util/concurrent/Executor;"); if (_m_Context__getMainExecutor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getMainExecutor); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getApplicationContext = NULL; FFI_PLUGIN_EXPORT JniResult Context__getApplicationContext(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getApplicationContext, "getApplicationContext", "()Landroid/content/Context;"); if (_m_Context__getApplicationContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getApplicationContext); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__registerComponentCallbacks = NULL; @@ -1232,18 +1272,18 @@ FFI_PLUGIN_EXPORT JniResult Context__registerComponentCallbacks(jobject self_, jobject componentCallbacks) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__registerComponentCallbacks, "registerComponentCallbacks", "(Landroid/content/ComponentCallbacks;)V"); if (_m_Context__registerComponentCallbacks == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__registerComponentCallbacks, componentCallbacks); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__unregisterComponentCallbacks = NULL; @@ -1251,166 +1291,159 @@ FFI_PLUGIN_EXPORT JniResult Context__unregisterComponentCallbacks(jobject self_, jobject componentCallbacks) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__unregisterComponentCallbacks, "unregisterComponentCallbacks", "(Landroid/content/ComponentCallbacks;)V"); if (_m_Context__unregisterComponentCallbacks == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__unregisterComponentCallbacks, componentCallbacks); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__getText = NULL; FFI_PLUGIN_EXPORT JniResult Context__getText(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getText, "getText", "(I)Ljava/lang/CharSequence;"); if (_m_Context__getText == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getText, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getString = NULL; FFI_PLUGIN_EXPORT JniResult Context__getString(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getString, "getString", "(I)Ljava/lang/String;"); if (_m_Context__getString == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getString, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getString1 = NULL; FFI_PLUGIN_EXPORT JniResult Context__getString1(jobject self_, int32_t i, jobject objects) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getString1, "getString", "(I[Ljava/lang/Object;)Ljava/lang/String;"); if (_m_Context__getString1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getString1, i, objects); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getColor = NULL; FFI_PLUGIN_EXPORT JniResult Context__getColor(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getColor, "getColor", "(I)I"); if (_m_Context__getColor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Context__getColor, i); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__getDrawable = NULL; FFI_PLUGIN_EXPORT JniResult Context__getDrawable(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getDrawable, "getDrawable", "(I)Landroid/graphics/drawable/Drawable;"); if (_m_Context__getDrawable == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getDrawable, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getColorStateList = NULL; FFI_PLUGIN_EXPORT JniResult Context__getColorStateList(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getColorStateList, "getColorStateList", "(I)Landroid/content/res/ColorStateList;"); if (_m_Context__getColorStateList == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getColorStateList, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__setTheme = NULL; FFI_PLUGIN_EXPORT JniResult Context__setTheme(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__setTheme, "setTheme", "(I)V"); if (_m_Context__setTheme == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__setTheme, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__getTheme = NULL; FFI_PLUGIN_EXPORT JniResult Context__getTheme(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getTheme, "getTheme", "()Landroid/content/res/Resources$Theme;"); if (_m_Context__getTheme == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getTheme); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__obtainStyledAttributes = NULL; FFI_PLUGIN_EXPORT JniResult Context__obtainStyledAttributes(jobject self_, jobject is) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__obtainStyledAttributes, "obtainStyledAttributes", "([I)Landroid/content/res/TypedArray;"); if (_m_Context__obtainStyledAttributes == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__obtainStyledAttributes, is); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__obtainStyledAttributes1 = NULL; @@ -1419,18 +1452,17 @@ JniResult Context__obtainStyledAttributes1(jobject self_, int32_t i, jobject is) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__obtainStyledAttributes1, "obtainStyledAttributes", "(I[I)Landroid/content/res/TypedArray;"); if (_m_Context__obtainStyledAttributes1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__obtainStyledAttributes1, i, is); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__obtainStyledAttributes2 = NULL; @@ -1439,19 +1471,18 @@ JniResult Context__obtainStyledAttributes2(jobject self_, jobject attributeSet, jobject is) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__obtainStyledAttributes2, "obtainStyledAttributes", "(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;"); if (_m_Context__obtainStyledAttributes2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__obtainStyledAttributes2, attributeSet, is); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__obtainStyledAttributes3 = NULL; @@ -1462,173 +1493,163 @@ JniResult Context__obtainStyledAttributes3(jobject self_, int32_t i, int32_t i1) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__obtainStyledAttributes3, "obtainStyledAttributes", "(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;"); if (_m_Context__obtainStyledAttributes3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__obtainStyledAttributes3, attributeSet, is, i, i1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getClassLoader = NULL; FFI_PLUGIN_EXPORT JniResult Context__getClassLoader(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getClassLoader, "getClassLoader", "()Ljava/lang/ClassLoader;"); if (_m_Context__getClassLoader == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getClassLoader); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getPackageName = NULL; FFI_PLUGIN_EXPORT JniResult Context__getPackageName(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getPackageName, "getPackageName", "()Ljava/lang/String;"); if (_m_Context__getPackageName == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getPackageName); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getOpPackageName = NULL; FFI_PLUGIN_EXPORT JniResult Context__getOpPackageName(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getOpPackageName, "getOpPackageName", "()Ljava/lang/String;"); if (_m_Context__getOpPackageName == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getOpPackageName); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getAttributionTag = NULL; FFI_PLUGIN_EXPORT JniResult Context__getAttributionTag(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getAttributionTag, "getAttributionTag", "()Ljava/lang/String;"); if (_m_Context__getAttributionTag == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getAttributionTag); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getAttributionSource = NULL; FFI_PLUGIN_EXPORT JniResult Context__getAttributionSource(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getAttributionSource, "getAttributionSource", "()Landroid/content/AttributionSource;"); if (_m_Context__getAttributionSource == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getAttributionSource); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getParams = NULL; FFI_PLUGIN_EXPORT JniResult Context__getParams(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getParams, "getParams", "()Landroid/content/ContextParams;"); if (_m_Context__getParams == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getParams); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getApplicationInfo = NULL; FFI_PLUGIN_EXPORT JniResult Context__getApplicationInfo(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getApplicationInfo, "getApplicationInfo", "()Landroid/content/pm/ApplicationInfo;"); if (_m_Context__getApplicationInfo == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getApplicationInfo); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getPackageResourcePath = NULL; FFI_PLUGIN_EXPORT JniResult Context__getPackageResourcePath(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getPackageResourcePath, "getPackageResourcePath", "()Ljava/lang/String;"); if (_m_Context__getPackageResourcePath == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getPackageResourcePath); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getPackageCodePath = NULL; FFI_PLUGIN_EXPORT JniResult Context__getPackageCodePath(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getPackageCodePath, "getPackageCodePath", "()Ljava/lang/String;"); if (_m_Context__getPackageCodePath == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getPackageCodePath); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getSharedPreferences = NULL; @@ -1637,18 +1658,17 @@ JniResult Context__getSharedPreferences(jobject self_, jobject string, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getSharedPreferences, "getSharedPreferences", "(Ljava/lang/String;I)Landroid/content/SharedPreferences;"); if (_m_Context__getSharedPreferences == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getSharedPreferences, string, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__moveSharedPreferencesFrom = NULL; @@ -1657,338 +1677,321 @@ JniResult Context__moveSharedPreferencesFrom(jobject self_, jobject context, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__moveSharedPreferencesFrom, "moveSharedPreferencesFrom", "(Landroid/content/Context;Ljava/lang/String;)Z"); if (_m_Context__moveSharedPreferencesFrom == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__moveSharedPreferencesFrom, context, string); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__deleteSharedPreferences = NULL; FFI_PLUGIN_EXPORT JniResult Context__deleteSharedPreferences(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__deleteSharedPreferences, "deleteSharedPreferences", "(Ljava/lang/String;)Z"); if (_m_Context__deleteSharedPreferences == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__deleteSharedPreferences, string); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__openFileInput = NULL; FFI_PLUGIN_EXPORT JniResult Context__openFileInput(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__openFileInput, "openFileInput", "(Ljava/lang/String;)Ljava/io/FileInputStream;"); if (_m_Context__openFileInput == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__openFileInput, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__openFileOutput = NULL; FFI_PLUGIN_EXPORT JniResult Context__openFileOutput(jobject self_, jobject string, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__openFileOutput, "openFileOutput", "(Ljava/lang/String;I)Ljava/io/FileOutputStream;"); if (_m_Context__openFileOutput == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__openFileOutput, string, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__deleteFile = NULL; FFI_PLUGIN_EXPORT JniResult Context__deleteFile(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__deleteFile, "deleteFile", "(Ljava/lang/String;)Z"); if (_m_Context__deleteFile == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__deleteFile, string); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__getFileStreamPath = NULL; FFI_PLUGIN_EXPORT JniResult Context__getFileStreamPath(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getFileStreamPath, "getFileStreamPath", "(Ljava/lang/String;)Ljava/io/File;"); if (_m_Context__getFileStreamPath == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getFileStreamPath, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getDataDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getDataDir(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getDataDir, "getDataDir", "()Ljava/io/File;"); if (_m_Context__getDataDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getDataDir); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getFilesDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getFilesDir(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getFilesDir, "getFilesDir", "()Ljava/io/File;"); if (_m_Context__getFilesDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getFilesDir); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getNoBackupFilesDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getNoBackupFilesDir(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getNoBackupFilesDir, "getNoBackupFilesDir", "()Ljava/io/File;"); if (_m_Context__getNoBackupFilesDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getNoBackupFilesDir); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getExternalFilesDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getExternalFilesDir(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getExternalFilesDir, "getExternalFilesDir", "(Ljava/lang/String;)Ljava/io/File;"); if (_m_Context__getExternalFilesDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getExternalFilesDir, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getExternalFilesDirs = NULL; FFI_PLUGIN_EXPORT JniResult Context__getExternalFilesDirs(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getExternalFilesDirs, "getExternalFilesDirs", "(Ljava/lang/String;)[Ljava/io/File;"); if (_m_Context__getExternalFilesDirs == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getExternalFilesDirs, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getObbDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getObbDir(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getObbDir, "getObbDir", "()Ljava/io/File;"); if (_m_Context__getObbDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getObbDir); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getObbDirs = NULL; FFI_PLUGIN_EXPORT JniResult Context__getObbDirs(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getObbDirs, "getObbDirs", "()[Ljava/io/File;"); if (_m_Context__getObbDirs == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getObbDirs); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getCacheDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getCacheDir(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getCacheDir, "getCacheDir", "()Ljava/io/File;"); if (_m_Context__getCacheDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getCacheDir); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getCodeCacheDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getCodeCacheDir(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getCodeCacheDir, "getCodeCacheDir", "()Ljava/io/File;"); if (_m_Context__getCodeCacheDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getCodeCacheDir); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getExternalCacheDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getExternalCacheDir(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getExternalCacheDir, "getExternalCacheDir", "()Ljava/io/File;"); if (_m_Context__getExternalCacheDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getExternalCacheDir); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getExternalCacheDirs = NULL; FFI_PLUGIN_EXPORT JniResult Context__getExternalCacheDirs(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getExternalCacheDirs, "getExternalCacheDirs", "()[Ljava/io/File;"); if (_m_Context__getExternalCacheDirs == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getExternalCacheDirs); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getExternalMediaDirs = NULL; FFI_PLUGIN_EXPORT JniResult Context__getExternalMediaDirs(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getExternalMediaDirs, "getExternalMediaDirs", "()[Ljava/io/File;"); if (_m_Context__getExternalMediaDirs == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getExternalMediaDirs); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__fileList = NULL; FFI_PLUGIN_EXPORT JniResult Context__fileList(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__fileList, "fileList", "()[Ljava/lang/String;"); if (_m_Context__fileList == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__fileList); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getDir = NULL; FFI_PLUGIN_EXPORT JniResult Context__getDir(jobject self_, jobject string, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getDir, "getDir", "(Ljava/lang/String;I)Ljava/io/File;"); if (_m_Context__getDir == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getDir, string, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__openOrCreateDatabase = NULL; @@ -1998,20 +2001,19 @@ JniResult Context__openOrCreateDatabase(jobject self_, int32_t i, jobject cursorFactory) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__openOrCreateDatabase, "openOrCreateDatabase", "(Ljava/lang/String;ILandroid/database/sqlite/" "SQLiteDatabase$CursorFactory;)Landroid/database/sqlite/SQLiteDatabase;"); if (_m_Context__openOrCreateDatabase == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__openOrCreateDatabase, string, i, cursorFactory); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__openOrCreateDatabase1 = NULL; @@ -2022,21 +2024,20 @@ JniResult Context__openOrCreateDatabase1(jobject self_, jobject cursorFactory, jobject databaseErrorHandler) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__openOrCreateDatabase1, "openOrCreateDatabase", "(Ljava/lang/String;ILandroid/database/sqlite/" "SQLiteDatabase$CursorFactory;Landroid/database/" "DatabaseErrorHandler;)Landroid/database/sqlite/SQLiteDatabase;"); if (_m_Context__openOrCreateDatabase1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__openOrCreateDatabase1, string, i, cursorFactory, databaseErrorHandler); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__moveDatabaseFrom = NULL; @@ -2045,192 +2046,188 @@ JniResult Context__moveDatabaseFrom(jobject self_, jobject context, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__moveDatabaseFrom, "moveDatabaseFrom", "(Landroid/content/Context;Ljava/lang/String;)Z"); if (_m_Context__moveDatabaseFrom == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__moveDatabaseFrom, context, string); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__deleteDatabase = NULL; FFI_PLUGIN_EXPORT JniResult Context__deleteDatabase(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__deleteDatabase, "deleteDatabase", "(Ljava/lang/String;)Z"); if (_m_Context__deleteDatabase == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__deleteDatabase, string); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__getDatabasePath = NULL; FFI_PLUGIN_EXPORT JniResult Context__getDatabasePath(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getDatabasePath, "getDatabasePath", "(Ljava/lang/String;)Ljava/io/File;"); if (_m_Context__getDatabasePath == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getDatabasePath, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__databaseList = NULL; FFI_PLUGIN_EXPORT JniResult Context__databaseList(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__databaseList, "databaseList", "()[Ljava/lang/String;"); if (_m_Context__databaseList == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__databaseList); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getWallpaper = NULL; FFI_PLUGIN_EXPORT JniResult Context__getWallpaper(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getWallpaper, "getWallpaper", "()Landroid/graphics/drawable/Drawable;"); if (_m_Context__getWallpaper == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getWallpaper); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__peekWallpaper = NULL; FFI_PLUGIN_EXPORT JniResult Context__peekWallpaper(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__peekWallpaper, "peekWallpaper", "()Landroid/graphics/drawable/Drawable;"); if (_m_Context__peekWallpaper == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__peekWallpaper); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getWallpaperDesiredMinimumWidth = NULL; FFI_PLUGIN_EXPORT JniResult Context__getWallpaperDesiredMinimumWidth(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getWallpaperDesiredMinimumWidth, "getWallpaperDesiredMinimumWidth", "()I"); if (_m_Context__getWallpaperDesiredMinimumWidth == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__getWallpaperDesiredMinimumWidth); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__getWallpaperDesiredMinimumHeight = NULL; FFI_PLUGIN_EXPORT JniResult Context__getWallpaperDesiredMinimumHeight(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getWallpaperDesiredMinimumHeight, "getWallpaperDesiredMinimumHeight", "()I"); if (_m_Context__getWallpaperDesiredMinimumHeight == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__getWallpaperDesiredMinimumHeight); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__setWallpaper = NULL; FFI_PLUGIN_EXPORT JniResult Context__setWallpaper(jobject self_, jobject bitmap) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__setWallpaper, "setWallpaper", "(Landroid/graphics/Bitmap;)V"); if (_m_Context__setWallpaper == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__setWallpaper, bitmap); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__setWallpaper1 = NULL; FFI_PLUGIN_EXPORT JniResult Context__setWallpaper1(jobject self_, jobject inputStream) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__setWallpaper1, "setWallpaper", "(Ljava/io/InputStream;)V"); if (_m_Context__setWallpaper1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__setWallpaper1, inputStream); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__clearWallpaper = NULL; FFI_PLUGIN_EXPORT JniResult Context__clearWallpaper(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__clearWallpaper, "clearWallpaper", "()V"); if (_m_Context__clearWallpaper == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__clearWallpaper); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__startActivity = NULL; FFI_PLUGIN_EXPORT JniResult Context__startActivity(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startActivity, "startActivity", "(Landroid/content/Intent;)V"); if (_m_Context__startActivity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__startActivity, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__startActivity1 = NULL; @@ -2239,32 +2236,32 @@ JniResult Context__startActivity1(jobject self_, jobject intent, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startActivity1, "startActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)V"); if (_m_Context__startActivity1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__startActivity1, intent, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__startActivities = NULL; FFI_PLUGIN_EXPORT JniResult Context__startActivities(jobject self_, jobject intents) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startActivities, "startActivities", "([Landroid/content/Intent;)V"); if (_m_Context__startActivities == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__startActivities, intents); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__startActivities1 = NULL; @@ -2273,16 +2270,16 @@ JniResult Context__startActivities1(jobject self_, jobject intents, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startActivities1, "startActivities", "([Landroid/content/Intent;Landroid/os/Bundle;)V"); if (_m_Context__startActivities1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__startActivities1, intents, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__startIntentSender = NULL; @@ -2294,16 +2291,16 @@ JniResult Context__startIntentSender(jobject self_, int32_t i1, int32_t i2) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startIntentSender, "startIntentSender", "(Landroid/content/IntentSender;Landroid/content/Intent;III)V"); if (_m_Context__startIntentSender == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__startIntentSender, intentSender, intent, i, i1, i2); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__startIntentSender1 = NULL; @@ -2316,32 +2313,32 @@ JniResult Context__startIntentSender1(jobject self_, int32_t i2, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startIntentSender1, "startIntentSender", "(Landroid/content/IntentSender;Landroid/content/" "Intent;IIILandroid/os/Bundle;)V"); if (_m_Context__startIntentSender1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__startIntentSender1, intentSender, intent, i, i1, i2, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendBroadcast = NULL; FFI_PLUGIN_EXPORT JniResult Context__sendBroadcast(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendBroadcast, "sendBroadcast", "(Landroid/content/Intent;)V"); if (_m_Context__sendBroadcast == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendBroadcast, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendBroadcast1 = NULL; @@ -2350,16 +2347,16 @@ JniResult Context__sendBroadcast1(jobject self_, jobject intent, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendBroadcast1, "sendBroadcast", "(Landroid/content/Intent;Ljava/lang/String;)V"); if (_m_Context__sendBroadcast1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendBroadcast1, intent, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendBroadcastWithMultiplePermissions = NULL; @@ -2368,18 +2365,18 @@ JniResult Context__sendBroadcastWithMultiplePermissions(jobject self_, jobject intent, jobject strings) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendBroadcastWithMultiplePermissions, "sendBroadcastWithMultiplePermissions", "(Landroid/content/Intent;[Ljava/lang/String;)V"); if (_m_Context__sendBroadcastWithMultiplePermissions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendBroadcastWithMultiplePermissions, intent, strings); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendOrderedBroadcast = NULL; @@ -2388,17 +2385,17 @@ JniResult Context__sendOrderedBroadcast(jobject self_, jobject intent, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendOrderedBroadcast, "sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;)V"); if (_m_Context__sendOrderedBroadcast == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendOrderedBroadcast, intent, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendOrderedBroadcast1 = NULL; @@ -2412,20 +2409,20 @@ JniResult Context__sendOrderedBroadcast1(jobject self_, jobject string1, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendOrderedBroadcast1, "sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;Landroid/content/" "BroadcastReceiver;Landroid/os/Handler;ILjava/lang/" "String;Landroid/os/Bundle;)V"); if (_m_Context__sendOrderedBroadcast1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendOrderedBroadcast1, intent, string, broadcastReceiver, handler, i, string1, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendBroadcastAsUser = NULL; @@ -2434,17 +2431,17 @@ JniResult Context__sendBroadcastAsUser(jobject self_, jobject intent, jobject userHandle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendBroadcastAsUser, "sendBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;)V"); if (_m_Context__sendBroadcastAsUser == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendBroadcastAsUser, intent, userHandle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendBroadcastAsUser1 = NULL; @@ -2454,17 +2451,17 @@ JniResult Context__sendBroadcastAsUser1(jobject self_, jobject userHandle, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__sendBroadcastAsUser1, "sendBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;Ljava/lang/String;)V"); if (_m_Context__sendBroadcastAsUser1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendBroadcastAsUser1, intent, userHandle, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendOrderedBroadcastAsUser = NULL; @@ -2479,20 +2476,20 @@ JniResult Context__sendOrderedBroadcastAsUser(jobject self_, jobject string1, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendOrderedBroadcastAsUser, "sendOrderedBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;Ljava/lang/" "String;Landroid/content/BroadcastReceiver;Landroid/os/" "Handler;ILjava/lang/String;Landroid/os/Bundle;)V"); if (_m_Context__sendOrderedBroadcastAsUser == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Context__sendOrderedBroadcastAsUser, intent, userHandle, string, broadcastReceiver, handler, i, string1, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendOrderedBroadcast2 = NULL; @@ -2507,36 +2504,36 @@ JniResult Context__sendOrderedBroadcast2(jobject self_, jobject string2, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendOrderedBroadcast2, "sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/" "String;Landroid/content/BroadcastReceiver;Landroid/os/" "Handler;ILjava/lang/String;Landroid/os/Bundle;)V"); if (_m_Context__sendOrderedBroadcast2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendOrderedBroadcast2, intent, string, string1, broadcastReceiver, handler, i, string2, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendStickyBroadcast = NULL; FFI_PLUGIN_EXPORT JniResult Context__sendStickyBroadcast(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendStickyBroadcast, "sendStickyBroadcast", "(Landroid/content/Intent;)V"); if (_m_Context__sendStickyBroadcast == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendStickyBroadcast, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendStickyBroadcast1 = NULL; @@ -2545,17 +2542,17 @@ JniResult Context__sendStickyBroadcast1(jobject self_, jobject intent, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendStickyBroadcast1, "sendStickyBroadcast", "(Landroid/content/Intent;Landroid/os/Bundle;)V"); if (_m_Context__sendStickyBroadcast1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendStickyBroadcast1, intent, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendStickyOrderedBroadcast = NULL; @@ -2568,36 +2565,36 @@ JniResult Context__sendStickyOrderedBroadcast(jobject self_, jobject string, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__sendStickyOrderedBroadcast, "sendStickyOrderedBroadcast", "(Landroid/content/Intent;Landroid/content/BroadcastReceiver;Landroid/os/" "Handler;ILjava/lang/String;Landroid/os/Bundle;)V"); if (_m_Context__sendStickyOrderedBroadcast == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__sendStickyOrderedBroadcast, intent, broadcastReceiver, handler, i, string, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__removeStickyBroadcast = NULL; FFI_PLUGIN_EXPORT JniResult Context__removeStickyBroadcast(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__removeStickyBroadcast, "removeStickyBroadcast", "(Landroid/content/Intent;)V"); if (_m_Context__removeStickyBroadcast == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__removeStickyBroadcast, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendStickyBroadcastAsUser = NULL; @@ -2606,17 +2603,17 @@ JniResult Context__sendStickyBroadcastAsUser(jobject self_, jobject intent, jobject userHandle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendStickyBroadcastAsUser, "sendStickyBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;)V"); if (_m_Context__sendStickyBroadcastAsUser == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Context__sendStickyBroadcastAsUser, intent, userHandle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__sendStickyOrderedBroadcastAsUser = NULL; @@ -2630,20 +2627,20 @@ JniResult Context__sendStickyOrderedBroadcastAsUser(jobject self_, jobject string, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__sendStickyOrderedBroadcastAsUser, "sendStickyOrderedBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;Landroid/" "content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/" "String;Landroid/os/Bundle;)V"); if (_m_Context__sendStickyOrderedBroadcastAsUser == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Context__sendStickyOrderedBroadcastAsUser, intent, userHandle, broadcastReceiver, handler, i, string, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__removeStickyBroadcastAsUser = NULL; @@ -2652,18 +2649,18 @@ JniResult Context__removeStickyBroadcastAsUser(jobject self_, jobject intent, jobject userHandle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__removeStickyBroadcastAsUser, "removeStickyBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;)V"); if (_m_Context__removeStickyBroadcastAsUser == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__removeStickyBroadcastAsUser, intent, userHandle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__registerReceiver = NULL; @@ -2672,19 +2669,18 @@ JniResult Context__registerReceiver(jobject self_, jobject broadcastReceiver, jobject intentFilter) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__registerReceiver, "registerReceiver", "(Landroid/content/BroadcastReceiver;Landroid/content/" "IntentFilter;)Landroid/content/Intent;"); if (_m_Context__registerReceiver == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__registerReceiver, broadcastReceiver, intentFilter); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__registerReceiver1 = NULL; @@ -2694,19 +2690,18 @@ JniResult Context__registerReceiver1(jobject self_, jobject intentFilter, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__registerReceiver1, "registerReceiver", "(Landroid/content/BroadcastReceiver;Landroid/content/" "IntentFilter;I)Landroid/content/Intent;"); if (_m_Context__registerReceiver1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__registerReceiver1, broadcastReceiver, intentFilter, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__registerReceiver2 = NULL; @@ -2717,20 +2712,19 @@ JniResult Context__registerReceiver2(jobject self_, jobject string, jobject handler) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__registerReceiver2, "registerReceiver", "(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;Ljava/" "lang/String;Landroid/os/Handler;)Landroid/content/Intent;"); if (_m_Context__registerReceiver2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__registerReceiver2, broadcastReceiver, intentFilter, string, handler); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__registerReceiver3 = NULL; @@ -2742,20 +2736,19 @@ JniResult Context__registerReceiver3(jobject self_, jobject handler, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__registerReceiver3, "registerReceiver", "(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;Ljava/" "lang/String;Landroid/os/Handler;I)Landroid/content/Intent;"); if (_m_Context__registerReceiver3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__registerReceiver3, broadcastReceiver, intentFilter, string, handler, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__unregisterReceiver = NULL; @@ -2763,67 +2756,65 @@ FFI_PLUGIN_EXPORT JniResult Context__unregisterReceiver(jobject self_, jobject broadcastReceiver) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__unregisterReceiver, "unregisterReceiver", "(Landroid/content/BroadcastReceiver;)V"); if (_m_Context__unregisterReceiver == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__unregisterReceiver, broadcastReceiver); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__startService = NULL; FFI_PLUGIN_EXPORT JniResult Context__startService(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startService, "startService", "(Landroid/content/Intent;)Landroid/content/ComponentName;"); if (_m_Context__startService == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__startService, intent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__startForegroundService = NULL; FFI_PLUGIN_EXPORT JniResult Context__startForegroundService(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startForegroundService, "startForegroundService", "(Landroid/content/Intent;)Landroid/content/ComponentName;"); if (_m_Context__startForegroundService == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__startForegroundService, intent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__stopService = NULL; FFI_PLUGIN_EXPORT JniResult Context__stopService(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__stopService, "stopService", "(Landroid/content/Intent;)Z"); if (_m_Context__stopService == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__stopService, intent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__bindService = NULL; @@ -2833,17 +2824,17 @@ JniResult Context__bindService(jobject self_, jobject serviceConnection, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__bindService, "bindService", "(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z"); if (_m_Context__bindService == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__bindService, intent, serviceConnection, i); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__bindService1 = NULL; @@ -2854,18 +2845,18 @@ JniResult Context__bindService1(jobject self_, jobject executor, jobject serviceConnection) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__bindService1, "bindService", "(Landroid/content/Intent;ILjava/util/concurrent/" "Executor;Landroid/content/ServiceConnection;)Z"); if (_m_Context__bindService1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Context__bindService1, intent, i, executor, serviceConnection); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__bindIsolatedService = NULL; @@ -2877,19 +2868,19 @@ JniResult Context__bindIsolatedService(jobject self_, jobject executor, jobject serviceConnection) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__bindIsolatedService, "bindIsolatedService", "(Landroid/content/Intent;ILjava/lang/String;Ljava/util/" "concurrent/Executor;Landroid/content/ServiceConnection;)Z"); if (_m_Context__bindIsolatedService == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__bindIsolatedService, intent, i, string, executor, serviceConnection); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__bindServiceAsUser = NULL; @@ -2900,18 +2891,18 @@ JniResult Context__bindServiceAsUser(jobject self_, int32_t i, jobject userHandle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__bindServiceAsUser, "bindServiceAsUser", "(Landroid/content/Intent;Landroid/content/" "ServiceConnection;ILandroid/os/UserHandle;)Z"); if (_m_Context__bindServiceAsUser == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Context__bindServiceAsUser, intent, serviceConnection, i, userHandle); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__updateServiceGroup = NULL; @@ -2921,32 +2912,32 @@ JniResult Context__updateServiceGroup(jobject self_, int32_t i, int32_t i1) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__updateServiceGroup, "updateServiceGroup", "(Landroid/content/ServiceConnection;II)V"); if (_m_Context__updateServiceGroup == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__updateServiceGroup, serviceConnection, i, i1); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__unbindService = NULL; FFI_PLUGIN_EXPORT JniResult Context__unbindService(jobject self_, jobject serviceConnection) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__unbindService, "unbindService", "(Landroid/content/ServiceConnection;)V"); if (_m_Context__unbindService == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__unbindService, serviceConnection); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__startInstrumentation = NULL; @@ -2956,70 +2947,67 @@ JniResult Context__startInstrumentation(jobject self_, jobject string, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__startInstrumentation, "startInstrumentation", "(Landroid/content/ComponentName;Ljava/lang/String;Landroid/os/" "Bundle;)Z"); if (_m_Context__startInstrumentation == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__startInstrumentation, componentName, string, bundle); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__getSystemService = NULL; FFI_PLUGIN_EXPORT JniResult Context__getSystemService(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getSystemService, "getSystemService", "(Ljava/lang/String;)Ljava/lang/Object;"); if (_m_Context__getSystemService == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getSystemService, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getSystemService1 = NULL; FFI_PLUGIN_EXPORT JniResult Context__getSystemService1(jobject self_, jobject class) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getSystemService1, "getSystemService", "(Ljava/lang/Class;)Ljava/lang/Object;"); if (_m_Context__getSystemService1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getSystemService1, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getSystemServiceName = NULL; FFI_PLUGIN_EXPORT JniResult Context__getSystemServiceName(jobject self_, jobject class) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getSystemServiceName, "getSystemServiceName", "(Ljava/lang/Class;)Ljava/lang/String;"); if (_m_Context__getSystemServiceName == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__getSystemServiceName, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__checkPermission = NULL; @@ -3029,64 +3017,64 @@ JniResult Context__checkPermission(jobject self_, int32_t i, int32_t i1) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkPermission, "checkPermission", "(Ljava/lang/String;II)I"); if (_m_Context__checkPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__checkPermission, string, i, i1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__checkCallingPermission = NULL; FFI_PLUGIN_EXPORT JniResult Context__checkCallingPermission(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkCallingPermission, "checkCallingPermission", "(Ljava/lang/String;)I"); if (_m_Context__checkCallingPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__checkCallingPermission, string); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__checkCallingOrSelfPermission = NULL; FFI_PLUGIN_EXPORT JniResult Context__checkCallingOrSelfPermission(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkCallingOrSelfPermission, "checkCallingOrSelfPermission", "(Ljava/lang/String;)I"); if (_m_Context__checkCallingOrSelfPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__checkCallingOrSelfPermission, string); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__checkSelfPermission = NULL; FFI_PLUGIN_EXPORT JniResult Context__checkSelfPermission(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkSelfPermission, "checkSelfPermission", "(Ljava/lang/String;)I"); if (_m_Context__checkSelfPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__checkSelfPermission, string); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__enforcePermission = NULL; @@ -3097,16 +3085,16 @@ JniResult Context__enforcePermission(jobject self_, int32_t i1, jobject string1) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__enforcePermission, "enforcePermission", "(Ljava/lang/String;IILjava/lang/String;)V"); if (_m_Context__enforcePermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__enforcePermission, string, i, i1, string1); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__enforceCallingPermission = NULL; @@ -3115,17 +3103,17 @@ JniResult Context__enforceCallingPermission(jobject self_, jobject string, jobject string1) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__enforceCallingPermission, "enforceCallingPermission", "(Ljava/lang/String;Ljava/lang/String;)V"); if (_m_Context__enforceCallingPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__enforceCallingPermission, string, string1); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__enforceCallingOrSelfPermission = NULL; @@ -3134,18 +3122,18 @@ JniResult Context__enforceCallingOrSelfPermission(jobject self_, jobject string, jobject string1) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__enforceCallingOrSelfPermission, "enforceCallingOrSelfPermission", "(Ljava/lang/String;Ljava/lang/String;)V"); if (_m_Context__enforceCallingOrSelfPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__enforceCallingOrSelfPermission, string, string1); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__grantUriPermission = NULL; @@ -3155,32 +3143,32 @@ JniResult Context__grantUriPermission(jobject self_, jobject uri, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__grantUriPermission, "grantUriPermission", "(Ljava/lang/String;Landroid/net/Uri;I)V"); if (_m_Context__grantUriPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__grantUriPermission, string, uri, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__revokeUriPermission = NULL; FFI_PLUGIN_EXPORT JniResult Context__revokeUriPermission(jobject self_, jobject uri, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__revokeUriPermission, "revokeUriPermission", "(Landroid/net/Uri;I)V"); if (_m_Context__revokeUriPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__revokeUriPermission, uri, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__revokeUriPermission1 = NULL; @@ -3190,16 +3178,16 @@ JniResult Context__revokeUriPermission1(jobject self_, jobject uri, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__revokeUriPermission1, "revokeUriPermission", "(Ljava/lang/String;Landroid/net/Uri;I)V"); if (_m_Context__revokeUriPermission1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__revokeUriPermission1, string, uri, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__checkUriPermission = NULL; @@ -3210,16 +3198,16 @@ JniResult Context__checkUriPermission(jobject self_, int32_t i1, int32_t i2) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkUriPermission, "checkUriPermission", "(Landroid/net/Uri;III)I"); if (_m_Context__checkUriPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__checkUriPermission, uri, i, i1, i2); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__checkUriPermissions = NULL; @@ -3230,17 +3218,16 @@ JniResult Context__checkUriPermissions(jobject self_, int32_t i1, int32_t i2) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkUriPermissions, "checkUriPermissions", "(Ljava/util/List;III)[I"); if (_m_Context__checkUriPermissions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__checkUriPermissions, list, i, i1, i2); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__checkCallingUriPermission = NULL; @@ -3249,16 +3236,16 @@ JniResult Context__checkCallingUriPermission(jobject self_, jobject uri, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkCallingUriPermission, "checkCallingUriPermission", "(Landroid/net/Uri;I)I"); if (_m_Context__checkCallingUriPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__checkCallingUriPermission, uri, i); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__checkCallingUriPermissions = NULL; @@ -3267,17 +3254,16 @@ JniResult Context__checkCallingUriPermissions(jobject self_, jobject list, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkCallingUriPermissions, "checkCallingUriPermissions", "(Ljava/util/List;I)[I"); if (_m_Context__checkCallingUriPermissions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__checkCallingUriPermissions, list, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__checkCallingOrSelfUriPermission = NULL; @@ -3286,16 +3272,16 @@ JniResult Context__checkCallingOrSelfUriPermission(jobject self_, jobject uri, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkCallingOrSelfUriPermission, "checkCallingOrSelfUriPermission", "(Landroid/net/Uri;I)I"); if (_m_Context__checkCallingOrSelfUriPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Context__checkCallingOrSelfUriPermission, uri, i); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__checkCallingOrSelfUriPermissions = NULL; @@ -3304,17 +3290,16 @@ JniResult Context__checkCallingOrSelfUriPermissions(jobject self_, jobject list, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkCallingOrSelfUriPermissions, "checkCallingOrSelfUriPermissions", "(Ljava/util/List;I)[I"); if (_m_Context__checkCallingOrSelfUriPermissions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__checkCallingOrSelfUriPermissions, list, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__checkUriPermission1 = NULL; @@ -3327,18 +3312,18 @@ JniResult Context__checkUriPermission1(jobject self_, int32_t i1, int32_t i2) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__checkUriPermission1, "checkUriPermission", "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;III)I"); if (_m_Context__checkUriPermission1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Context__checkUriPermission1, uri, string, string1, i, i1, i2); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Context__enforceUriPermission = NULL; @@ -3350,17 +3335,17 @@ JniResult Context__enforceUriPermission(jobject self_, int32_t i2, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__enforceUriPermission, "enforceUriPermission", "(Landroid/net/Uri;IIILjava/lang/String;)V"); if (_m_Context__enforceUriPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__enforceUriPermission, uri, i, i1, i2, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__enforceCallingUriPermission = NULL; @@ -3370,17 +3355,17 @@ JniResult Context__enforceCallingUriPermission(jobject self_, int32_t i, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__enforceCallingUriPermission, "enforceCallingUriPermission", "(Landroid/net/Uri;ILjava/lang/String;)V"); if (_m_Context__enforceCallingUriPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Context__enforceCallingUriPermission, uri, i, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__enforceCallingOrSelfUriPermission = NULL; @@ -3390,18 +3375,18 @@ JniResult Context__enforceCallingOrSelfUriPermission(jobject self_, int32_t i, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__enforceCallingOrSelfUriPermission, "enforceCallingOrSelfUriPermission", "(Landroid/net/Uri;ILjava/lang/String;)V"); if (_m_Context__enforceCallingOrSelfUriPermission == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__enforceCallingOrSelfUriPermission, uri, i, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__enforceUriPermission1 = NULL; @@ -3415,34 +3400,34 @@ JniResult Context__enforceUriPermission1(jobject self_, int32_t i2, jobject string2) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__enforceUriPermission1, "enforceUriPermission", "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;IIILjava/" "lang/String;)V"); if (_m_Context__enforceUriPermission1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__enforceUriPermission1, uri, string, string1, i, i1, i2, string2); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__revokeSelfPermissionOnKill = NULL; FFI_PLUGIN_EXPORT JniResult Context__revokeSelfPermissionOnKill(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__revokeSelfPermissionOnKill, "revokeSelfPermissionOnKill", "(Ljava/lang/String;)V"); if (_m_Context__revokeSelfPermissionOnKill == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Context__revokeSelfPermissionOnKill, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__revokeSelfPermissionsOnKill = NULL; @@ -3450,16 +3435,16 @@ FFI_PLUGIN_EXPORT JniResult Context__revokeSelfPermissionsOnKill(jobject self_, jobject collection) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__revokeSelfPermissionsOnKill, "revokeSelfPermissionsOnKill", "(Ljava/util/Collection;)V"); if (_m_Context__revokeSelfPermissionsOnKill == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Context__revokeSelfPermissionsOnKill, collection); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Context__createPackageContext = NULL; @@ -3468,36 +3453,34 @@ JniResult Context__createPackageContext(jobject self_, jobject string, int32_t i) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__createPackageContext, "createPackageContext", "(Ljava/lang/String;I)Landroid/content/Context;"); if (_m_Context__createPackageContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createPackageContext, string, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__createContextForSplit = NULL; FFI_PLUGIN_EXPORT JniResult Context__createContextForSplit(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__createContextForSplit, "createContextForSplit", "(Ljava/lang/String;)Landroid/content/Context;"); if (_m_Context__createContextForSplit == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createContextForSplit, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__createConfigurationContext = NULL; @@ -3505,36 +3488,34 @@ FFI_PLUGIN_EXPORT JniResult Context__createConfigurationContext(jobject self_, jobject configuration) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__createConfigurationContext, "createConfigurationContext", "(Landroid/content/res/Configuration;)Landroid/content/Context;"); if (_m_Context__createConfigurationContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createConfigurationContext, configuration); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__createDisplayContext = NULL; FFI_PLUGIN_EXPORT JniResult Context__createDisplayContext(jobject self_, jobject display) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__createDisplayContext, "createDisplayContext", "(Landroid/view/Display;)Landroid/content/Context;"); if (_m_Context__createDisplayContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createDisplayContext, display); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__createWindowContext = NULL; @@ -3543,18 +3524,17 @@ JniResult Context__createWindowContext(jobject self_, int32_t i, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__createWindowContext, "createWindowContext", "(ILandroid/os/Bundle;)Landroid/content/Context;"); if (_m_Context__createWindowContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createWindowContext, i, bundle); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__createWindowContext1 = NULL; @@ -3564,134 +3544,129 @@ JniResult Context__createWindowContext1(jobject self_, int32_t i, jobject bundle) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Context, &_m_Context__createWindowContext1, "createWindowContext", "(Landroid/view/Display;ILandroid/os/Bundle;)Landroid/content/Context;"); if (_m_Context__createWindowContext1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createWindowContext1, display, i, bundle); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__createContext = NULL; FFI_PLUGIN_EXPORT JniResult Context__createContext(jobject self_, jobject contextParams) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__createContext, "createContext", "(Landroid/content/ContextParams;)Landroid/content/Context;"); if (_m_Context__createContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createContext, contextParams); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__createAttributionContext = NULL; FFI_PLUGIN_EXPORT JniResult Context__createAttributionContext(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__createAttributionContext, "createAttributionContext", "(Ljava/lang/String;)Landroid/content/Context;"); if (_m_Context__createAttributionContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createAttributionContext, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__createDeviceProtectedStorageContext = NULL; FFI_PLUGIN_EXPORT JniResult Context__createDeviceProtectedStorageContext(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__createDeviceProtectedStorageContext, "createDeviceProtectedStorageContext", "()Landroid/content/Context;"); if (_m_Context__createDeviceProtectedStorageContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Context__createDeviceProtectedStorageContext); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__getDisplay = NULL; FFI_PLUGIN_EXPORT JniResult Context__getDisplay(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__getDisplay, "getDisplay", "()Landroid/view/Display;"); if (_m_Context__getDisplay == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Context__getDisplay); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Context__isRestricted = NULL; FFI_PLUGIN_EXPORT JniResult Context__isRestricted(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__isRestricted, "isRestricted", "()Z"); if (_m_Context__isRestricted == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Context__isRestricted); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__isDeviceProtectedStorage = NULL; FFI_PLUGIN_EXPORT JniResult Context__isDeviceProtectedStorage(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__isDeviceProtectedStorage, "isDeviceProtectedStorage", "()Z"); if (_m_Context__isDeviceProtectedStorage == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Context__isDeviceProtectedStorage); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Context__isUiContext = NULL; FFI_PLUGIN_EXPORT JniResult Context__isUiContext(jobject self_) { load_env(); - load_class_gr(&_c_Context, "android/content/Context"); + load_class_global_ref(&_c_Context, "android/content/Context"); if (_c_Context == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Context, &_m_Context__isUiContext, "isUiContext", "()Z"); if (_m_Context__isUiContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Context__isUiContext); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } // android.content.Intent @@ -3701,82 +3676,77 @@ jmethodID _m_Intent__ctor = NULL; FFI_PLUGIN_EXPORT JniResult Intent__ctor() { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__ctor, "", "()V"); if (_m_Intent__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__ctor1 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__ctor1(jobject intent) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__ctor1, "", "(Landroid/content/Intent;)V"); if (_m_Intent__ctor1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor1, intent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__ctor2 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__ctor2(jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__ctor2, "", "(Ljava/lang/String;)V"); if (_m_Intent__ctor2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor2, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__ctor3 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__ctor3(jobject string, jobject uri) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__ctor3, "", "(Ljava/lang/String;Landroid/net/Uri;)V"); if (_m_Intent__ctor3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor3, string, uri); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__ctor4 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__ctor4(jobject context, jobject class) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__ctor4, "", "(Landroid/content/Context;Ljava/lang/Class;)V"); if (_m_Intent__ctor4 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor4, context, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__ctor5 = NULL; @@ -3786,36 +3756,34 @@ JniResult Intent__ctor5(jobject string, jobject context, jobject class) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__ctor5, "", "(Ljava/lang/String;Landroid/net/Uri;Landroid/content/" "Context;Ljava/lang/Class;)V"); if (_m_Intent__ctor5 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Intent, _m_Intent__ctor5, string, uri, context, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__createChooser = NULL; FFI_PLUGIN_EXPORT JniResult Intent__createChooser(jobject intent, jobject charSequence) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Intent, &_m_Intent__createChooser, "createChooser", "(Landroid/content/Intent;Ljava/lang/" "CharSequence;)Landroid/content/Intent;"); if (_m_Intent__createChooser == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__createChooser, intent, charSequence); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__createChooser1 = NULL; @@ -3824,606 +3792,582 @@ JniResult Intent__createChooser1(jobject intent, jobject charSequence, jobject intentSender) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method( _c_Intent, &_m_Intent__createChooser1, "createChooser", "(Landroid/content/Intent;Ljava/lang/CharSequence;Landroid/content/" "IntentSender;)Landroid/content/Intent;"); if (_m_Intent__createChooser1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__createChooser1, intent, charSequence, intentSender); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__clone = NULL; FFI_PLUGIN_EXPORT JniResult Intent__clone(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__clone, "clone", "()Ljava/lang/Object;"); if (_m_Intent__clone == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__clone); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__cloneFilter = NULL; FFI_PLUGIN_EXPORT JniResult Intent__cloneFilter(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__cloneFilter, "cloneFilter", "()Landroid/content/Intent;"); if (_m_Intent__cloneFilter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__cloneFilter); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__makeMainActivity = NULL; FFI_PLUGIN_EXPORT JniResult Intent__makeMainActivity(jobject componentName) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method( _c_Intent, &_m_Intent__makeMainActivity, "makeMainActivity", "(Landroid/content/ComponentName;)Landroid/content/Intent;"); if (_m_Intent__makeMainActivity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__makeMainActivity, componentName); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__makeMainSelectorActivity = NULL; FFI_PLUGIN_EXPORT JniResult Intent__makeMainSelectorActivity(jobject string, jobject string1) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method( _c_Intent, &_m_Intent__makeMainSelectorActivity, "makeMainSelectorActivity", "(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__makeMainSelectorActivity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__makeMainSelectorActivity, string, string1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__makeRestartActivityTask = NULL; FFI_PLUGIN_EXPORT JniResult Intent__makeRestartActivityTask(jobject componentName) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method( _c_Intent, &_m_Intent__makeRestartActivityTask, "makeRestartActivityTask", "(Landroid/content/ComponentName;)Landroid/content/Intent;"); if (_m_Intent__makeRestartActivityTask == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__makeRestartActivityTask, componentName); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getIntent = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getIntent(jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Intent, &_m_Intent__getIntent, "getIntent", "(Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__getIntent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__getIntent, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__parseUri = NULL; FFI_PLUGIN_EXPORT JniResult Intent__parseUri(jobject string, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Intent, &_m_Intent__parseUri, "parseUri", "(Ljava/lang/String;I)Landroid/content/Intent;"); if (_m_Intent__parseUri == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__parseUri, string, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getIntentOld = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getIntentOld(jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Intent, &_m_Intent__getIntentOld, "getIntentOld", "(Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__getIntentOld == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__getIntentOld, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getAction = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getAction(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getAction, "getAction", "()Ljava/lang/String;"); if (_m_Intent__getAction == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getAction); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getData = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getData(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getData, "getData", "()Landroid/net/Uri;"); if (_m_Intent__getData == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getData); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getDataString = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getDataString(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getDataString, "getDataString", "()Ljava/lang/String;"); if (_m_Intent__getDataString == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getDataString); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getScheme = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getScheme(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getScheme, "getScheme", "()Ljava/lang/String;"); if (_m_Intent__getScheme == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getScheme); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getType = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getType(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getType, "getType", "()Ljava/lang/String;"); if (_m_Intent__getType == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getType); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__resolveType = NULL; FFI_PLUGIN_EXPORT JniResult Intent__resolveType(jobject self_, jobject context) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__resolveType, "resolveType", "(Landroid/content/Context;)Ljava/lang/String;"); if (_m_Intent__resolveType == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__resolveType, context); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__resolveType1 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__resolveType1(jobject self_, jobject contentResolver) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__resolveType1, "resolveType", "(Landroid/content/ContentResolver;)Ljava/lang/String;"); if (_m_Intent__resolveType1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__resolveType1, contentResolver); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__resolveTypeIfNeeded = NULL; FFI_PLUGIN_EXPORT JniResult Intent__resolveTypeIfNeeded(jobject self_, jobject contentResolver) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__resolveTypeIfNeeded, "resolveTypeIfNeeded", "(Landroid/content/ContentResolver;)Ljava/lang/String;"); if (_m_Intent__resolveTypeIfNeeded == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__resolveTypeIfNeeded, contentResolver); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getIdentifier = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getIdentifier(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getIdentifier, "getIdentifier", "()Ljava/lang/String;"); if (_m_Intent__getIdentifier == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getIdentifier); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__hasCategory = NULL; FFI_PLUGIN_EXPORT JniResult Intent__hasCategory(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__hasCategory, "hasCategory", "(Ljava/lang/String;)Z"); if (_m_Intent__hasCategory == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Intent__hasCategory, string); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getCategories = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getCategories(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getCategories, "getCategories", "()Ljava/util/Set;"); if (_m_Intent__getCategories == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getCategories); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getSelector = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getSelector(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getSelector, "getSelector", "()Landroid/content/Intent;"); if (_m_Intent__getSelector == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getSelector); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getClipData = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getClipData(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getClipData, "getClipData", "()Landroid/content/ClipData;"); if (_m_Intent__getClipData == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getClipData); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setExtrasClassLoader = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setExtrasClassLoader(jobject self_, jobject classLoader) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setExtrasClassLoader, "setExtrasClassLoader", "(Ljava/lang/ClassLoader;)V"); if (_m_Intent__setExtrasClassLoader == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__setExtrasClassLoader, classLoader); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__hasExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__hasExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__hasExtra, "hasExtra", "(Ljava/lang/String;)Z"); if (_m_Intent__hasExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Intent__hasExtra, string); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Intent__hasFileDescriptors = NULL; FFI_PLUGIN_EXPORT JniResult Intent__hasFileDescriptors(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__hasFileDescriptors, "hasFileDescriptors", "()Z"); if (_m_Intent__hasFileDescriptors == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Intent__hasFileDescriptors); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getBooleanExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getBooleanExtra(jobject self_, jobject string, uint8_t z) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getBooleanExtra, "getBooleanExtra", "(Ljava/lang/String;Z)Z"); if (_m_Intent__getBooleanExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Intent__getBooleanExtra, string, z); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getByteExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getByteExtra(jobject self_, jobject string, int8_t b) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getByteExtra, "getByteExtra", "(Ljava/lang/String;B)B"); if (_m_Intent__getByteExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int8_t _result = (*jniEnv)->CallByteMethod( jniEnv, self_, _m_Intent__getByteExtra, string, b); - return (JniResult){.result = {.b = _result}, .exception = check_exception()}; + return (JniResult){.value = {.b = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getShortExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getShortExtra(jobject self_, jobject string, int16_t s) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getShortExtra, "getShortExtra", "(Ljava/lang/String;S)S"); if (_m_Intent__getShortExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int16_t _result = (*jniEnv)->CallShortMethod( jniEnv, self_, _m_Intent__getShortExtra, string, s); - return (JniResult){.result = {.s = _result}, .exception = check_exception()}; + return (JniResult){.value = {.s = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getCharExtra = NULL; FFI_PLUGIN_EXPORT -JniResult Intent__getCharExtra(jobject self_, jobject string, char c) { +JniResult Intent__getCharExtra(jobject self_, jobject string, uint16_t c) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getCharExtra, "getCharExtra", "(Ljava/lang/String;C)C"); if (_m_Intent__getCharExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - char _result = (*jniEnv)->CallCharMethod(jniEnv, self_, - _m_Intent__getCharExtra, string, c); - return (JniResult){.result = {.c = _result}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; + uint16_t _result = (*jniEnv)->CallCharMethod( + jniEnv, self_, _m_Intent__getCharExtra, string, c); + return (JniResult){.value = {.c = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getIntExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getIntExtra(jobject self_, jobject string, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getIntExtra, "getIntExtra", "(Ljava/lang/String;I)I"); if (_m_Intent__getIntExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Intent__getIntExtra, string, i); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getLongExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getLongExtra(jobject self_, jobject string, int64_t j) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getLongExtra, "getLongExtra", "(Ljava/lang/String;J)J"); if (_m_Intent__getLongExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int64_t _result = (*jniEnv)->CallLongMethod( jniEnv, self_, _m_Intent__getLongExtra, string, j); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; + return (JniResult){.value = {.j = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getFloatExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getFloatExtra(jobject self_, jobject string, float f) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getFloatExtra, "getFloatExtra", "(Ljava/lang/String;F)F"); if (_m_Intent__getFloatExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; float _result = (*jniEnv)->CallFloatMethod( jniEnv, self_, _m_Intent__getFloatExtra, string, f); - return (JniResult){.result = {.f = _result}, .exception = check_exception()}; + return (JniResult){.value = {.f = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getDoubleExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getDoubleExtra(jobject self_, jobject string, double d) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getDoubleExtra, "getDoubleExtra", "(Ljava/lang/String;D)D"); if (_m_Intent__getDoubleExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; double _result = (*jniEnv)->CallDoubleMethod( jniEnv, self_, _m_Intent__getDoubleExtra, string, d); - return (JniResult){.result = {.d = _result}, .exception = check_exception()}; + return (JniResult){.value = {.d = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getStringExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getStringExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getStringExtra, "getStringExtra", "(Ljava/lang/String;)Ljava/lang/String;"); if (_m_Intent__getStringExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getStringExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getCharSequenceExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getCharSequenceExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getCharSequenceExtra, "getCharSequenceExtra", "(Ljava/lang/String;)Ljava/lang/CharSequence;"); if (_m_Intent__getCharSequenceExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getCharSequenceExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getParcelableExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getParcelableExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getParcelableExtra, "getParcelableExtra", "(Ljava/lang/String;)Ljava/lang/Object;"); if (_m_Intent__getParcelableExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getParcelableExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getParcelableExtra1 = NULL; @@ -4432,35 +4376,33 @@ JniResult Intent__getParcelableExtra1(jobject self_, jobject string, jobject class) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getParcelableExtra1, "getParcelableExtra", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;"); if (_m_Intent__getParcelableExtra1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getParcelableExtra1, string, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getParcelableArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getParcelableArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getParcelableArrayExtra, "getParcelableArrayExtra", "(Ljava/lang/String;)[Landroid/os/Parcelable;"); if (_m_Intent__getParcelableArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getParcelableArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getParcelableArrayExtra1 = NULL; @@ -4469,36 +4411,34 @@ JniResult Intent__getParcelableArrayExtra1(jobject self_, jobject string, jobject class) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getParcelableArrayExtra1, "getParcelableArrayExtra", "(Ljava/lang/String;Ljava/lang/Class;)[Ljava/lang/Object;"); if (_m_Intent__getParcelableArrayExtra1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getParcelableArrayExtra1, string, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getParcelableArrayListExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getParcelableArrayListExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getParcelableArrayListExtra, "getParcelableArrayListExtra", "(Ljava/lang/String;)Ljava/util/ArrayList;"); if (_m_Intent__getParcelableArrayListExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getParcelableArrayListExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getParcelableArrayListExtra1 = NULL; @@ -4507,36 +4447,34 @@ JniResult Intent__getParcelableArrayListExtra1(jobject self_, jobject string, jobject class) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getParcelableArrayListExtra1, "getParcelableArrayListExtra", "(Ljava/lang/String;Ljava/lang/Class;)Ljava/util/ArrayList;"); if (_m_Intent__getParcelableArrayListExtra1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getParcelableArrayListExtra1, string, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getSerializableExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getSerializableExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getSerializableExtra, "getSerializableExtra", "(Ljava/lang/String;)Ljava/io/Serializable;"); if (_m_Intent__getSerializableExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getSerializableExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getSerializableExtra1 = NULL; @@ -4545,361 +4483,341 @@ JniResult Intent__getSerializableExtra1(jobject self_, jobject string, jobject class) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + 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;"); if (_m_Intent__getSerializableExtra1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getSerializableExtra1, string, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getIntegerArrayListExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getIntegerArrayListExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getIntegerArrayListExtra, "getIntegerArrayListExtra", "(Ljava/lang/String;)Ljava/util/ArrayList;"); if (_m_Intent__getIntegerArrayListExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getIntegerArrayListExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getStringArrayListExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getStringArrayListExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getStringArrayListExtra, "getStringArrayListExtra", "(Ljava/lang/String;)Ljava/util/ArrayList;"); if (_m_Intent__getStringArrayListExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getStringArrayListExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getCharSequenceArrayListExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getCharSequenceArrayListExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getCharSequenceArrayListExtra, "getCharSequenceArrayListExtra", "(Ljava/lang/String;)Ljava/util/ArrayList;"); if (_m_Intent__getCharSequenceArrayListExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getCharSequenceArrayListExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getBooleanArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getBooleanArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getBooleanArrayExtra, "getBooleanArrayExtra", "(Ljava/lang/String;)[Z"); if (_m_Intent__getBooleanArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getBooleanArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getByteArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getByteArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getByteArrayExtra, "getByteArrayExtra", "(Ljava/lang/String;)[B"); if (_m_Intent__getByteArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getByteArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getShortArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getShortArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getShortArrayExtra, "getShortArrayExtra", "(Ljava/lang/String;)[S"); if (_m_Intent__getShortArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getShortArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getCharArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getCharArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getCharArrayExtra, "getCharArrayExtra", "(Ljava/lang/String;)[C"); if (_m_Intent__getCharArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getCharArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getIntArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getIntArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getIntArrayExtra, "getIntArrayExtra", "(Ljava/lang/String;)[I"); if (_m_Intent__getIntArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getIntArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getLongArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getLongArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getLongArrayExtra, "getLongArrayExtra", "(Ljava/lang/String;)[J"); if (_m_Intent__getLongArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getLongArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getFloatArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getFloatArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getFloatArrayExtra, "getFloatArrayExtra", "(Ljava/lang/String;)[F"); if (_m_Intent__getFloatArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getFloatArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getDoubleArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getDoubleArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getDoubleArrayExtra, "getDoubleArrayExtra", "(Ljava/lang/String;)[D"); if (_m_Intent__getDoubleArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getDoubleArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getStringArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getStringArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getStringArrayExtra, "getStringArrayExtra", "(Ljava/lang/String;)[Ljava/lang/String;"); if (_m_Intent__getStringArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getStringArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getCharSequenceArrayExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getCharSequenceArrayExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getCharSequenceArrayExtra, "getCharSequenceArrayExtra", "(Ljava/lang/String;)[Ljava/lang/CharSequence;"); if (_m_Intent__getCharSequenceArrayExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getCharSequenceArrayExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getBundleExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getBundleExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getBundleExtra, "getBundleExtra", "(Ljava/lang/String;)Landroid/os/Bundle;"); if (_m_Intent__getBundleExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__getBundleExtra, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getExtras = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getExtras(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getExtras, "getExtras", "()Landroid/os/Bundle;"); if (_m_Intent__getExtras == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getExtras); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getFlags = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getFlags(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getFlags, "getFlags", "()I"); if (_m_Intent__getFlags == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Intent__getFlags); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Intent__getPackage = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getPackage(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getPackage, "getPackage", "()Ljava/lang/String;"); if (_m_Intent__getPackage == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getPackage); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getComponent = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getComponent(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getComponent, "getComponent", "()Landroid/content/ComponentName;"); if (_m_Intent__getComponent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getComponent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__getSourceBounds = NULL; FFI_PLUGIN_EXPORT JniResult Intent__getSourceBounds(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__getSourceBounds, "getSourceBounds", "()Landroid/graphics/Rect;"); if (_m_Intent__getSourceBounds == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__getSourceBounds); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__resolveActivity = NULL; FFI_PLUGIN_EXPORT JniResult Intent__resolveActivity(jobject self_, jobject packageManager) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__resolveActivity, "resolveActivity", "(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName;"); if (_m_Intent__resolveActivity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__resolveActivity, packageManager); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__resolveActivityInfo = NULL; @@ -4908,120 +4826,113 @@ JniResult Intent__resolveActivityInfo(jobject self_, jobject packageManager, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__resolveActivityInfo, "resolveActivityInfo", "(Landroid/content/pm/PackageManager;I)Landroid/content/pm/" "ActivityInfo;"); if (_m_Intent__resolveActivityInfo == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__resolveActivityInfo, packageManager, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setAction = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setAction(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setAction, "setAction", "(Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setAction == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__setAction, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setData = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setData(jobject self_, jobject uri) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setData, "setData", "(Landroid/net/Uri;)Landroid/content/Intent;"); if (_m_Intent__setData == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__setData, uri); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setDataAndNormalize = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setDataAndNormalize(jobject self_, jobject uri) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setDataAndNormalize, "setDataAndNormalize", "(Landroid/net/Uri;)Landroid/content/Intent;"); if (_m_Intent__setDataAndNormalize == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setDataAndNormalize, uri); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setType = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setType(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setType, "setType", "(Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setType == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__setType, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setTypeAndNormalize = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setTypeAndNormalize(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setTypeAndNormalize, "setTypeAndNormalize", "(Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setTypeAndNormalize == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setTypeAndNormalize, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setDataAndType = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setDataAndType(jobject self_, jobject uri, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setDataAndType, "setDataAndType", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setDataAndType == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setDataAndType, uri, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setDataAndTypeAndNormalize = NULL; @@ -5030,250 +4941,238 @@ JniResult Intent__setDataAndTypeAndNormalize(jobject self_, jobject uri, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setDataAndTypeAndNormalize, "setDataAndTypeAndNormalize", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setDataAndTypeAndNormalize == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setDataAndTypeAndNormalize, uri, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setIdentifier = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setIdentifier(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setIdentifier, "setIdentifier", "(Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setIdentifier == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setIdentifier, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__addCategory = NULL; FFI_PLUGIN_EXPORT JniResult Intent__addCategory(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__addCategory, "addCategory", "(Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__addCategory == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__addCategory, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__removeCategory = NULL; FFI_PLUGIN_EXPORT JniResult Intent__removeCategory(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__removeCategory, "removeCategory", "(Ljava/lang/String;)V"); if (_m_Intent__removeCategory == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__removeCategory, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__setSelector = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setSelector(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setSelector, "setSelector", "(Landroid/content/Intent;)V"); if (_m_Intent__setSelector == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__setSelector, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__setClipData = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setClipData(jobject self_, jobject clipData) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setClipData, "setClipData", "(Landroid/content/ClipData;)V"); if (_m_Intent__setClipData == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__setClipData, clipData); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__putExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra(jobject self_, jobject string, uint8_t z) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra, "putExtra", "(Ljava/lang/String;Z)Landroid/content/Intent;"); if (_m_Intent__putExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__putExtra, string, z); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra1 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra1(jobject self_, jobject string, int8_t b) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra1, "putExtra", "(Ljava/lang/String;B)Landroid/content/Intent;"); if (_m_Intent__putExtra1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra1, string, b); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra2 = NULL; FFI_PLUGIN_EXPORT -JniResult Intent__putExtra2(jobject self_, jobject string, char c) { +JniResult Intent__putExtra2(jobject self_, jobject string, uint16_t c) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra2, "putExtra", "(Ljava/lang/String;C)Landroid/content/Intent;"); if (_m_Intent__putExtra2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra2, string, c); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra3 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra3(jobject self_, jobject string, int16_t s) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra3, "putExtra", "(Ljava/lang/String;S)Landroid/content/Intent;"); if (_m_Intent__putExtra3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra3, string, s); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra4 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra4(jobject self_, jobject string, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra4, "putExtra", "(Ljava/lang/String;I)Landroid/content/Intent;"); if (_m_Intent__putExtra4 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra4, string, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra5 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra5(jobject self_, jobject string, int64_t j) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra5, "putExtra", "(Ljava/lang/String;J)Landroid/content/Intent;"); if (_m_Intent__putExtra5 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra5, string, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra6 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra6(jobject self_, jobject string, float f) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra6, "putExtra", "(Ljava/lang/String;F)Landroid/content/Intent;"); if (_m_Intent__putExtra6 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra6, string, f); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra7 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra7(jobject self_, jobject string, double d) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra7, "putExtra", "(Ljava/lang/String;D)Landroid/content/Intent;"); if (_m_Intent__putExtra7 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra7, string, d); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra8 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra8(jobject self_, jobject string, jobject string1) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra8, "putExtra", "(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__putExtra8 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra8, string, string1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra9 = NULL; @@ -5282,18 +5181,17 @@ JniResult Intent__putExtra9(jobject self_, jobject string, jobject charSequence) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putExtra9, "putExtra", "(Ljava/lang/String;Ljava/lang/CharSequence;)Landroid/content/Intent;"); if (_m_Intent__putExtra9 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra9, string, charSequence); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra10 = NULL; @@ -5302,18 +5200,17 @@ JniResult Intent__putExtra10(jobject self_, jobject string, jobject parcelable) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putExtra10, "putExtra", "(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;"); if (_m_Intent__putExtra10 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra10, string, parcelable); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra11 = NULL; @@ -5322,18 +5219,17 @@ JniResult Intent__putExtra11(jobject self_, jobject string, jobject parcelables) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putExtra11, "putExtra", "(Ljava/lang/String;[Landroid/os/Parcelable;)Landroid/content/Intent;"); if (_m_Intent__putExtra11 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra11, string, parcelables); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putParcelableArrayListExtra = NULL; @@ -5342,19 +5238,18 @@ JniResult Intent__putParcelableArrayListExtra(jobject self_, jobject string, jobject arrayList) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putParcelableArrayListExtra, "putParcelableArrayListExtra", "(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;"); if (_m_Intent__putParcelableArrayListExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putParcelableArrayListExtra, string, arrayList); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putIntegerArrayListExtra = NULL; @@ -5363,19 +5258,18 @@ JniResult Intent__putIntegerArrayListExtra(jobject self_, jobject string, jobject arrayList) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putIntegerArrayListExtra, "putIntegerArrayListExtra", "(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;"); if (_m_Intent__putIntegerArrayListExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putIntegerArrayListExtra, string, arrayList); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putStringArrayListExtra = NULL; @@ -5384,18 +5278,17 @@ JniResult Intent__putStringArrayListExtra(jobject self_, jobject string, jobject arrayList) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putStringArrayListExtra, "putStringArrayListExtra", "(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;"); if (_m_Intent__putStringArrayListExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putStringArrayListExtra, string, arrayList); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putCharSequenceArrayListExtra = NULL; @@ -5404,20 +5297,19 @@ JniResult Intent__putCharSequenceArrayListExtra(jobject self_, jobject string, jobject arrayList) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putCharSequenceArrayListExtra, "putCharSequenceArrayListExtra", "(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;"); if (_m_Intent__putCharSequenceArrayListExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putCharSequenceArrayListExtra, string, arrayList); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra12 = NULL; @@ -5426,172 +5318,162 @@ JniResult Intent__putExtra12(jobject self_, jobject string, jobject serializable) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putExtra12, "putExtra", "(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;"); if (_m_Intent__putExtra12 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra12, string, serializable); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra13 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra13(jobject self_, jobject string, jobject zs) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra13, "putExtra", "(Ljava/lang/String;[Z)Landroid/content/Intent;"); if (_m_Intent__putExtra13 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra13, string, zs); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra14 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra14(jobject self_, jobject string, jobject bs) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra14, "putExtra", "(Ljava/lang/String;[B)Landroid/content/Intent;"); if (_m_Intent__putExtra14 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra14, string, bs); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra15 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra15(jobject self_, jobject string, jobject ss) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra15, "putExtra", "(Ljava/lang/String;[S)Landroid/content/Intent;"); if (_m_Intent__putExtra15 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra15, string, ss); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra16 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra16(jobject self_, jobject string, jobject cs) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra16, "putExtra", "(Ljava/lang/String;[C)Landroid/content/Intent;"); if (_m_Intent__putExtra16 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra16, string, cs); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra17 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra17(jobject self_, jobject string, jobject is) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra17, "putExtra", "(Ljava/lang/String;[I)Landroid/content/Intent;"); if (_m_Intent__putExtra17 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra17, string, is); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra18 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra18(jobject self_, jobject string, jobject js) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra18, "putExtra", "(Ljava/lang/String;[J)Landroid/content/Intent;"); if (_m_Intent__putExtra18 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra18, string, js); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra19 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra19(jobject self_, jobject string, jobject fs) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra19, "putExtra", "(Ljava/lang/String;[F)Landroid/content/Intent;"); if (_m_Intent__putExtra19 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra19, string, fs); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra20 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra20(jobject self_, jobject string, jobject ds) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtra20, "putExtra", "(Ljava/lang/String;[D)Landroid/content/Intent;"); if (_m_Intent__putExtra20 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra20, string, ds); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra21 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra21(jobject self_, jobject string, jobject strings) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putExtra21, "putExtra", "(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__putExtra21 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra21, string, strings); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra22 = NULL; @@ -5600,219 +5482,208 @@ JniResult Intent__putExtra22(jobject self_, jobject string, jobject charSequences) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putExtra22, "putExtra", "(Ljava/lang/String;[Ljava/lang/CharSequence;)Landroid/content/Intent;"); if (_m_Intent__putExtra22 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra22, string, charSequences); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtra23 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtra23(jobject self_, jobject string, jobject bundle) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__putExtra23, "putExtra", "(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;"); if (_m_Intent__putExtra23 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__putExtra23, string, bundle); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtras = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtras(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtras, "putExtras", "(Landroid/content/Intent;)Landroid/content/Intent;"); if (_m_Intent__putExtras == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__putExtras, intent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__putExtras1 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__putExtras1(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__putExtras1, "putExtras", "(Landroid/os/Bundle;)Landroid/content/Intent;"); if (_m_Intent__putExtras1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__putExtras1, bundle); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__replaceExtras = NULL; FFI_PLUGIN_EXPORT JniResult Intent__replaceExtras(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__replaceExtras, "replaceExtras", "(Landroid/content/Intent;)Landroid/content/Intent;"); if (_m_Intent__replaceExtras == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__replaceExtras, intent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__replaceExtras1 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__replaceExtras1(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__replaceExtras1, "replaceExtras", "(Landroid/os/Bundle;)Landroid/content/Intent;"); if (_m_Intent__replaceExtras1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__replaceExtras1, bundle); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__removeExtra = NULL; FFI_PLUGIN_EXPORT JniResult Intent__removeExtra(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__removeExtra, "removeExtra", "(Ljava/lang/String;)V"); if (_m_Intent__removeExtra == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__removeExtra, string); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__setFlags = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setFlags(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setFlags, "setFlags", "(I)Landroid/content/Intent;"); if (_m_Intent__setFlags == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__setFlags, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__addFlags = NULL; FFI_PLUGIN_EXPORT JniResult Intent__addFlags(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__addFlags, "addFlags", "(I)Landroid/content/Intent;"); if (_m_Intent__addFlags == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__addFlags, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__removeFlags = NULL; FFI_PLUGIN_EXPORT JniResult Intent__removeFlags(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__removeFlags, "removeFlags", "(I)V"); if (_m_Intent__removeFlags == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__removeFlags, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__setPackage = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setPackage(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setPackage, "setPackage", "(Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setPackage == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__setPackage, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setComponent = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setComponent(jobject self_, jobject componentName) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setComponent, "setComponent", "(Landroid/content/ComponentName;)Landroid/content/Intent;"); if (_m_Intent__setComponent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setComponent, componentName); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setClassName = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setClassName(jobject self_, jobject context, jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__setClassName, "setClassName", "(Landroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setClassName == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setClassName, context, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setClassName1 = NULL; @@ -5821,192 +5692,187 @@ JniResult Intent__setClassName1(jobject self_, jobject string, jobject string1) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setClassName1, "setClassName", "(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;"); if (_m_Intent__setClassName1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setClassName1, string, string1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setClass = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setClass(jobject self_, jobject context, jobject class) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Intent, &_m_Intent__setClass, "setClass", "(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;"); if (_m_Intent__setClass == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Intent__setClass, context, class); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__setSourceBounds = NULL; FFI_PLUGIN_EXPORT JniResult Intent__setSourceBounds(jobject self_, jobject rect) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__setSourceBounds, "setSourceBounds", "(Landroid/graphics/Rect;)V"); if (_m_Intent__setSourceBounds == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__setSourceBounds, rect); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__fillIn = NULL; FFI_PLUGIN_EXPORT JniResult Intent__fillIn(jobject self_, jobject intent, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__fillIn, "fillIn", "(Landroid/content/Intent;I)I"); if (_m_Intent__fillIn == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Intent__fillIn, intent, i); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Intent__filterEquals = NULL; FFI_PLUGIN_EXPORT JniResult Intent__filterEquals(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__filterEquals, "filterEquals", "(Landroid/content/Intent;)Z"); if (_m_Intent__filterEquals == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Intent__filterEquals, intent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Intent__filterHashCode = NULL; FFI_PLUGIN_EXPORT JniResult Intent__filterHashCode(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__filterHashCode, "filterHashCode", "()I"); if (_m_Intent__filterHashCode == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Intent__filterHashCode); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Intent__toString1 = NULL; FFI_PLUGIN_EXPORT JniResult Intent__toString1(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__toString1, "toString", "()Ljava/lang/String;"); if (_m_Intent__toString1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__toString1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__toURI = NULL; FFI_PLUGIN_EXPORT JniResult Intent__toURI(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__toURI, "toURI", "()Ljava/lang/String;"); if (_m_Intent__toURI == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__toURI); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__toUri = NULL; FFI_PLUGIN_EXPORT JniResult Intent__toUri(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__toUri, "toUri", "(I)Ljava/lang/String;"); if (_m_Intent__toUri == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Intent__toUri, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__describeContents = NULL; FFI_PLUGIN_EXPORT JniResult Intent__describeContents(jobject self_) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__describeContents, "describeContents", "()I"); if (_m_Intent__describeContents == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Intent__describeContents); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Intent__writeToParcel = NULL; FFI_PLUGIN_EXPORT JniResult Intent__writeToParcel(jobject self_, jobject parcel, int32_t i) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__writeToParcel, "writeToParcel", "(Landroid/os/Parcel;I)V"); if (_m_Intent__writeToParcel == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__writeToParcel, parcel, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__readFromParcel = NULL; FFI_PLUGIN_EXPORT JniResult Intent__readFromParcel(jobject self_, jobject parcel) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Intent, &_m_Intent__readFromParcel, "readFromParcel", "(Landroid/os/Parcel;)V"); if (_m_Intent__readFromParcel == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Intent__readFromParcel, parcel); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Intent__parseIntent = NULL; @@ -6015,52 +5881,50 @@ JniResult Intent__parseIntent(jobject resources, jobject xmlPullParser, jobject attributeSet) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method( _c_Intent, &_m_Intent__parseIntent, "parseIntent", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/" "util/AttributeSet;)Landroid/content/Intent;"); if (_m_Intent__parseIntent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__parseIntent, resources, xmlPullParser, attributeSet); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Intent__normalizeMimeType = NULL; FFI_PLUGIN_EXPORT JniResult Intent__normalizeMimeType(jobject string) { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Intent, &_m_Intent__normalizeMimeType, "normalizeMimeType", "(Ljava/lang/String;)Ljava/lang/String;"); if (_m_Intent__normalizeMimeType == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Intent, _m_Intent__normalizeMimeType, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jfieldID _f_Intent__CREATOR = NULL; FFI_PLUGIN_EXPORT JniResult get_Intent__CREATOR() { load_env(); - load_class_gr(&_c_Intent, "android/content/Intent"); + load_class_global_ref(&_c_Intent, "android/content/Intent"); if (_c_Intent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field(_c_Intent, &_f_Intent__CREATOR, "CREATOR", "Landroid/os/Parcelable$Creator;"); - jobject _result = to_global_ref( - (*jniEnv)->GetStaticObjectField(jniEnv, _c_Intent, _f_Intent__CREATOR)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = + (*jniEnv)->GetStaticObjectField(jniEnv, _c_Intent, _f_Intent__CREATOR); + return to_global_ref_result(_result); } // android.app.Activity @@ -6070,48 +5934,46 @@ jmethodID _m_Activity__ctor = NULL; FFI_PLUGIN_EXPORT JniResult Activity__ctor() { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__ctor, "", "()V"); if (_m_Activity__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Activity, _m_Activity__ctor); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getIntent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getIntent(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getIntent, "getIntent", "()Landroid/content/Intent;"); if (_m_Activity__getIntent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getIntent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setIntent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setIntent(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setIntent, "setIntent", "(Landroid/content/Intent;)V"); if (_m_Activity__setIntent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setIntent, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setLocusContext = NULL; @@ -6120,149 +5982,143 @@ JniResult Activity__setLocusContext(jobject self_, jobject locusId, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setLocusContext, "setLocusContext", "(Landroid/content/LocusId;Landroid/os/Bundle;)V"); if (_m_Activity__setLocusContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setLocusContext, locusId, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getApplication = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getApplication(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getApplication, "getApplication", "()Landroid/app/Application;"); if (_m_Activity__getApplication == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getApplication); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__isChild = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isChild(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isChild, "isChild", "()Z"); if (_m_Activity__isChild == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Activity__isChild); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__getParent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getParent(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getParent, "getParent", "()Landroid/app/Activity;"); if (_m_Activity__getParent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getParent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getWindowManager = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getWindowManager(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getWindowManager, "getWindowManager", "()Landroid/view/WindowManager;"); if (_m_Activity__getWindowManager == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getWindowManager); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getWindow = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getWindow(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getWindow, "getWindow", "()Landroid/view/Window;"); if (_m_Activity__getWindow == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getWindow); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getLoaderManager = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getLoaderManager(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getLoaderManager, "getLoaderManager", "()Landroid/app/LoaderManager;"); if (_m_Activity__getLoaderManager == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getLoaderManager); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getCurrentFocus = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getCurrentFocus(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getCurrentFocus, "getCurrentFocus", "()Landroid/view/View;"); if (_m_Activity__getCurrentFocus == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getCurrentFocus); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__attachBaseContext = NULL; FFI_PLUGIN_EXPORT JniResult Activity__attachBaseContext(jobject self_, jobject context) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__attachBaseContext, "attachBaseContext", "(Landroid/content/Context;)V"); if (_m_Activity__attachBaseContext == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__attachBaseContext, context); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__registerActivityLifecycleCallbacks = NULL; @@ -6271,18 +6127,18 @@ JniResult Activity__registerActivityLifecycleCallbacks( jobject self_, jobject activityLifecycleCallbacks) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__registerActivityLifecycleCallbacks, "registerActivityLifecycleCallbacks", "(Landroid/app/Application$ActivityLifecycleCallbacks;)V"); if (_m_Activity__registerActivityLifecycleCallbacks == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__registerActivityLifecycleCallbacks, activityLifecycleCallbacks); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__unregisterActivityLifecycleCallbacks = NULL; @@ -6291,18 +6147,18 @@ JniResult Activity__unregisterActivityLifecycleCallbacks( jobject self_, jobject activityLifecycleCallbacks) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__unregisterActivityLifecycleCallbacks, "unregisterActivityLifecycleCallbacks", "(Landroid/app/Application$ActivityLifecycleCallbacks;)V"); if (_m_Activity__unregisterActivityLifecycleCallbacks == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__unregisterActivityLifecycleCallbacks, activityLifecycleCallbacks); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__registerComponentCallbacks = NULL; @@ -6310,18 +6166,18 @@ FFI_PLUGIN_EXPORT JniResult Activity__registerComponentCallbacks(jobject self_, jobject componentCallbacks) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__registerComponentCallbacks, "registerComponentCallbacks", "(Landroid/content/ComponentCallbacks;)V"); if (_m_Activity__registerComponentCallbacks == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__registerComponentCallbacks, componentCallbacks); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__unregisterComponentCallbacks = NULL; @@ -6329,50 +6185,49 @@ FFI_PLUGIN_EXPORT JniResult Activity__unregisterComponentCallbacks(jobject self_, jobject componentCallbacks) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__unregisterComponentCallbacks, "unregisterComponentCallbacks", "(Landroid/content/ComponentCallbacks;)V"); if (_m_Activity__unregisterComponentCallbacks == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__unregisterComponentCallbacks, componentCallbacks); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onCreate = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onCreate(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreate, "onCreate", "(Landroid/os/Bundle;)V"); if (_m_Activity__onCreate == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onCreate, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getSplashScreen = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getSplashScreen(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getSplashScreen, "getSplashScreen", "()Landroid/window/SplashScreen;"); if (_m_Activity__getSplashScreen == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getSplashScreen); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onCreate1 = NULL; @@ -6381,32 +6236,32 @@ JniResult Activity__onCreate1(jobject self_, jobject bundle, jobject persistableBundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreate1, "onCreate", "(Landroid/os/Bundle;Landroid/os/PersistableBundle;)V"); if (_m_Activity__onCreate1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onCreate1, bundle, persistableBundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onRestoreInstanceState = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onRestoreInstanceState(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onRestoreInstanceState, "onRestoreInstanceState", "(Landroid/os/Bundle;)V"); if (_m_Activity__onRestoreInstanceState == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onRestoreInstanceState, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onRestoreInstanceState1 = NULL; @@ -6415,32 +6270,32 @@ JniResult Activity__onRestoreInstanceState1(jobject self_, jobject bundle, jobject persistableBundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onRestoreInstanceState1, "onRestoreInstanceState", "(Landroid/os/Bundle;Landroid/os/PersistableBundle;)V"); if (_m_Activity__onRestoreInstanceState1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onRestoreInstanceState1, bundle, persistableBundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPostCreate = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onPostCreate(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPostCreate, "onPostCreate", "(Landroid/os/Bundle;)V"); if (_m_Activity__onPostCreate == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPostCreate, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPostCreate1 = NULL; @@ -6449,263 +6304,262 @@ JniResult Activity__onPostCreate1(jobject self_, jobject bundle, jobject persistableBundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPostCreate1, "onPostCreate", "(Landroid/os/Bundle;Landroid/os/PersistableBundle;)V"); if (_m_Activity__onPostCreate1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPostCreate1, bundle, persistableBundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onStart = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onStart(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onStart, "onStart", "()V"); if (_m_Activity__onStart == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onStart); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onRestart = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onRestart(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onRestart, "onRestart", "()V"); if (_m_Activity__onRestart == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onRestart); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onStateNotSaved = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onStateNotSaved(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onStateNotSaved, "onStateNotSaved", "()V"); if (_m_Activity__onStateNotSaved == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onStateNotSaved); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onResume = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onResume(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onResume, "onResume", "()V"); if (_m_Activity__onResume == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onResume); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPostResume = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onPostResume(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPostResume, "onPostResume", "()V"); if (_m_Activity__onPostResume == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPostResume); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onTopResumedActivityChanged = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onTopResumedActivityChanged(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onTopResumedActivityChanged, "onTopResumedActivityChanged", "(Z)V"); if (_m_Activity__onTopResumedActivityChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onTopResumedActivityChanged, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__isVoiceInteraction = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isVoiceInteraction(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isVoiceInteraction, "isVoiceInteraction", "()Z"); if (_m_Activity__isVoiceInteraction == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__isVoiceInteraction); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__isVoiceInteractionRoot = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isVoiceInteractionRoot(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isVoiceInteractionRoot, "isVoiceInteractionRoot", "()Z"); if (_m_Activity__isVoiceInteractionRoot == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__isVoiceInteractionRoot); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__getVoiceInteractor = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getVoiceInteractor(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getVoiceInteractor, "getVoiceInteractor", "()Landroid/app/VoiceInteractor;"); if (_m_Activity__getVoiceInteractor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getVoiceInteractor); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__isLocalVoiceInteractionSupported = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isLocalVoiceInteractionSupported(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isLocalVoiceInteractionSupported, "isLocalVoiceInteractionSupported", "()Z"); if (_m_Activity__isLocalVoiceInteractionSupported == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__isLocalVoiceInteractionSupported); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__startLocalVoiceInteraction = NULL; FFI_PLUGIN_EXPORT JniResult Activity__startLocalVoiceInteraction(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startLocalVoiceInteraction, "startLocalVoiceInteraction", "(Landroid/os/Bundle;)V"); if (_m_Activity__startLocalVoiceInteraction == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startLocalVoiceInteraction, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onLocalVoiceInteractionStarted = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onLocalVoiceInteractionStarted(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onLocalVoiceInteractionStarted, "onLocalVoiceInteractionStarted", "()V"); if (_m_Activity__onLocalVoiceInteractionStarted == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onLocalVoiceInteractionStarted); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onLocalVoiceInteractionStopped = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onLocalVoiceInteractionStopped(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onLocalVoiceInteractionStopped, "onLocalVoiceInteractionStopped", "()V"); if (_m_Activity__onLocalVoiceInteractionStopped == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onLocalVoiceInteractionStopped); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__stopLocalVoiceInteraction = NULL; FFI_PLUGIN_EXPORT JniResult Activity__stopLocalVoiceInteraction(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__stopLocalVoiceInteraction, "stopLocalVoiceInteraction", "()V"); if (_m_Activity__stopLocalVoiceInteraction == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__stopLocalVoiceInteraction); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onNewIntent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onNewIntent(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onNewIntent, "onNewIntent", "(Landroid/content/Intent;)V"); if (_m_Activity__onNewIntent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onNewIntent, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onSaveInstanceState = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onSaveInstanceState(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onSaveInstanceState, "onSaveInstanceState", "(Landroid/os/Bundle;)V"); if (_m_Activity__onSaveInstanceState == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onSaveInstanceState, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onSaveInstanceState1 = NULL; @@ -6714,46 +6568,46 @@ JniResult Activity__onSaveInstanceState1(jobject self_, jobject bundle, jobject persistableBundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onSaveInstanceState1, "onSaveInstanceState", "(Landroid/os/Bundle;Landroid/os/PersistableBundle;)V"); if (_m_Activity__onSaveInstanceState1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onSaveInstanceState1, bundle, persistableBundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPause = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onPause(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPause, "onPause", "()V"); if (_m_Activity__onPause == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPause); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onUserLeaveHint = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onUserLeaveHint(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onUserLeaveHint, "onUserLeaveHint", "()V"); if (_m_Activity__onUserLeaveHint == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onUserLeaveHint); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onCreateThumbnail = NULL; @@ -6762,49 +6616,48 @@ JniResult Activity__onCreateThumbnail(jobject self_, jobject bitmap, jobject canvas) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateThumbnail, "onCreateThumbnail", "(Landroid/graphics/Bitmap;Landroid/graphics/Canvas;)Z"); if (_m_Activity__onCreateThumbnail == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onCreateThumbnail, bitmap, canvas); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onCreateDescription = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onCreateDescription(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateDescription, "onCreateDescription", "()Ljava/lang/CharSequence;"); if (_m_Activity__onCreateDescription == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__onCreateDescription); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onProvideAssistData = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onProvideAssistData(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onProvideAssistData, "onProvideAssistData", "(Landroid/os/Bundle;)V"); if (_m_Activity__onProvideAssistData == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onProvideAssistData, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onProvideAssistContent = NULL; @@ -6812,17 +6665,17 @@ FFI_PLUGIN_EXPORT JniResult Activity__onProvideAssistContent(jobject self_, jobject assistContent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onProvideAssistContent, "onProvideAssistContent", "(Landroid/app/assist/AssistContent;)V"); if (_m_Activity__onProvideAssistContent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onProvideAssistContent, assistContent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onGetDirectActions = NULL; @@ -6831,17 +6684,17 @@ JniResult Activity__onGetDirectActions(jobject self_, jobject cancellationSignal, jobject consumer) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Activity, &_m_Activity__onGetDirectActions, "onGetDirectActions", "(Landroid/os/CancellationSignal;Ljava/util/function/Consumer;)V"); if (_m_Activity__onGetDirectActions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onGetDirectActions, cancellationSignal, consumer); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPerformDirectAction = NULL; @@ -6852,50 +6705,50 @@ JniResult Activity__onPerformDirectAction(jobject self_, jobject cancellationSignal, jobject consumer) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPerformDirectAction, "onPerformDirectAction", "(Ljava/lang/String;Landroid/os/Bundle;Landroid/os/" "CancellationSignal;Ljava/util/function/Consumer;)V"); if (_m_Activity__onPerformDirectAction == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPerformDirectAction, string, bundle, cancellationSignal, consumer); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__requestShowKeyboardShortcuts = NULL; FFI_PLUGIN_EXPORT JniResult Activity__requestShowKeyboardShortcuts(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__requestShowKeyboardShortcuts, "requestShowKeyboardShortcuts", "()V"); if (_m_Activity__requestShowKeyboardShortcuts == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__requestShowKeyboardShortcuts); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__dismissKeyboardShortcutsHelper = NULL; FFI_PLUGIN_EXPORT JniResult Activity__dismissKeyboardShortcutsHelper(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dismissKeyboardShortcutsHelper, "dismissKeyboardShortcutsHelper", "()V"); if (_m_Activity__dismissKeyboardShortcutsHelper == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__dismissKeyboardShortcutsHelper); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onProvideKeyboardShortcuts = NULL; @@ -6905,76 +6758,76 @@ JniResult Activity__onProvideKeyboardShortcuts(jobject self_, jobject menu, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onProvideKeyboardShortcuts, "onProvideKeyboardShortcuts", "(Ljava/util/List;Landroid/view/Menu;I)V"); if (_m_Activity__onProvideKeyboardShortcuts == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Activity__onProvideKeyboardShortcuts, list, menu, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__showAssist = NULL; FFI_PLUGIN_EXPORT JniResult Activity__showAssist(jobject self_, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__showAssist, "showAssist", "(Landroid/os/Bundle;)Z"); if (_m_Activity__showAssist == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__showAssist, bundle); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onStop = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onStop(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onStop, "onStop", "()V"); if (_m_Activity__onStop == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onStop); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onDestroy = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onDestroy(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onDestroy, "onDestroy", "()V"); if (_m_Activity__onDestroy == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onDestroy); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__reportFullyDrawn = NULL; FFI_PLUGIN_EXPORT JniResult Activity__reportFullyDrawn(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__reportFullyDrawn, "reportFullyDrawn", "()V"); if (_m_Activity__reportFullyDrawn == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__reportFullyDrawn); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onMultiWindowModeChanged = NULL; @@ -6983,49 +6836,49 @@ JniResult Activity__onMultiWindowModeChanged(jobject self_, uint8_t z, jobject configuration) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onMultiWindowModeChanged, "onMultiWindowModeChanged", "(ZLandroid/content/res/Configuration;)V"); if (_m_Activity__onMultiWindowModeChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Activity__onMultiWindowModeChanged, z, configuration); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onMultiWindowModeChanged1 = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onMultiWindowModeChanged1(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onMultiWindowModeChanged1, "onMultiWindowModeChanged", "(Z)V"); if (_m_Activity__onMultiWindowModeChanged1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onMultiWindowModeChanged1, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__isInMultiWindowMode = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isInMultiWindowMode(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isInMultiWindowMode, "isInMultiWindowMode", "()Z"); if (_m_Activity__isInMultiWindowMode == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__isInMultiWindowMode); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onPictureInPictureModeChanged = NULL; @@ -7034,18 +6887,18 @@ JniResult Activity__onPictureInPictureModeChanged(jobject self_, uint8_t z, jobject configuration) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPictureInPictureModeChanged, "onPictureInPictureModeChanged", "(ZLandroid/content/res/Configuration;)V"); if (_m_Activity__onPictureInPictureModeChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPictureInPictureModeChanged, z, configuration); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPictureInPictureUiStateChanged = NULL; @@ -7054,66 +6907,66 @@ JniResult Activity__onPictureInPictureUiStateChanged( jobject self_, jobject pictureInPictureUiState) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPictureInPictureUiStateChanged, "onPictureInPictureUiStateChanged", "(Landroid/app/PictureInPictureUiState;)V"); if (_m_Activity__onPictureInPictureUiStateChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPictureInPictureUiStateChanged, pictureInPictureUiState); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPictureInPictureModeChanged1 = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onPictureInPictureModeChanged1(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPictureInPictureModeChanged1, "onPictureInPictureModeChanged", "(Z)V"); if (_m_Activity__onPictureInPictureModeChanged1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPictureInPictureModeChanged1, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__isInPictureInPictureMode = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isInPictureInPictureMode(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isInPictureInPictureMode, "isInPictureInPictureMode", "()Z"); if (_m_Activity__isInPictureInPictureMode == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__isInPictureInPictureMode); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__enterPictureInPictureMode = NULL; FFI_PLUGIN_EXPORT JniResult Activity__enterPictureInPictureMode(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__enterPictureInPictureMode, "enterPictureInPictureMode", "()V"); if (_m_Activity__enterPictureInPictureMode == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__enterPictureInPictureMode); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__enterPictureInPictureMode1 = NULL; @@ -7121,18 +6974,18 @@ FFI_PLUGIN_EXPORT JniResult Activity__enterPictureInPictureMode1(jobject self_, jobject pictureInPictureParams) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__enterPictureInPictureMode1, "enterPictureInPictureMode", "(Landroid/app/PictureInPictureParams;)Z"); if (_m_Activity__enterPictureInPictureMode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__enterPictureInPictureMode1, pictureInPictureParams); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__setPictureInPictureParams = NULL; @@ -7140,82 +6993,82 @@ FFI_PLUGIN_EXPORT JniResult Activity__setPictureInPictureParams(jobject self_, jobject pictureInPictureParams) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setPictureInPictureParams, "setPictureInPictureParams", "(Landroid/app/PictureInPictureParams;)V"); if (_m_Activity__setPictureInPictureParams == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setPictureInPictureParams, pictureInPictureParams); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getMaxNumPictureInPictureActions = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getMaxNumPictureInPictureActions(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getMaxNumPictureInPictureActions, "getMaxNumPictureInPictureActions", "()I"); if (_m_Activity__getMaxNumPictureInPictureActions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Activity__getMaxNumPictureInPictureActions); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onPictureInPictureRequested = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onPictureInPictureRequested(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPictureInPictureRequested, "onPictureInPictureRequested", "()Z"); if (_m_Activity__onPictureInPictureRequested == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onPictureInPictureRequested); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__setShouldDockBigOverlays = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setShouldDockBigOverlays(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setShouldDockBigOverlays, "setShouldDockBigOverlays", "(Z)V"); if (_m_Activity__setShouldDockBigOverlays == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setShouldDockBigOverlays, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__shouldDockBigOverlays = NULL; FFI_PLUGIN_EXPORT JniResult Activity__shouldDockBigOverlays(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__shouldDockBigOverlays, "shouldDockBigOverlays", "()Z"); if (_m_Activity__shouldDockBigOverlays == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__shouldDockBigOverlays); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onConfigurationChanged = NULL; @@ -7223,128 +7076,125 @@ FFI_PLUGIN_EXPORT JniResult Activity__onConfigurationChanged(jobject self_, jobject configuration) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onConfigurationChanged, "onConfigurationChanged", "(Landroid/content/res/Configuration;)V"); if (_m_Activity__onConfigurationChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onConfigurationChanged, configuration); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getChangingConfigurations = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getChangingConfigurations(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getChangingConfigurations, "getChangingConfigurations", "()I"); if (_m_Activity__getChangingConfigurations == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Activity__getChangingConfigurations); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Activity__getLastNonConfigurationInstance = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getLastNonConfigurationInstance(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getLastNonConfigurationInstance, "getLastNonConfigurationInstance", "()Ljava/lang/Object;"); if (_m_Activity__getLastNonConfigurationInstance == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getLastNonConfigurationInstance); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onRetainNonConfigurationInstance = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onRetainNonConfigurationInstance(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onRetainNonConfigurationInstance, "onRetainNonConfigurationInstance", "()Ljava/lang/Object;"); if (_m_Activity__onRetainNonConfigurationInstance == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__onRetainNonConfigurationInstance); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onLowMemory = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onLowMemory(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onLowMemory, "onLowMemory", "()V"); if (_m_Activity__onLowMemory == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onLowMemory); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onTrimMemory = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onTrimMemory(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onTrimMemory, "onTrimMemory", "(I)V"); if (_m_Activity__onTrimMemory == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onTrimMemory, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getFragmentManager = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getFragmentManager(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getFragmentManager, "getFragmentManager", "()Landroid/app/FragmentManager;"); if (_m_Activity__getFragmentManager == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getFragmentManager); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onAttachFragment = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onAttachFragment(jobject self_, jobject fragment) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onAttachFragment, "onAttachFragment", "(Landroid/app/Fragment;)V"); if (_m_Activity__onAttachFragment == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onAttachFragment, fragment); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__managedQuery = NULL; @@ -7356,147 +7206,143 @@ JniResult Activity__managedQuery(jobject self_, jobject strings1, jobject string1) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__managedQuery, "managedQuery", "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/" "lang/String;Ljava/lang/String;)Landroid/database/Cursor;"); if (_m_Activity__managedQuery == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__managedQuery, uri, strings, string, strings1, string1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__startManagingCursor = NULL; FFI_PLUGIN_EXPORT JniResult Activity__startManagingCursor(jobject self_, jobject cursor) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startManagingCursor, "startManagingCursor", "(Landroid/database/Cursor;)V"); if (_m_Activity__startManagingCursor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startManagingCursor, cursor); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__stopManagingCursor = NULL; FFI_PLUGIN_EXPORT JniResult Activity__stopManagingCursor(jobject self_, jobject cursor) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__stopManagingCursor, "stopManagingCursor", "(Landroid/database/Cursor;)V"); if (_m_Activity__stopManagingCursor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__stopManagingCursor, cursor); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__findViewById = NULL; FFI_PLUGIN_EXPORT JniResult Activity__findViewById(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__findViewById, "findViewById", "(I)Ljava/lang/Object;"); if (_m_Activity__findViewById == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__findViewById, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__requireViewById = NULL; FFI_PLUGIN_EXPORT JniResult Activity__requireViewById(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__requireViewById, "requireViewById", "(I)Ljava/lang/Object;"); if (_m_Activity__requireViewById == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__requireViewById, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getActionBar = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getActionBar(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getActionBar, "getActionBar", "()Landroid/app/ActionBar;"); if (_m_Activity__getActionBar == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getActionBar); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setActionBar = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setActionBar(jobject self_, jobject toolbar) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setActionBar, "setActionBar", "(Landroid/widget/Toolbar;)V"); if (_m_Activity__setActionBar == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setActionBar, toolbar); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setContentView = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setContentView(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setContentView, "setContentView", "(I)V"); if (_m_Activity__setContentView == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setContentView, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setContentView1 = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setContentView1(jobject self_, jobject view) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setContentView1, "setContentView", "(Landroid/view/View;)V"); if (_m_Activity__setContentView1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setContentView1, view); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setContentView2 = NULL; @@ -7505,16 +7351,16 @@ JniResult Activity__setContentView2(jobject self_, jobject view, jobject layoutParams) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setContentView2, "setContentView", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V"); if (_m_Activity__setContentView2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setContentView2, view, layoutParams); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__addContentView = NULL; @@ -7523,34 +7369,33 @@ JniResult Activity__addContentView(jobject self_, jobject view, jobject layoutParams) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__addContentView, "addContentView", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V"); if (_m_Activity__addContentView == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__addContentView, view, layoutParams); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getContentTransitionManager = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getContentTransitionManager(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getContentTransitionManager, "getContentTransitionManager", "()Landroid/transition/TransitionManager;"); if (_m_Activity__getContentTransitionManager == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getContentTransitionManager); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setContentTransitionManager = NULL; @@ -7558,114 +7403,113 @@ FFI_PLUGIN_EXPORT JniResult Activity__setContentTransitionManager(jobject self_, jobject transitionManager) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setContentTransitionManager, "setContentTransitionManager", "(Landroid/transition/TransitionManager;)V"); if (_m_Activity__setContentTransitionManager == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setContentTransitionManager, transitionManager); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getContentScene = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getContentScene(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getContentScene, "getContentScene", "()Landroid/transition/Scene;"); if (_m_Activity__getContentScene == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getContentScene); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setFinishOnTouchOutside = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setFinishOnTouchOutside(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setFinishOnTouchOutside, "setFinishOnTouchOutside", "(Z)V"); if (_m_Activity__setFinishOnTouchOutside == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setFinishOnTouchOutside, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setDefaultKeyMode = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setDefaultKeyMode(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setDefaultKeyMode, "setDefaultKeyMode", "(I)V"); if (_m_Activity__setDefaultKeyMode == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setDefaultKeyMode, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onKeyDown = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onKeyDown(jobject self_, int32_t i, jobject keyEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onKeyDown, "onKeyDown", "(ILandroid/view/KeyEvent;)Z"); if (_m_Activity__onKeyDown == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onKeyDown, i, keyEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onKeyLongPress = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onKeyLongPress(jobject self_, int32_t i, jobject keyEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onKeyLongPress, "onKeyLongPress", "(ILandroid/view/KeyEvent;)Z"); if (_m_Activity__onKeyLongPress == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onKeyLongPress, i, keyEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onKeyUp = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onKeyUp(jobject self_, int32_t i, jobject keyEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onKeyUp, "onKeyUp", "(ILandroid/view/KeyEvent;)Z"); if (_m_Activity__onKeyUp == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onKeyUp, i, keyEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onKeyMultiple = NULL; @@ -7675,109 +7519,109 @@ JniResult Activity__onKeyMultiple(jobject self_, int32_t i1, jobject keyEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onKeyMultiple, "onKeyMultiple", "(IILandroid/view/KeyEvent;)Z"); if (_m_Activity__onKeyMultiple == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onKeyMultiple, i, i1, keyEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onBackPressed = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onBackPressed(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onBackPressed, "onBackPressed", "()V"); if (_m_Activity__onBackPressed == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onBackPressed); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onKeyShortcut = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onKeyShortcut(jobject self_, int32_t i, jobject keyEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onKeyShortcut, "onKeyShortcut", "(ILandroid/view/KeyEvent;)Z"); if (_m_Activity__onKeyShortcut == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onKeyShortcut, i, keyEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onTouchEvent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onTouchEvent(jobject self_, jobject motionEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onTouchEvent, "onTouchEvent", "(Landroid/view/MotionEvent;)Z"); if (_m_Activity__onTouchEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onTouchEvent, motionEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onTrackballEvent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onTrackballEvent(jobject self_, jobject motionEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onTrackballEvent, "onTrackballEvent", "(Landroid/view/MotionEvent;)Z"); if (_m_Activity__onTrackballEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onTrackballEvent, motionEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onGenericMotionEvent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onGenericMotionEvent(jobject self_, jobject motionEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onGenericMotionEvent, "onGenericMotionEvent", "(Landroid/view/MotionEvent;)Z"); if (_m_Activity__onGenericMotionEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onGenericMotionEvent, motionEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onUserInteraction = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onUserInteraction(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onUserInteraction, "onUserInteraction", "()V"); if (_m_Activity__onUserInteraction == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onUserInteraction); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onWindowAttributesChanged = NULL; @@ -7785,158 +7629,158 @@ FFI_PLUGIN_EXPORT JniResult Activity__onWindowAttributesChanged(jobject self_, jobject layoutParams) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onWindowAttributesChanged, "onWindowAttributesChanged", "(Landroid/view/WindowManager$LayoutParams;)V"); if (_m_Activity__onWindowAttributesChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Activity__onWindowAttributesChanged, layoutParams); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onContentChanged = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onContentChanged(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onContentChanged, "onContentChanged", "()V"); if (_m_Activity__onContentChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onContentChanged); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onWindowFocusChanged = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onWindowFocusChanged(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onWindowFocusChanged, "onWindowFocusChanged", "(Z)V"); if (_m_Activity__onWindowFocusChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onWindowFocusChanged, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onAttachedToWindow = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onAttachedToWindow(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onAttachedToWindow, "onAttachedToWindow", "()V"); if (_m_Activity__onAttachedToWindow == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onAttachedToWindow); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onDetachedFromWindow = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onDetachedFromWindow(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onDetachedFromWindow, "onDetachedFromWindow", "()V"); if (_m_Activity__onDetachedFromWindow == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onDetachedFromWindow); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__hasWindowFocus = NULL; FFI_PLUGIN_EXPORT JniResult Activity__hasWindowFocus(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__hasWindowFocus, "hasWindowFocus", "()Z"); if (_m_Activity__hasWindowFocus == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Activity__hasWindowFocus); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__dispatchKeyEvent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__dispatchKeyEvent(jobject self_, jobject keyEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dispatchKeyEvent, "dispatchKeyEvent", "(Landroid/view/KeyEvent;)Z"); if (_m_Activity__dispatchKeyEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__dispatchKeyEvent, keyEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__dispatchKeyShortcutEvent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__dispatchKeyShortcutEvent(jobject self_, jobject keyEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dispatchKeyShortcutEvent, "dispatchKeyShortcutEvent", "(Landroid/view/KeyEvent;)Z"); if (_m_Activity__dispatchKeyShortcutEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__dispatchKeyShortcutEvent, keyEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__dispatchTouchEvent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__dispatchTouchEvent(jobject self_, jobject motionEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dispatchTouchEvent, "dispatchTouchEvent", "(Landroid/view/MotionEvent;)Z"); if (_m_Activity__dispatchTouchEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__dispatchTouchEvent, motionEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__dispatchTrackballEvent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__dispatchTrackballEvent(jobject self_, jobject motionEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dispatchTrackballEvent, "dispatchTrackballEvent", "(Landroid/view/MotionEvent;)Z"); if (_m_Activity__dispatchTrackballEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__dispatchTrackballEvent, motionEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__dispatchGenericMotionEvent = NULL; @@ -7944,16 +7788,16 @@ FFI_PLUGIN_EXPORT JniResult Activity__dispatchGenericMotionEvent(jobject self_, jobject motionEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dispatchGenericMotionEvent, "dispatchGenericMotionEvent", "(Landroid/view/MotionEvent;)Z"); if (_m_Activity__dispatchGenericMotionEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__dispatchGenericMotionEvent, motionEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__dispatchPopulateAccessibilityEvent = NULL; @@ -7962,51 +7806,50 @@ JniResult Activity__dispatchPopulateAccessibilityEvent( jobject self_, jobject accessibilityEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dispatchPopulateAccessibilityEvent, "dispatchPopulateAccessibilityEvent", "(Landroid/view/accessibility/AccessibilityEvent;)Z"); if (_m_Activity__dispatchPopulateAccessibilityEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__dispatchPopulateAccessibilityEvent, accessibilityEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onCreatePanelView = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onCreatePanelView(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreatePanelView, "onCreatePanelView", "(I)Landroid/view/View;"); if (_m_Activity__onCreatePanelView == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__onCreatePanelView, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onCreatePanelMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onCreatePanelMenu(jobject self_, int32_t i, jobject menu) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreatePanelMenu, "onCreatePanelMenu", "(ILandroid/view/Menu;)Z"); if (_m_Activity__onCreatePanelMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onCreatePanelMenu, i, menu); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onPreparePanel = NULL; @@ -8016,32 +7859,32 @@ JniResult Activity__onPreparePanel(jobject self_, jobject view, jobject menu) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPreparePanel, "onPreparePanel", "(ILandroid/view/View;Landroid/view/Menu;)Z"); if (_m_Activity__onPreparePanel == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onPreparePanel, i, view, menu); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onMenuOpened = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onMenuOpened(jobject self_, int32_t i, jobject menu) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onMenuOpened, "onMenuOpened", "(ILandroid/view/Menu;)Z"); if (_m_Activity__onMenuOpened == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onMenuOpened, i, menu); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onMenuItemSelected = NULL; @@ -8050,125 +7893,125 @@ JniResult Activity__onMenuItemSelected(jobject self_, int32_t i, jobject menuItem) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onMenuItemSelected, "onMenuItemSelected", "(ILandroid/view/MenuItem;)Z"); if (_m_Activity__onMenuItemSelected == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onMenuItemSelected, i, menuItem); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onPanelClosed = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onPanelClosed(jobject self_, int32_t i, jobject menu) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPanelClosed, "onPanelClosed", "(ILandroid/view/Menu;)V"); if (_m_Activity__onPanelClosed == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPanelClosed, i, menu); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__invalidateOptionsMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__invalidateOptionsMenu(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__invalidateOptionsMenu, "invalidateOptionsMenu", "()V"); if (_m_Activity__invalidateOptionsMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__invalidateOptionsMenu); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onCreateOptionsMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onCreateOptionsMenu(jobject self_, jobject menu) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateOptionsMenu, "onCreateOptionsMenu", "(Landroid/view/Menu;)Z"); if (_m_Activity__onCreateOptionsMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onCreateOptionsMenu, menu); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onPrepareOptionsMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onPrepareOptionsMenu(jobject self_, jobject menu) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPrepareOptionsMenu, "onPrepareOptionsMenu", "(Landroid/view/Menu;)Z"); if (_m_Activity__onPrepareOptionsMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onPrepareOptionsMenu, menu); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onOptionsItemSelected = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onOptionsItemSelected(jobject self_, jobject menuItem) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onOptionsItemSelected, "onOptionsItemSelected", "(Landroid/view/MenuItem;)Z"); if (_m_Activity__onOptionsItemSelected == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onOptionsItemSelected, menuItem); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onNavigateUp = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onNavigateUp(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onNavigateUp, "onNavigateUp", "()Z"); if (_m_Activity__onNavigateUp == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Activity__onNavigateUp); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onNavigateUpFromChild = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onNavigateUpFromChild(jobject self_, jobject activity) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onNavigateUpFromChild, "onNavigateUpFromChild", "(Landroid/app/Activity;)Z"); if (_m_Activity__onNavigateUpFromChild == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onNavigateUpFromChild, activity); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onCreateNavigateUpTaskStack = NULL; @@ -8176,18 +8019,18 @@ FFI_PLUGIN_EXPORT JniResult Activity__onCreateNavigateUpTaskStack(jobject self_, jobject taskStackBuilder) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateNavigateUpTaskStack, "onCreateNavigateUpTaskStack", "(Landroid/app/TaskStackBuilder;)V"); if (_m_Activity__onCreateNavigateUpTaskStack == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onCreateNavigateUpTaskStack, taskStackBuilder); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPrepareNavigateUpTaskStack = NULL; @@ -8195,64 +8038,64 @@ FFI_PLUGIN_EXPORT JniResult Activity__onPrepareNavigateUpTaskStack(jobject self_, jobject taskStackBuilder) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPrepareNavigateUpTaskStack, "onPrepareNavigateUpTaskStack", "(Landroid/app/TaskStackBuilder;)V"); if (_m_Activity__onPrepareNavigateUpTaskStack == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPrepareNavigateUpTaskStack, taskStackBuilder); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onOptionsMenuClosed = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onOptionsMenuClosed(jobject self_, jobject menu) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onOptionsMenuClosed, "onOptionsMenuClosed", "(Landroid/view/Menu;)V"); if (_m_Activity__onOptionsMenuClosed == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onOptionsMenuClosed, menu); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__openOptionsMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__openOptionsMenu(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__openOptionsMenu, "openOptionsMenu", "()V"); if (_m_Activity__openOptionsMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__openOptionsMenu); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__closeOptionsMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__closeOptionsMenu(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__closeOptionsMenu, "closeOptionsMenu", "()V"); if (_m_Activity__closeOptionsMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__closeOptionsMenu); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onCreateContextMenu = NULL; @@ -8262,162 +8105,160 @@ JniResult Activity__onCreateContextMenu(jobject self_, jobject view, jobject contextMenuInfo) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateContextMenu, "onCreateContextMenu", "(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/" "ContextMenu$ContextMenuInfo;)V"); if (_m_Activity__onCreateContextMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onCreateContextMenu, contextMenu, view, contextMenuInfo); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__registerForContextMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__registerForContextMenu(jobject self_, jobject view) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__registerForContextMenu, "registerForContextMenu", "(Landroid/view/View;)V"); if (_m_Activity__registerForContextMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__registerForContextMenu, view); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__unregisterForContextMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__unregisterForContextMenu(jobject self_, jobject view) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__unregisterForContextMenu, "unregisterForContextMenu", "(Landroid/view/View;)V"); if (_m_Activity__unregisterForContextMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__unregisterForContextMenu, view); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__openContextMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__openContextMenu(jobject self_, jobject view) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__openContextMenu, "openContextMenu", "(Landroid/view/View;)V"); if (_m_Activity__openContextMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__openContextMenu, view); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__closeContextMenu = NULL; FFI_PLUGIN_EXPORT JniResult Activity__closeContextMenu(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__closeContextMenu, "closeContextMenu", "()V"); if (_m_Activity__closeContextMenu == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__closeContextMenu); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onContextItemSelected = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onContextItemSelected(jobject self_, jobject menuItem) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onContextItemSelected, "onContextItemSelected", "(Landroid/view/MenuItem;)Z"); if (_m_Activity__onContextItemSelected == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onContextItemSelected, menuItem); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onContextMenuClosed = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onContextMenuClosed(jobject self_, jobject menu) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onContextMenuClosed, "onContextMenuClosed", "(Landroid/view/Menu;)V"); if (_m_Activity__onContextMenuClosed == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onContextMenuClosed, menu); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onCreateDialog = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onCreateDialog(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateDialog, "onCreateDialog", "(I)Landroid/app/Dialog;"); if (_m_Activity__onCreateDialog == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__onCreateDialog, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onCreateDialog1 = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onCreateDialog1(jobject self_, int32_t i, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateDialog1, "onCreateDialog", "(ILandroid/os/Bundle;)Landroid/app/Dialog;"); if (_m_Activity__onCreateDialog1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__onCreateDialog1, i, bundle); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onPrepareDialog = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onPrepareDialog(jobject self_, int32_t i, jobject dialog) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPrepareDialog, "onPrepareDialog", "(ILandroid/app/Dialog;)V"); if (_m_Activity__onPrepareDialog == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPrepareDialog, i, dialog); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onPrepareDialog1 = NULL; @@ -8427,124 +8268,123 @@ JniResult Activity__onPrepareDialog1(jobject self_, jobject dialog, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onPrepareDialog1, "onPrepareDialog", "(ILandroid/app/Dialog;Landroid/os/Bundle;)V"); if (_m_Activity__onPrepareDialog1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onPrepareDialog1, i, dialog, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__showDialog = NULL; FFI_PLUGIN_EXPORT JniResult Activity__showDialog(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__showDialog, "showDialog", "(I)V"); if (_m_Activity__showDialog == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__showDialog, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__showDialog1 = NULL; FFI_PLUGIN_EXPORT JniResult Activity__showDialog1(jobject self_, int32_t i, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__showDialog1, "showDialog", "(ILandroid/os/Bundle;)Z"); if (_m_Activity__showDialog1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__showDialog1, i, bundle); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__dismissDialog = NULL; FFI_PLUGIN_EXPORT JniResult Activity__dismissDialog(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dismissDialog, "dismissDialog", "(I)V"); if (_m_Activity__dismissDialog == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__dismissDialog, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__removeDialog = NULL; FFI_PLUGIN_EXPORT JniResult Activity__removeDialog(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__removeDialog, "removeDialog", "(I)V"); if (_m_Activity__removeDialog == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__removeDialog, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onSearchRequested = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onSearchRequested(jobject self_, jobject searchEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onSearchRequested, "onSearchRequested", "(Landroid/view/SearchEvent;)Z"); if (_m_Activity__onSearchRequested == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onSearchRequested, searchEvent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onSearchRequested1 = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onSearchRequested1(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onSearchRequested1, "onSearchRequested", "()Z"); if (_m_Activity__onSearchRequested1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__onSearchRequested1); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__getSearchEvent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getSearchEvent(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getSearchEvent, "getSearchEvent", "()Landroid/view/SearchEvent;"); if (_m_Activity__getSearchEvent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getSearchEvent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__startSearch = NULL; @@ -8555,16 +8395,16 @@ JniResult Activity__startSearch(jobject self_, jobject bundle, uint8_t z1) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startSearch, "startSearch", "(Ljava/lang/String;ZLandroid/os/Bundle;Z)V"); if (_m_Activity__startSearch == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startSearch, string, z, bundle, z1); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__triggerSearch = NULL; @@ -8573,47 +8413,47 @@ JniResult Activity__triggerSearch(jobject self_, jobject string, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__triggerSearch, "triggerSearch", "(Ljava/lang/String;Landroid/os/Bundle;)V"); if (_m_Activity__triggerSearch == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__triggerSearch, string, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__takeKeyEvents = NULL; FFI_PLUGIN_EXPORT JniResult Activity__takeKeyEvents(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__takeKeyEvents, "takeKeyEvents", "(Z)V"); if (_m_Activity__takeKeyEvents == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__takeKeyEvents, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__requestWindowFeature = NULL; FFI_PLUGIN_EXPORT JniResult Activity__requestWindowFeature(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__requestWindowFeature, "requestWindowFeature", "(I)Z"); if (_m_Activity__requestWindowFeature == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__requestWindowFeature, i); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__setFeatureDrawableResource = NULL; @@ -8622,16 +8462,16 @@ JniResult Activity__setFeatureDrawableResource(jobject self_, int32_t i, int32_t i1) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setFeatureDrawableResource, "setFeatureDrawableResource", "(II)V"); if (_m_Activity__setFeatureDrawableResource == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setFeatureDrawableResource, i, i1); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setFeatureDrawableUri = NULL; @@ -8640,16 +8480,16 @@ JniResult Activity__setFeatureDrawableUri(jobject self_, int32_t i, jobject uri) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setFeatureDrawableUri, "setFeatureDrawableUri", "(ILandroid/net/Uri;)V"); if (_m_Activity__setFeatureDrawableUri == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setFeatureDrawableUri, i, uri); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setFeatureDrawable = NULL; @@ -8658,16 +8498,16 @@ JniResult Activity__setFeatureDrawable(jobject self_, int32_t i, jobject drawable) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setFeatureDrawable, "setFeatureDrawable", "(ILandroid/graphics/drawable/Drawable;)V"); if (_m_Activity__setFeatureDrawable == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setFeatureDrawable, i, drawable); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setFeatureDrawableAlpha = NULL; @@ -8676,64 +8516,62 @@ JniResult Activity__setFeatureDrawableAlpha(jobject self_, int32_t i, int32_t i1) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setFeatureDrawableAlpha, "setFeatureDrawableAlpha", "(II)V"); if (_m_Activity__setFeatureDrawableAlpha == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setFeatureDrawableAlpha, i, i1); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getLayoutInflater = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getLayoutInflater(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getLayoutInflater, "getLayoutInflater", "()Landroid/view/LayoutInflater;"); if (_m_Activity__getLayoutInflater == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getLayoutInflater); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getMenuInflater = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getMenuInflater(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getMenuInflater, "getMenuInflater", "()Landroid/view/MenuInflater;"); if (_m_Activity__getMenuInflater == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getMenuInflater); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setTheme = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setTheme(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setTheme, "setTheme", "(I)V"); if (_m_Activity__setTheme == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setTheme, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onApplyThemeResource = NULL; @@ -8743,17 +8581,17 @@ JniResult Activity__onApplyThemeResource(jobject self_, int32_t i, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onApplyThemeResource, "onApplyThemeResource", "(Landroid/content/res/Resources$Theme;IZ)V"); if (_m_Activity__onApplyThemeResource == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onApplyThemeResource, theme, i, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__requestPermissions = NULL; @@ -8762,16 +8600,16 @@ JniResult Activity__requestPermissions(jobject self_, jobject strings, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__requestPermissions, "requestPermissions", "([Ljava/lang/String;I)V"); if (_m_Activity__requestPermissions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__requestPermissions, strings, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onRequestPermissionsResult = NULL; @@ -8781,16 +8619,16 @@ JniResult Activity__onRequestPermissionsResult(jobject self_, jobject strings, jobject is) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onRequestPermissionsResult, "onRequestPermissionsResult", "(I[Ljava/lang/String;[I)V"); if (_m_Activity__onRequestPermissionsResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Activity__onRequestPermissionsResult, i, strings, is); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__shouldShowRequestPermissionRationale = NULL; @@ -8798,16 +8636,16 @@ FFI_PLUGIN_EXPORT JniResult Activity__shouldShowRequestPermissionRationale(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__shouldShowRequestPermissionRationale, "shouldShowRequestPermissionRationale", "(Ljava/lang/String;)Z"); if (_m_Activity__shouldShowRequestPermissionRationale == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__shouldShowRequestPermissionRationale, string); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__startActivityForResult = NULL; @@ -8816,16 +8654,16 @@ JniResult Activity__startActivityForResult(jobject self_, jobject intent, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivityForResult, "startActivityForResult", "(Landroid/content/Intent;I)V"); if (_m_Activity__startActivityForResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivityForResult, intent, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivityForResult1 = NULL; @@ -8835,33 +8673,33 @@ JniResult Activity__startActivityForResult1(jobject self_, int32_t i, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivityForResult1, "startActivityForResult", "(Landroid/content/Intent;ILandroid/os/Bundle;)V"); if (_m_Activity__startActivityForResult1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivityForResult1, intent, i, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__isActivityTransitionRunning = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isActivityTransitionRunning(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isActivityTransitionRunning, "isActivityTransitionRunning", "()Z"); if (_m_Activity__isActivityTransitionRunning == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__isActivityTransitionRunning); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__startIntentSenderForResult = NULL; @@ -8874,18 +8712,18 @@ JniResult Activity__startIntentSenderForResult(jobject self_, int32_t i2, int32_t i3) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startIntentSenderForResult, "startIntentSenderForResult", "(Landroid/content/IntentSender;ILandroid/content/Intent;III)V"); if (_m_Activity__startIntentSenderForResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startIntentSenderForResult, intentSender, i, intent, i1, i2, i3); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startIntentSenderForResult1 = NULL; @@ -8899,34 +8737,34 @@ JniResult Activity__startIntentSenderForResult1(jobject self_, int32_t i3, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startIntentSenderForResult1, "startIntentSenderForResult", "(Landroid/content/IntentSender;ILandroid/content/" "Intent;IIILandroid/os/Bundle;)V"); if (_m_Activity__startIntentSenderForResult1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startIntentSenderForResult1, intentSender, i, intent, i1, i2, i3, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivity = NULL; FFI_PLUGIN_EXPORT JniResult Activity__startActivity(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivity, "startActivity", "(Landroid/content/Intent;)V"); if (_m_Activity__startActivity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivity, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivity1 = NULL; @@ -8935,32 +8773,32 @@ JniResult Activity__startActivity1(jobject self_, jobject intent, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivity1, "startActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)V"); if (_m_Activity__startActivity1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivity1, intent, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivities = NULL; FFI_PLUGIN_EXPORT JniResult Activity__startActivities(jobject self_, jobject intents) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivities, "startActivities", "([Landroid/content/Intent;)V"); if (_m_Activity__startActivities == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivities, intents); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivities1 = NULL; @@ -8969,16 +8807,16 @@ JniResult Activity__startActivities1(jobject self_, jobject intents, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivities1, "startActivities", "([Landroid/content/Intent;Landroid/os/Bundle;)V"); if (_m_Activity__startActivities1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivities1, intents, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startIntentSender = NULL; @@ -8990,16 +8828,16 @@ JniResult Activity__startIntentSender(jobject self_, int32_t i1, int32_t i2) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startIntentSender, "startIntentSender", "(Landroid/content/IntentSender;Landroid/content/Intent;III)V"); if (_m_Activity__startIntentSender == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startIntentSender, intentSender, intent, i, i1, i2); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startIntentSender1 = NULL; @@ -9012,18 +8850,18 @@ JniResult Activity__startIntentSender1(jobject self_, int32_t i2, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startIntentSender1, "startIntentSender", "(Landroid/content/IntentSender;Landroid/content/" "Intent;IIILandroid/os/Bundle;)V"); if (_m_Activity__startIntentSender1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startIntentSender1, intentSender, intent, i, i1, i2, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivityIfNeeded = NULL; @@ -9032,16 +8870,16 @@ JniResult Activity__startActivityIfNeeded(jobject self_, jobject intent, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivityIfNeeded, "startActivityIfNeeded", "(Landroid/content/Intent;I)Z"); if (_m_Activity__startActivityIfNeeded == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__startActivityIfNeeded, intent, i); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__startActivityIfNeeded1 = NULL; @@ -9051,33 +8889,33 @@ JniResult Activity__startActivityIfNeeded1(jobject self_, int32_t i, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivityIfNeeded1, "startActivityIfNeeded", "(Landroid/content/Intent;ILandroid/os/Bundle;)Z"); if (_m_Activity__startActivityIfNeeded1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__startActivityIfNeeded1, intent, i, bundle); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__startNextMatchingActivity = NULL; FFI_PLUGIN_EXPORT JniResult Activity__startNextMatchingActivity(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startNextMatchingActivity, "startNextMatchingActivity", "(Landroid/content/Intent;)Z"); if (_m_Activity__startNextMatchingActivity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__startNextMatchingActivity, intent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__startNextMatchingActivity1 = NULL; @@ -9086,17 +8924,17 @@ JniResult Activity__startNextMatchingActivity1(jobject self_, jobject intent, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startNextMatchingActivity1, "startNextMatchingActivity", "(Landroid/content/Intent;Landroid/os/Bundle;)Z"); if (_m_Activity__startNextMatchingActivity1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__startNextMatchingActivity1, intent, bundle); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__startActivityFromChild = NULL; @@ -9106,17 +8944,17 @@ JniResult Activity__startActivityFromChild(jobject self_, jobject intent, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivityFromChild, "startActivityFromChild", "(Landroid/app/Activity;Landroid/content/Intent;I)V"); if (_m_Activity__startActivityFromChild == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivityFromChild, activity, intent, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivityFromChild1 = NULL; @@ -9127,18 +8965,18 @@ JniResult Activity__startActivityFromChild1(jobject self_, int32_t i, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Activity, &_m_Activity__startActivityFromChild1, "startActivityFromChild", "(Landroid/app/Activity;Landroid/content/Intent;ILandroid/os/Bundle;)V"); if (_m_Activity__startActivityFromChild1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivityFromChild1, activity, intent, i, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivityFromFragment = NULL; @@ -9148,18 +8986,18 @@ JniResult Activity__startActivityFromFragment(jobject self_, jobject intent, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActivityFromFragment, "startActivityFromFragment", "(Landroid/app/Fragment;Landroid/content/Intent;I)V"); if (_m_Activity__startActivityFromFragment == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivityFromFragment, fragment, intent, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActivityFromFragment1 = NULL; @@ -9170,19 +9008,19 @@ JniResult Activity__startActivityFromFragment1(jobject self_, int32_t i, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Activity, &_m_Activity__startActivityFromFragment1, "startActivityFromFragment", "(Landroid/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)V"); if (_m_Activity__startActivityFromFragment1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startActivityFromFragment1, fragment, intent, i, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startIntentSenderFromChild = NULL; @@ -9196,19 +9034,19 @@ JniResult Activity__startIntentSenderFromChild(jobject self_, int32_t i2, int32_t i3) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startIntentSenderFromChild, "startIntentSenderFromChild", "(Landroid/app/Activity;Landroid/content/IntentSender;ILandroid/" "content/Intent;III)V"); if (_m_Activity__startIntentSenderFromChild == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startIntentSenderFromChild, activity, intentSender, i, intent, i1, i2, i3); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startIntentSenderFromChild1 = NULL; @@ -9223,19 +9061,19 @@ JniResult Activity__startIntentSenderFromChild1(jobject self_, int32_t i3, jobject bundle) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startIntentSenderFromChild1, "startIntentSenderFromChild", "(Landroid/app/Activity;Landroid/content/IntentSender;ILandroid/" "content/Intent;IIILandroid/os/Bundle;)V"); if (_m_Activity__startIntentSenderFromChild1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startIntentSenderFromChild1, activity, intentSender, i, intent, i1, i2, i3, bundle); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__overridePendingTransition = NULL; @@ -9244,16 +9082,16 @@ JniResult Activity__overridePendingTransition(jobject self_, int32_t i, int32_t i1) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__overridePendingTransition, "overridePendingTransition", "(II)V"); if (_m_Activity__overridePendingTransition == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__overridePendingTransition, i, i1); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__overridePendingTransition1 = NULL; @@ -9263,262 +9101,258 @@ JniResult Activity__overridePendingTransition1(jobject self_, int32_t i1, int32_t i2) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__overridePendingTransition1, "overridePendingTransition", "(III)V"); if (_m_Activity__overridePendingTransition1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__overridePendingTransition1, i, i1, i2); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setResult = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setResult(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setResult, "setResult", "(I)V"); if (_m_Activity__setResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setResult, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setResult1 = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setResult1(jobject self_, int32_t i, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setResult1, "setResult", "(ILandroid/content/Intent;)V"); if (_m_Activity__setResult1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setResult1, i, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getReferrer = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getReferrer(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getReferrer, "getReferrer", "()Landroid/net/Uri;"); if (_m_Activity__getReferrer == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getReferrer); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onProvideReferrer = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onProvideReferrer(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onProvideReferrer, "onProvideReferrer", "()Landroid/net/Uri;"); if (_m_Activity__onProvideReferrer == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__onProvideReferrer); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getCallingPackage = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getCallingPackage(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getCallingPackage, "getCallingPackage", "()Ljava/lang/String;"); if (_m_Activity__getCallingPackage == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getCallingPackage); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getCallingActivity = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getCallingActivity(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getCallingActivity, "getCallingActivity", "()Landroid/content/ComponentName;"); if (_m_Activity__getCallingActivity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getCallingActivity); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setVisible = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setVisible(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setVisible, "setVisible", "(Z)V"); if (_m_Activity__setVisible == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setVisible, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__isFinishing = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isFinishing(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isFinishing, "isFinishing", "()Z"); if (_m_Activity__isFinishing == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Activity__isFinishing); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__isDestroyed = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isDestroyed(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isDestroyed, "isDestroyed", "()Z"); if (_m_Activity__isDestroyed == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Activity__isDestroyed); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__isChangingConfigurations = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isChangingConfigurations(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isChangingConfigurations, "isChangingConfigurations", "()Z"); if (_m_Activity__isChangingConfigurations == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__isChangingConfigurations); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__recreate = NULL; FFI_PLUGIN_EXPORT JniResult Activity__recreate(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__recreate, "recreate", "()V"); if (_m_Activity__recreate == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__recreate); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__finish = NULL; FFI_PLUGIN_EXPORT JniResult Activity__finish(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__finish, "finish", "()V"); if (_m_Activity__finish == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__finish); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__finishAffinity = NULL; FFI_PLUGIN_EXPORT JniResult Activity__finishAffinity(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__finishAffinity, "finishAffinity", "()V"); if (_m_Activity__finishAffinity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__finishAffinity); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__finishFromChild = NULL; FFI_PLUGIN_EXPORT JniResult Activity__finishFromChild(jobject self_, jobject activity) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__finishFromChild, "finishFromChild", "(Landroid/app/Activity;)V"); if (_m_Activity__finishFromChild == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__finishFromChild, activity); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__finishAfterTransition = NULL; FFI_PLUGIN_EXPORT JniResult Activity__finishAfterTransition(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__finishAfterTransition, "finishAfterTransition", "()V"); if (_m_Activity__finishAfterTransition == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__finishAfterTransition); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__finishActivity = NULL; FFI_PLUGIN_EXPORT JniResult Activity__finishActivity(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__finishActivity, "finishActivity", "(I)V"); if (_m_Activity__finishActivity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__finishActivity, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__finishActivityFromChild = NULL; @@ -9527,47 +9361,47 @@ JniResult Activity__finishActivityFromChild(jobject self_, jobject activity, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__finishActivityFromChild, "finishActivityFromChild", "(Landroid/app/Activity;I)V"); if (_m_Activity__finishActivityFromChild == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__finishActivityFromChild, activity, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__finishAndRemoveTask = NULL; FFI_PLUGIN_EXPORT JniResult Activity__finishAndRemoveTask(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__finishAndRemoveTask, "finishAndRemoveTask", "()V"); if (_m_Activity__finishAndRemoveTask == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__finishAndRemoveTask); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__releaseInstance = NULL; FFI_PLUGIN_EXPORT JniResult Activity__releaseInstance(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__releaseInstance, "releaseInstance", "()Z"); if (_m_Activity__releaseInstance == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Activity__releaseInstance); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onActivityResult = NULL; @@ -9577,16 +9411,16 @@ JniResult Activity__onActivityResult(jobject self_, int32_t i1, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onActivityResult, "onActivityResult", "(IILandroid/content/Intent;)V"); if (_m_Activity__onActivityResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onActivityResult, i, i1, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onActivityReenter = NULL; @@ -9595,16 +9429,16 @@ JniResult Activity__onActivityReenter(jobject self_, int32_t i, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onActivityReenter, "onActivityReenter", "(ILandroid/content/Intent;)V"); if (_m_Activity__onActivityReenter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onActivityReenter, i, intent); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__createPendingResult = NULL; @@ -9614,256 +9448,250 @@ JniResult Activity__createPendingResult(jobject self_, jobject intent, int32_t i1) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__createPendingResult, "createPendingResult", "(ILandroid/content/Intent;I)Landroid/app/PendingIntent;"); if (_m_Activity__createPendingResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__createPendingResult, i, intent, i1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setRequestedOrientation = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setRequestedOrientation(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setRequestedOrientation, "setRequestedOrientation", "(I)V"); if (_m_Activity__setRequestedOrientation == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setRequestedOrientation, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getRequestedOrientation = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getRequestedOrientation(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getRequestedOrientation, "getRequestedOrientation", "()I"); if (_m_Activity__getRequestedOrientation == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Activity__getRequestedOrientation); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Activity__getTaskId = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getTaskId(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getTaskId, "getTaskId", "()I"); if (_m_Activity__getTaskId == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Activity__getTaskId); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Activity__isTaskRoot = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isTaskRoot(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isTaskRoot, "isTaskRoot", "()Z"); if (_m_Activity__isTaskRoot == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Activity__isTaskRoot); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__moveTaskToBack = NULL; FFI_PLUGIN_EXPORT JniResult Activity__moveTaskToBack(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__moveTaskToBack, "moveTaskToBack", "(Z)Z"); if (_m_Activity__moveTaskToBack == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__moveTaskToBack, z); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__getLocalClassName = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getLocalClassName(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getLocalClassName, "getLocalClassName", "()Ljava/lang/String;"); if (_m_Activity__getLocalClassName == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getLocalClassName); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getComponentName = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getComponentName(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getComponentName, "getComponentName", "()Landroid/content/ComponentName;"); if (_m_Activity__getComponentName == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getComponentName); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getPreferences = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getPreferences(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getPreferences, "getPreferences", "(I)Landroid/content/SharedPreferences;"); if (_m_Activity__getPreferences == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getPreferences, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__isLaunchedFromBubble = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isLaunchedFromBubble(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isLaunchedFromBubble, "isLaunchedFromBubble", "()Z"); if (_m_Activity__isLaunchedFromBubble == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__isLaunchedFromBubble); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__getSystemService = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getSystemService(jobject self_, jobject string) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getSystemService, "getSystemService", "(Ljava/lang/String;)Ljava/lang/Object;"); if (_m_Activity__getSystemService == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getSystemService, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setTitle = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setTitle(jobject self_, jobject charSequence) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setTitle, "setTitle", "(Ljava/lang/CharSequence;)V"); if (_m_Activity__setTitle == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setTitle, charSequence); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setTitle1 = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setTitle1(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setTitle1, "setTitle", "(I)V"); if (_m_Activity__setTitle1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setTitle1, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setTitleColor = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setTitleColor(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setTitleColor, "setTitleColor", "(I)V"); if (_m_Activity__setTitleColor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setTitleColor, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getTitle = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getTitle(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getTitle, "getTitle", "()Ljava/lang/CharSequence;"); if (_m_Activity__getTitle == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__getTitle); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__getTitleColor = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getTitleColor(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getTitleColor, "getTitleColor", "()I"); if (_m_Activity__getTitleColor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Activity__getTitleColor); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onTitleChanged = NULL; @@ -9872,16 +9700,16 @@ JniResult Activity__onTitleChanged(jobject self_, jobject charSequence, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onTitleChanged, "onTitleChanged", "(Ljava/lang/CharSequence;I)V"); if (_m_Activity__onTitleChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onTitleChanged, charSequence, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onChildTitleChanged = NULL; @@ -9890,50 +9718,50 @@ JniResult Activity__onChildTitleChanged(jobject self_, jobject activity, jobject charSequence) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onChildTitleChanged, "onChildTitleChanged", "(Landroid/app/Activity;Ljava/lang/CharSequence;)V"); if (_m_Activity__onChildTitleChanged == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onChildTitleChanged, activity, charSequence); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setTaskDescription = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setTaskDescription(jobject self_, jobject taskDescription) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setTaskDescription, "setTaskDescription", "(Landroid/app/ActivityManager$TaskDescription;)V"); if (_m_Activity__setTaskDescription == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setTaskDescription, taskDescription); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setProgressBarVisibility = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setProgressBarVisibility(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setProgressBarVisibility, "setProgressBarVisibility", "(Z)V"); if (_m_Activity__setProgressBarVisibility == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setProgressBarVisibility, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setProgressBarIndeterminateVisibility = NULL; @@ -9941,145 +9769,144 @@ FFI_PLUGIN_EXPORT JniResult Activity__setProgressBarIndeterminateVisibility(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setProgressBarIndeterminateVisibility, "setProgressBarIndeterminateVisibility", "(Z)V"); if (_m_Activity__setProgressBarIndeterminateVisibility == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod( jniEnv, self_, _m_Activity__setProgressBarIndeterminateVisibility, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setProgressBarIndeterminate = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setProgressBarIndeterminate(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setProgressBarIndeterminate, "setProgressBarIndeterminate", "(Z)V"); if (_m_Activity__setProgressBarIndeterminate == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setProgressBarIndeterminate, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setProgress = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setProgress(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setProgress, "setProgress", "(I)V"); if (_m_Activity__setProgress == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setProgress, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setSecondaryProgress = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setSecondaryProgress(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setSecondaryProgress, "setSecondaryProgress", "(I)V"); if (_m_Activity__setSecondaryProgress == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setSecondaryProgress, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setVolumeControlStream = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setVolumeControlStream(jobject self_, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setVolumeControlStream, "setVolumeControlStream", "(I)V"); if (_m_Activity__setVolumeControlStream == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setVolumeControlStream, i); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getVolumeControlStream = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getVolumeControlStream(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getVolumeControlStream, "getVolumeControlStream", "()I"); if (_m_Activity__getVolumeControlStream == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod( jniEnv, self_, _m_Activity__getVolumeControlStream); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Activity__setMediaController = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setMediaController(jobject self_, jobject mediaController) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setMediaController, "setMediaController", "(Landroid/media/session/MediaController;)V"); if (_m_Activity__setMediaController == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setMediaController, mediaController); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getMediaController = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getMediaController(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getMediaController, "getMediaController", "()Landroid/media/session/MediaController;"); if (_m_Activity__getMediaController == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getMediaController); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__runOnUiThread = NULL; FFI_PLUGIN_EXPORT JniResult Activity__runOnUiThread(jobject self_, jobject runnable) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__runOnUiThread, "runOnUiThread", "(Ljava/lang/Runnable;)V"); if (_m_Activity__runOnUiThread == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__runOnUiThread, runnable); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onCreateView = NULL; @@ -10089,18 +9916,17 @@ JniResult Activity__onCreateView(jobject self_, jobject context, jobject attributeSet) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateView, "onCreateView", "(Ljava/lang/String;Landroid/content/Context;Landroid/util/" "AttributeSet;)Landroid/view/View;"); if (_m_Activity__onCreateView == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__onCreateView, string, context, attributeSet); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onCreateView1 = NULL; @@ -10111,19 +9937,18 @@ JniResult Activity__onCreateView1(jobject self_, jobject context, jobject attributeSet) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onCreateView1, "onCreateView", "(Landroid/view/View;Ljava/lang/String;Landroid/content/" "Context;Landroid/util/AttributeSet;)Landroid/view/View;"); if (_m_Activity__onCreateView1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Activity__onCreateView1, view, string, context, attributeSet); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__dump = NULL; @@ -10134,110 +9959,110 @@ JniResult Activity__dump(jobject self_, jobject printWriter, jobject strings) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__dump, "dump", "(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/" "PrintWriter;[Ljava/lang/String;)V"); if (_m_Activity__dump == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__dump, string, fileDescriptor, printWriter, strings); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__isImmersive = NULL; FFI_PLUGIN_EXPORT JniResult Activity__isImmersive(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__isImmersive, "isImmersive", "()Z"); if (_m_Activity__isImmersive == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Activity__isImmersive); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__setTranslucent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setTranslucent(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setTranslucent, "setTranslucent", "(Z)Z"); if (_m_Activity__setTranslucent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__setTranslucent, z); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__requestVisibleBehind = NULL; FFI_PLUGIN_EXPORT JniResult Activity__requestVisibleBehind(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__requestVisibleBehind, "requestVisibleBehind", "(Z)Z"); if (_m_Activity__requestVisibleBehind == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__requestVisibleBehind, z); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__onVisibleBehindCanceled = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onVisibleBehindCanceled(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onVisibleBehindCanceled, "onVisibleBehindCanceled", "()V"); if (_m_Activity__onVisibleBehindCanceled == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onVisibleBehindCanceled); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onEnterAnimationComplete = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onEnterAnimationComplete(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onEnterAnimationComplete, "onEnterAnimationComplete", "()V"); if (_m_Activity__onEnterAnimationComplete == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onEnterAnimationComplete); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setImmersive = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setImmersive(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setImmersive, "setImmersive", "(Z)V"); if (_m_Activity__setImmersive == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setImmersive, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setVrModeEnabled = NULL; @@ -10246,33 +10071,32 @@ JniResult Activity__setVrModeEnabled(jobject self_, uint8_t z, jobject componentName) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setVrModeEnabled, "setVrModeEnabled", "(ZLandroid/content/ComponentName;)V"); if (_m_Activity__setVrModeEnabled == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setVrModeEnabled, z, componentName); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startActionMode = NULL; FFI_PLUGIN_EXPORT JniResult Activity__startActionMode(jobject self_, jobject callback) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActionMode, "startActionMode", "(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;"); if (_m_Activity__startActionMode == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__startActionMode, callback); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__startActionMode1 = NULL; @@ -10281,17 +10105,16 @@ JniResult Activity__startActionMode1(jobject self_, jobject callback, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startActionMode1, "startActionMode", "(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;"); if (_m_Activity__startActionMode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__startActionMode1, callback, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onWindowStartingActionMode = NULL; @@ -10299,18 +10122,17 @@ FFI_PLUGIN_EXPORT JniResult Activity__onWindowStartingActionMode(jobject self_, jobject callback) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onWindowStartingActionMode, "onWindowStartingActionMode", "(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;"); if (_m_Activity__onWindowStartingActionMode == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__onWindowStartingActionMode, callback); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onWindowStartingActionMode1 = NULL; @@ -10319,82 +10141,81 @@ JniResult Activity__onWindowStartingActionMode1(jobject self_, jobject callback, int32_t i) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onWindowStartingActionMode1, "onWindowStartingActionMode", "(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;"); if (_m_Activity__onWindowStartingActionMode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__onWindowStartingActionMode1, callback, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__onActionModeStarted = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onActionModeStarted(jobject self_, jobject actionMode) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onActionModeStarted, "onActionModeStarted", "(Landroid/view/ActionMode;)V"); if (_m_Activity__onActionModeStarted == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onActionModeStarted, actionMode); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__onActionModeFinished = NULL; FFI_PLUGIN_EXPORT JniResult Activity__onActionModeFinished(jobject self_, jobject actionMode) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__onActionModeFinished, "onActionModeFinished", "(Landroid/view/ActionMode;)V"); if (_m_Activity__onActionModeFinished == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__onActionModeFinished, actionMode); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__shouldUpRecreateTask = NULL; FFI_PLUGIN_EXPORT JniResult Activity__shouldUpRecreateTask(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__shouldUpRecreateTask, "shouldUpRecreateTask", "(Landroid/content/Intent;)Z"); if (_m_Activity__shouldUpRecreateTask == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__shouldUpRecreateTask, intent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__navigateUpTo = NULL; FFI_PLUGIN_EXPORT JniResult Activity__navigateUpTo(jobject self_, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__navigateUpTo, "navigateUpTo", "(Landroid/content/Intent;)Z"); if (_m_Activity__navigateUpTo == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__navigateUpTo, intent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__navigateUpToFromChild = NULL; @@ -10403,34 +10224,33 @@ JniResult Activity__navigateUpToFromChild(jobject self_, jobject activity, jobject intent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__navigateUpToFromChild, "navigateUpToFromChild", "(Landroid/app/Activity;Landroid/content/Intent;)Z"); if (_m_Activity__navigateUpToFromChild == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Activity__navigateUpToFromChild, activity, intent); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Activity__getParentActivityIntent = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getParentActivityIntent(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getParentActivityIntent, "getParentActivityIntent", "()Landroid/content/Intent;"); if (_m_Activity__getParentActivityIntent == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getParentActivityIntent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__setEnterSharedElementCallback = NULL; @@ -10439,18 +10259,18 @@ JniResult Activity__setEnterSharedElementCallback( jobject self_, jobject sharedElementCallback) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setEnterSharedElementCallback, "setEnterSharedElementCallback", "(Landroid/app/SharedElementCallback;)V"); if (_m_Activity__setEnterSharedElementCallback == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setEnterSharedElementCallback, sharedElementCallback); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setExitSharedElementCallback = NULL; @@ -10459,50 +10279,50 @@ JniResult Activity__setExitSharedElementCallback( jobject self_, jobject sharedElementCallback) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setExitSharedElementCallback, "setExitSharedElementCallback", "(Landroid/app/SharedElementCallback;)V"); if (_m_Activity__setExitSharedElementCallback == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setExitSharedElementCallback, sharedElementCallback); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__postponeEnterTransition = NULL; FFI_PLUGIN_EXPORT JniResult Activity__postponeEnterTransition(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__postponeEnterTransition, "postponeEnterTransition", "()V"); if (_m_Activity__postponeEnterTransition == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__postponeEnterTransition); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__startPostponedEnterTransition = NULL; FFI_PLUGIN_EXPORT JniResult Activity__startPostponedEnterTransition(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startPostponedEnterTransition, "startPostponedEnterTransition", "()V"); if (_m_Activity__startPostponedEnterTransition == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startPostponedEnterTransition); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__requestDragAndDropPermissions = NULL; @@ -10510,157 +10330,155 @@ FFI_PLUGIN_EXPORT JniResult Activity__requestDragAndDropPermissions(jobject self_, jobject dragEvent) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Activity, &_m_Activity__requestDragAndDropPermissions, "requestDragAndDropPermissions", "(Landroid/view/DragEvent;)Landroid/view/DragAndDropPermissions;"); if (_m_Activity__requestDragAndDropPermissions == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__requestDragAndDropPermissions, dragEvent); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Activity__startLockTask = NULL; FFI_PLUGIN_EXPORT JniResult Activity__startLockTask(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__startLockTask, "startLockTask", "()V"); if (_m_Activity__startLockTask == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__startLockTask); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__stopLockTask = NULL; FFI_PLUGIN_EXPORT JniResult Activity__stopLockTask(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__stopLockTask, "stopLockTask", "()V"); if (_m_Activity__stopLockTask == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__stopLockTask); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__showLockTaskEscapeMessage = NULL; FFI_PLUGIN_EXPORT JniResult Activity__showLockTaskEscapeMessage(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__showLockTaskEscapeMessage, "showLockTaskEscapeMessage", "()V"); if (_m_Activity__showLockTaskEscapeMessage == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__showLockTaskEscapeMessage); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setRecentsScreenshotEnabled = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setRecentsScreenshotEnabled(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setRecentsScreenshotEnabled, "setRecentsScreenshotEnabled", "(Z)V"); if (_m_Activity__setRecentsScreenshotEnabled == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setRecentsScreenshotEnabled, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setShowWhenLocked = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setShowWhenLocked(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setShowWhenLocked, "setShowWhenLocked", "(Z)V"); if (_m_Activity__setShowWhenLocked == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setShowWhenLocked, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setInheritShowWhenLocked = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setInheritShowWhenLocked(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setInheritShowWhenLocked, "setInheritShowWhenLocked", "(Z)V"); if (_m_Activity__setInheritShowWhenLocked == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setInheritShowWhenLocked, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__setTurnScreenOn = NULL; FFI_PLUGIN_EXPORT JniResult Activity__setTurnScreenOn(jobject self_, uint8_t z) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__setTurnScreenOn, "setTurnScreenOn", "(Z)V"); if (_m_Activity__setTurnScreenOn == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Activity__setTurnScreenOn, z); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; } jmethodID _m_Activity__getOnBackInvokedDispatcher = NULL; FFI_PLUGIN_EXPORT JniResult Activity__getOnBackInvokedDispatcher(jobject self_) { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Activity, &_m_Activity__getOnBackInvokedDispatcher, "getOnBackInvokedDispatcher", "()Landroid/window/OnBackInvokedDispatcher;"); if (_m_Activity__getOnBackInvokedDispatcher == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Activity__getOnBackInvokedDispatcher); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jfieldID _f_Activity__FOCUSED_STATE_SET = NULL; FFI_PLUGIN_EXPORT JniResult get_Activity__FOCUSED_STATE_SET() { load_env(); - load_class_gr(&_c_Activity, "android/app/Activity"); + load_class_global_ref(&_c_Activity, "android/app/Activity"); if (_c_Activity == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field(_c_Activity, &_f_Activity__FOCUSED_STATE_SET, "FOCUSED_STATE_SET", "[I"); - jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField( - jniEnv, _c_Activity, _f_Activity__FOCUSED_STATE_SET)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_Activity, _f_Activity__FOCUSED_STATE_SET); + return to_global_ref_result(_result); } // java.time.Instant @@ -10670,487 +10488,464 @@ jmethodID _m_Instant__now = NULL; FFI_PLUGIN_EXPORT JniResult Instant__now() { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Instant, &_m_Instant__now, "now", "()Ljava/time/Instant;"); if (_m_Instant__now == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Instant, _m_Instant__now); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__now1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__now1(jobject clock) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Instant, &_m_Instant__now1, "now", "(Ljava/time/Clock;)Ljava/time/Instant;"); if (_m_Instant__now1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Instant, _m_Instant__now1, clock); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__ofEpochSecond = NULL; FFI_PLUGIN_EXPORT JniResult Instant__ofEpochSecond(int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Instant, &_m_Instant__ofEpochSecond, "ofEpochSecond", "(J)Ljava/time/Instant;"); if (_m_Instant__ofEpochSecond == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Instant, _m_Instant__ofEpochSecond, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__ofEpochSecond1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__ofEpochSecond1(int64_t j, int64_t j1) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Instant, &_m_Instant__ofEpochSecond1, "ofEpochSecond", "(JJ)Ljava/time/Instant;"); if (_m_Instant__ofEpochSecond1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Instant, _m_Instant__ofEpochSecond1, j, j1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__ofEpochMilli = NULL; FFI_PLUGIN_EXPORT JniResult Instant__ofEpochMilli(int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Instant, &_m_Instant__ofEpochMilli, "ofEpochMilli", "(J)Ljava/time/Instant;"); if (_m_Instant__ofEpochMilli == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Instant, _m_Instant__ofEpochMilli, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__from = NULL; FFI_PLUGIN_EXPORT JniResult Instant__from(jobject temporalAccessor) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method( _c_Instant, &_m_Instant__from, "from", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/Instant;"); if (_m_Instant__from == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Instant, _m_Instant__from, temporalAccessor); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__parse = NULL; FFI_PLUGIN_EXPORT JniResult Instant__parse(jobject charSequence) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_method(_c_Instant, &_m_Instant__parse, "parse", "(Ljava/lang/CharSequence;)Ljava/time/Instant;"); if (_m_Instant__parse == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallStaticObjectMethod( jniEnv, _c_Instant, _m_Instant__parse, charSequence); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__isSupported = NULL; FFI_PLUGIN_EXPORT JniResult Instant__isSupported(jobject self_, jobject temporalField) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__isSupported, "isSupported", "(Ljava/time/temporal/TemporalField;)Z"); if (_m_Instant__isSupported == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Instant__isSupported, temporalField); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Instant__isSupported1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__isSupported1(jobject self_, jobject temporalUnit) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__isSupported1, "isSupported", "(Ljava/time/temporal/TemporalUnit;)Z"); if (_m_Instant__isSupported1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_Instant__isSupported1, temporalUnit); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Instant__range = NULL; FFI_PLUGIN_EXPORT JniResult Instant__range(jobject self_, jobject temporalField) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Instant, &_m_Instant__range, "range", "(Ljava/time/temporal/TemporalField;)Ljava/time/temporal/ValueRange;"); if (_m_Instant__range == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__range, temporalField); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__get0 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__get0(jobject self_, jobject temporalField) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__get0, "get", "(Ljava/time/temporal/TemporalField;)I"); if (_m_Instant__get0 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Instant__get0, temporalField); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Instant__getLong = NULL; FFI_PLUGIN_EXPORT JniResult Instant__getLong(jobject self_, jobject temporalField) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__getLong, "getLong", "(Ljava/time/temporal/TemporalField;)J"); if (_m_Instant__getLong == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int64_t _result = (*jniEnv)->CallLongMethod( jniEnv, self_, _m_Instant__getLong, temporalField); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; + return (JniResult){.value = {.j = _result}, .exception = check_exception()}; } jmethodID _m_Instant__getEpochSecond = NULL; FFI_PLUGIN_EXPORT JniResult Instant__getEpochSecond(jobject self_) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__getEpochSecond, "getEpochSecond", "()J"); if (_m_Instant__getEpochSecond == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int64_t _result = (*jniEnv)->CallLongMethod(jniEnv, self_, _m_Instant__getEpochSecond); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; + return (JniResult){.value = {.j = _result}, .exception = check_exception()}; } jmethodID _m_Instant__getNano = NULL; FFI_PLUGIN_EXPORT JniResult Instant__getNano(jobject self_) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__getNano, "getNano", "()I"); if (_m_Instant__getNano == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Instant__getNano); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Instant__with0 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__with0(jobject self_, jobject temporalAdjuster) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__with0, "with", "(Ljava/time/temporal/TemporalAdjuster;)Ljava/time/Instant;"); if (_m_Instant__with0 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__with0, temporalAdjuster); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__with1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__with1(jobject self_, jobject temporalField, int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__with1, "with", "(Ljava/time/temporal/TemporalField;J)Ljava/time/Instant;"); if (_m_Instant__with1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__with1, temporalField, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__truncatedTo = NULL; FFI_PLUGIN_EXPORT JniResult Instant__truncatedTo(jobject self_, jobject temporalUnit) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__truncatedTo, "truncatedTo", "(Ljava/time/temporal/TemporalUnit;)Ljava/time/Instant;"); if (_m_Instant__truncatedTo == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__truncatedTo, temporalUnit); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__plus = NULL; FFI_PLUGIN_EXPORT JniResult Instant__plus(jobject self_, jobject temporalAmount) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__plus, "plus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/Instant;"); if (_m_Instant__plus == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__plus, temporalAmount); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__plus1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__plus1(jobject self_, int64_t j, jobject temporalUnit) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__plus1, "plus", "(JLjava/time/temporal/TemporalUnit;)Ljava/time/Instant;"); if (_m_Instant__plus1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__plus1, j, temporalUnit); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__plusSeconds = NULL; FFI_PLUGIN_EXPORT JniResult Instant__plusSeconds(jobject self_, int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__plusSeconds, "plusSeconds", "(J)Ljava/time/Instant;"); if (_m_Instant__plusSeconds == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__plusSeconds, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__plusMillis = NULL; FFI_PLUGIN_EXPORT JniResult Instant__plusMillis(jobject self_, int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__plusMillis, "plusMillis", "(J)Ljava/time/Instant;"); if (_m_Instant__plusMillis == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__plusMillis, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__plusNanos = NULL; FFI_PLUGIN_EXPORT JniResult Instant__plusNanos(jobject self_, int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__plusNanos, "plusNanos", "(J)Ljava/time/Instant;"); if (_m_Instant__plusNanos == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__plusNanos, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__minus = NULL; FFI_PLUGIN_EXPORT JniResult Instant__minus(jobject self_, jobject temporalAmount) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__minus, "minus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/Instant;"); if (_m_Instant__minus == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__minus, temporalAmount); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__minus1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__minus1(jobject self_, int64_t j, jobject temporalUnit) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__minus1, "minus", "(JLjava/time/temporal/TemporalUnit;)Ljava/time/Instant;"); if (_m_Instant__minus1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__minus1, j, temporalUnit); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__minusSeconds = NULL; FFI_PLUGIN_EXPORT JniResult Instant__minusSeconds(jobject self_, int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__minusSeconds, "minusSeconds", "(J)Ljava/time/Instant;"); if (_m_Instant__minusSeconds == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__minusSeconds, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__minusMillis = NULL; FFI_PLUGIN_EXPORT JniResult Instant__minusMillis(jobject self_, int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__minusMillis, "minusMillis", "(J)Ljava/time/Instant;"); if (_m_Instant__minusMillis == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__minusMillis, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__minusNanos = NULL; FFI_PLUGIN_EXPORT JniResult Instant__minusNanos(jobject self_, int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__minusNanos, "minusNanos", "(J)Ljava/time/Instant;"); if (_m_Instant__minusNanos == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__minusNanos, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__query = NULL; FFI_PLUGIN_EXPORT JniResult Instant__query(jobject self_, jobject temporalQuery) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__query, "query", "(Ljava/time/temporal/TemporalQuery;)Ljava/lang/Object;"); if (_m_Instant__query == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__query, temporalQuery); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__adjustInto = NULL; FFI_PLUGIN_EXPORT JniResult Instant__adjustInto(jobject self_, jobject temporal) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__adjustInto, "adjustInto", "(Ljava/time/temporal/Temporal;)Ljava/time/temporal/Temporal;"); if (_m_Instant__adjustInto == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__adjustInto, temporal); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__until = NULL; @@ -11159,1684 +10954,317 @@ JniResult Instant__until(jobject self_, jobject temporal, jobject temporalUnit) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Instant, &_m_Instant__until, "until", "(Ljava/time/temporal/Temporal;Ljava/time/temporal/TemporalUnit;)J"); if (_m_Instant__until == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int64_t _result = (*jniEnv)->CallLongMethod(jniEnv, self_, _m_Instant__until, temporal, temporalUnit); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; + return (JniResult){.value = {.j = _result}, .exception = check_exception()}; } jmethodID _m_Instant__atOffset = NULL; FFI_PLUGIN_EXPORT JniResult Instant__atOffset(jobject self_, jobject zoneOffset) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__atOffset, "atOffset", "(Ljava/time/ZoneOffset;)Ljava/time/OffsetDateTime;"); if (_m_Instant__atOffset == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__atOffset, zoneOffset); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__atZone = NULL; FFI_PLUGIN_EXPORT JniResult Instant__atZone(jobject self_, jobject zoneId) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__atZone, "atZone", "(Ljava/time/ZoneId;)Ljava/time/ZonedDateTime;"); if (_m_Instant__atZone == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__atZone, zoneId); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__toEpochMilli = NULL; FFI_PLUGIN_EXPORT JniResult Instant__toEpochMilli(jobject self_) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__toEpochMilli, "toEpochMilli", "()J"); if (_m_Instant__toEpochMilli == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int64_t _result = (*jniEnv)->CallLongMethod(jniEnv, self_, _m_Instant__toEpochMilli); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; + return (JniResult){.value = {.j = _result}, .exception = check_exception()}; } jmethodID _m_Instant__compareTo = NULL; FFI_PLUGIN_EXPORT JniResult Instant__compareTo(jobject self_, jobject instant) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__compareTo, "compareTo", "(Ljava/time/Instant;)I"); if (_m_Instant__compareTo == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Instant__compareTo, instant); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Instant__isAfter = NULL; FFI_PLUGIN_EXPORT JniResult Instant__isAfter(jobject self_, jobject instant) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__isAfter, "isAfter", "(Ljava/time/Instant;)Z"); if (_m_Instant__isAfter == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Instant__isAfter, instant); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Instant__isBefore = NULL; FFI_PLUGIN_EXPORT JniResult Instant__isBefore(jobject self_, jobject instant) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__isBefore, "isBefore", "(Ljava/time/Instant;)Z"); if (_m_Instant__isBefore == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Instant__isBefore, instant); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Instant__equals1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__equals1(jobject self_, jobject object) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__equals1, "equals", "(Ljava/lang/Object;)Z"); if (_m_Instant__equals1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Instant__equals1, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_Instant__hashCode1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__hashCode1(jobject self_) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__hashCode1, "hashCode", "()I"); if (_m_Instant__hashCode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Instant__hashCode1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jmethodID _m_Instant__toString1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__toString1(jobject self_) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__toString1, "toString", "()Ljava/lang/String;"); if (_m_Instant__toString1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Instant__toString1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__minus2 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__minus2(jobject self_, int64_t j, jobject temporalUnit) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Instant, &_m_Instant__minus2, "minus", "(JLjava/time/temporal/TemporalUnit;)Ljava/time/temporal/Temporal;"); if (_m_Instant__minus2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__minus2, j, temporalUnit); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__minus3 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__minus3(jobject self_, jobject temporalAmount) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Instant, &_m_Instant__minus3, "minus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/temporal/Temporal;"); if (_m_Instant__minus3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__minus3, temporalAmount); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__plus2 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__plus2(jobject self_, int64_t j, jobject temporalUnit) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Instant, &_m_Instant__plus2, "plus", "(JLjava/time/temporal/TemporalUnit;)Ljava/time/temporal/Temporal;"); if (_m_Instant__plus2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__plus2, j, temporalUnit); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__plus3 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__plus3(jobject self_, jobject temporalAmount) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Instant, &_m_Instant__plus3, "plus", "(Ljava/time/temporal/TemporalAmount;)Ljava/time/temporal/Temporal;"); if (_m_Instant__plus3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__plus3, temporalAmount); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__with2 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__with2(jobject self_, jobject temporalField, int64_t j) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Instant, &_m_Instant__with2, "with", "(Ljava/time/temporal/TemporalField;J)Ljava/time/temporal/Temporal;"); if (_m_Instant__with2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__with2, temporalField, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__with3 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__with3(jobject self_, jobject temporalAdjuster) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_Instant, &_m_Instant__with3, "with", "(Ljava/time/temporal/TemporalAdjuster;)Ljava/time/temporal/Temporal;"); if (_m_Instant__with3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_Instant__with3, temporalAdjuster); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_Instant__compareTo1 = NULL; FFI_PLUGIN_EXPORT JniResult Instant__compareTo1(jobject self_, jobject object) { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_Instant, &_m_Instant__compareTo1, "compareTo", "(Ljava/lang/Object;)I"); if (_m_Instant__compareTo1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Instant__compareTo1, object); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } jfieldID _f_Instant__EPOCH = NULL; FFI_PLUGIN_EXPORT JniResult get_Instant__EPOCH() { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field(_c_Instant, &_f_Instant__EPOCH, "EPOCH", "Ljava/time/Instant;"); - jobject _result = to_global_ref( - (*jniEnv)->GetStaticObjectField(jniEnv, _c_Instant, _f_Instant__EPOCH)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = + (*jniEnv)->GetStaticObjectField(jniEnv, _c_Instant, _f_Instant__EPOCH); + return to_global_ref_result(_result); } jfieldID _f_Instant__MAX = NULL; FFI_PLUGIN_EXPORT JniResult get_Instant__MAX() { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field(_c_Instant, &_f_Instant__MAX, "MAX", "Ljava/time/Instant;"); - jobject _result = to_global_ref( - (*jniEnv)->GetStaticObjectField(jniEnv, _c_Instant, _f_Instant__MAX)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = + (*jniEnv)->GetStaticObjectField(jniEnv, _c_Instant, _f_Instant__MAX); + return to_global_ref_result(_result); } jfieldID _f_Instant__MIN = NULL; FFI_PLUGIN_EXPORT JniResult get_Instant__MIN() { load_env(); - load_class_gr(&_c_Instant, "java/time/Instant"); + load_class_global_ref(&_c_Instant, "java/time/Instant"); if (_c_Instant == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field(_c_Instant, &_f_Instant__MIN, "MIN", "Ljava/time/Instant;"); - jobject _result = to_global_ref( - (*jniEnv)->GetStaticObjectField(jniEnv, _c_Instant, _f_Instant__MIN)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; -} - -// java.lang.Long -jclass _c_Long = NULL; - -jmethodID _m_Long__ctor = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__ctor(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__ctor, "", "(J)V"); - if (_m_Long__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->NewObject(jniEnv, _c_Long, _m_Long__ctor, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__ctor1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__ctor1(jobject string) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__ctor1, "", "(Ljava/lang/String;)V"); - if (_m_Long__ctor1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->NewObject(jniEnv, _c_Long, _m_Long__ctor1, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__toString1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__toString1(int64_t j, int32_t i) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__toString1, "toString", - "(JI)Ljava/lang/String;"); - if (_m_Long__toString1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Long, - _m_Long__toString1, j, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__toUnsignedString = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__toUnsignedString(int64_t j, int32_t i) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__toUnsignedString, "toUnsignedString", - "(JI)Ljava/lang/String;"); - if (_m_Long__toUnsignedString == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Long, _m_Long__toUnsignedString, j, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__toHexString = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__toHexString(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__toHexString, "toHexString", - "(J)Ljava/lang/String;"); - if (_m_Long__toHexString == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Long, - _m_Long__toHexString, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__toOctalString = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__toOctalString(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__toOctalString, "toOctalString", - "(J)Ljava/lang/String;"); - if (_m_Long__toOctalString == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Long, _m_Long__toOctalString, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__toBinaryString = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__toBinaryString(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__toBinaryString, "toBinaryString", - "(J)Ljava/lang/String;"); - if (_m_Long__toBinaryString == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Long, _m_Long__toBinaryString, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__toString2 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__toString2(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__toString2, "toString", - "(J)Ljava/lang/String;"); - if (_m_Long__toString2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Long, _m_Long__toString2, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__toUnsignedString1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__toUnsignedString1(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__toUnsignedString1, "toUnsignedString", - "(J)Ljava/lang/String;"); - if (_m_Long__toUnsignedString1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Long, _m_Long__toUnsignedString1, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__parseLong = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__parseLong(jobject string, int32_t i) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__parseLong, "parseLong", - "(Ljava/lang/String;I)J"); - if (_m_Long__parseLong == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod( - jniEnv, _c_Long, _m_Long__parseLong, string, i); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__parseLong1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__parseLong1(jobject charSequence, - int32_t i, - int32_t i1, - int32_t i2) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__parseLong1, "parseLong", - "(Ljava/lang/CharSequence;III)J"); - if (_m_Long__parseLong1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod( - jniEnv, _c_Long, _m_Long__parseLong1, charSequence, i, i1, i2); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__parseLong2 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__parseLong2(jobject string) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__parseLong2, "parseLong", - "(Ljava/lang/String;)J"); - if (_m_Long__parseLong2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod( - jniEnv, _c_Long, _m_Long__parseLong2, string); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__parseUnsignedLong = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__parseUnsignedLong(jobject string, int32_t i) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__parseUnsignedLong, "parseUnsignedLong", - "(Ljava/lang/String;I)J"); - if (_m_Long__parseUnsignedLong == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod( - jniEnv, _c_Long, _m_Long__parseUnsignedLong, string, i); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__parseUnsignedLong1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__parseUnsignedLong1(jobject charSequence, - int32_t i, - int32_t i1, - int32_t i2) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__parseUnsignedLong1, "parseUnsignedLong", - "(Ljava/lang/CharSequence;III)J"); - if (_m_Long__parseUnsignedLong1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod( - jniEnv, _c_Long, _m_Long__parseUnsignedLong1, charSequence, i, i1, i2); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__parseUnsignedLong2 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__parseUnsignedLong2(jobject string) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__parseUnsignedLong2, "parseUnsignedLong", - "(Ljava/lang/String;)J"); - if (_m_Long__parseUnsignedLong2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod( - jniEnv, _c_Long, _m_Long__parseUnsignedLong2, string); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__valueOf = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__valueOf(jobject string, int32_t i) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__valueOf, "valueOf", - "(Ljava/lang/String;I)Ljava/lang/Long;"); - if (_m_Long__valueOf == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Long, _m_Long__valueOf, string, i); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__valueOf1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__valueOf1(jobject string) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__valueOf1, "valueOf", - "(Ljava/lang/String;)Ljava/lang/Long;"); - if (_m_Long__valueOf1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Long, _m_Long__valueOf1, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__valueOf2 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__valueOf2(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__valueOf2, "valueOf", - "(J)Ljava/lang/Long;"); - if (_m_Long__valueOf2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Long, _m_Long__valueOf2, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__decode = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__decode(jobject string) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__decode, "decode", - "(Ljava/lang/String;)Ljava/lang/Long;"); - if (_m_Long__decode == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Long, - _m_Long__decode, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__byteValue = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__byteValue(jobject self_) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__byteValue, "byteValue", "()B"); - if (_m_Long__byteValue == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int8_t _result = (*jniEnv)->CallByteMethod(jniEnv, self_, _m_Long__byteValue); - return (JniResult){.result = {.b = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__shortValue = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__shortValue(jobject self_) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__shortValue, "shortValue", "()S"); - if (_m_Long__shortValue == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int16_t _result = - (*jniEnv)->CallShortMethod(jniEnv, self_, _m_Long__shortValue); - return (JniResult){.result = {.s = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__intValue = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__intValue(jobject self_) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__intValue, "intValue", "()I"); - if (_m_Long__intValue == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Long__intValue); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__longValue = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__longValue(jobject self_) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__longValue, "longValue", "()J"); - if (_m_Long__longValue == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = - (*jniEnv)->CallLongMethod(jniEnv, self_, _m_Long__longValue); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__floatValue = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__floatValue(jobject self_) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__floatValue, "floatValue", "()F"); - if (_m_Long__floatValue == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - float _result = - (*jniEnv)->CallFloatMethod(jniEnv, self_, _m_Long__floatValue); - return (JniResult){.result = {.f = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__doubleValue = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__doubleValue(jobject self_) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__doubleValue, "doubleValue", "()D"); - if (_m_Long__doubleValue == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - double _result = - (*jniEnv)->CallDoubleMethod(jniEnv, self_, _m_Long__doubleValue); - return (JniResult){.result = {.d = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__toString3 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__toString3(jobject self_) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__toString3, "toString", "()Ljava/lang/String;"); - if (_m_Long__toString3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Long__toString3); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__hashCode1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__hashCode1(jobject self_) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__hashCode1, "hashCode", "()I"); - if (_m_Long__hashCode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Long__hashCode1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__hashCode2 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__hashCode2(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__hashCode2, "hashCode", "(J)I"); - if (_m_Long__hashCode2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = - (*jniEnv)->CallStaticIntMethod(jniEnv, _c_Long, _m_Long__hashCode2, j); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__equals1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__equals1(jobject self_, jobject object) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__equals1, "equals", "(Ljava/lang/Object;)Z"); - if (_m_Long__equals1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = - (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Long__equals1, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__getLong = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__getLong(jobject string) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__getLong, "getLong", - "(Ljava/lang/String;)Ljava/lang/Long;"); - if (_m_Long__getLong == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Long, - _m_Long__getLong, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__getLong1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__getLong1(jobject string, int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__getLong1, "getLong", - "(Ljava/lang/String;J)Ljava/lang/Long;"); - if (_m_Long__getLong1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Long, _m_Long__getLong1, string, j); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__getLong2 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__getLong2(jobject string, jobject long0) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__getLong2, "getLong", - "(Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/Long;"); - if (_m_Long__getLong2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Long, _m_Long__getLong2, string, long0); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Long__compareTo = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__compareTo(jobject self_, jobject long0) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__compareTo, "compareTo", "(Ljava/lang/Long;)I"); - if (_m_Long__compareTo == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = - (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Long__compareTo, long0); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__compare = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__compare(int64_t j, int64_t j1) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__compare, "compare", "(JJ)I"); - if (_m_Long__compare == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = - (*jniEnv)->CallStaticIntMethod(jniEnv, _c_Long, _m_Long__compare, j, j1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__compareUnsigned = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__compareUnsigned(int64_t j, int64_t j1) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__compareUnsigned, "compareUnsigned", - "(JJ)I"); - if (_m_Long__compareUnsigned == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = (*jniEnv)->CallStaticIntMethod( - jniEnv, _c_Long, _m_Long__compareUnsigned, j, j1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__divideUnsigned = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__divideUnsigned(int64_t j, int64_t j1) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__divideUnsigned, "divideUnsigned", - "(JJ)J"); - if (_m_Long__divideUnsigned == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod( - jniEnv, _c_Long, _m_Long__divideUnsigned, j, j1); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__remainderUnsigned = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__remainderUnsigned(int64_t j, int64_t j1) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__remainderUnsigned, "remainderUnsigned", - "(JJ)J"); - if (_m_Long__remainderUnsigned == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod( - jniEnv, _c_Long, _m_Long__remainderUnsigned, j, j1); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__highestOneBit = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__highestOneBit(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__highestOneBit, "highestOneBit", "(J)J"); - if (_m_Long__highestOneBit == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, - _m_Long__highestOneBit, j); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__lowestOneBit = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__lowestOneBit(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__lowestOneBit, "lowestOneBit", "(J)J"); - if (_m_Long__lowestOneBit == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, - _m_Long__lowestOneBit, j); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__numberOfLeadingZeros = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__numberOfLeadingZeros(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__numberOfLeadingZeros, - "numberOfLeadingZeros", "(J)I"); - if (_m_Long__numberOfLeadingZeros == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = (*jniEnv)->CallStaticIntMethod( - jniEnv, _c_Long, _m_Long__numberOfLeadingZeros, j); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__numberOfTrailingZeros = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__numberOfTrailingZeros(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__numberOfTrailingZeros, - "numberOfTrailingZeros", "(J)I"); - if (_m_Long__numberOfTrailingZeros == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = (*jniEnv)->CallStaticIntMethod( - jniEnv, _c_Long, _m_Long__numberOfTrailingZeros, j); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__bitCount = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__bitCount(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__bitCount, "bitCount", "(J)I"); - if (_m_Long__bitCount == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = - (*jniEnv)->CallStaticIntMethod(jniEnv, _c_Long, _m_Long__bitCount, j); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__rotateLeft = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__rotateLeft(int64_t j, int32_t i) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__rotateLeft, "rotateLeft", "(JI)J"); - if (_m_Long__rotateLeft == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, - _m_Long__rotateLeft, j, i); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__rotateRight = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__rotateRight(int64_t j, int32_t i) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__rotateRight, "rotateRight", "(JI)J"); - if (_m_Long__rotateRight == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, - _m_Long__rotateRight, j, i); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__reverse = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__reverse(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__reverse, "reverse", "(J)J"); - if (_m_Long__reverse == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = - (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, _m_Long__reverse, j); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__signum = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__signum(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__signum, "signum", "(J)I"); - if (_m_Long__signum == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = - (*jniEnv)->CallStaticIntMethod(jniEnv, _c_Long, _m_Long__signum, j); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__reverseBytes = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__reverseBytes(int64_t j) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__reverseBytes, "reverseBytes", "(J)J"); - if (_m_Long__reverseBytes == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, - _m_Long__reverseBytes, j); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__sum = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__sum(int64_t j, int64_t j1) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__sum, "sum", "(JJ)J"); - if (_m_Long__sum == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = - (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, _m_Long__sum, j, j1); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__max = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__max(int64_t j, int64_t j1) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__max, "max", "(JJ)J"); - if (_m_Long__max == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = - (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, _m_Long__max, j, j1); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__min = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__min(int64_t j, int64_t j1) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Long, &_m_Long__min, "min", "(JJ)J"); - if (_m_Long__min == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int64_t _result = - (*jniEnv)->CallStaticLongMethod(jniEnv, _c_Long, _m_Long__min, j, j1); - return (JniResult){.result = {.j = _result}, .exception = check_exception()}; -} - -jmethodID _m_Long__compareTo1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Long__compareTo1(jobject self_, jobject object) { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Long, &_m_Long__compareTo1, "compareTo", - "(Ljava/lang/Object;)I"); - if (_m_Long__compareTo1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = - (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Long__compareTo1, object); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jfieldID _f_Long__TYPE = NULL; -FFI_PLUGIN_EXPORT -JniResult get_Long__TYPE() { - load_env(); - load_class_gr(&_c_Long, "java/lang/Long"); - if (_c_Long == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_field(_c_Long, &_f_Long__TYPE, "TYPE", "Ljava/lang/Class;"); - jobject _result = to_global_ref( - (*jniEnv)->GetStaticObjectField(jniEnv, _c_Long, _f_Long__TYPE)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; -} - -// java.util.Set -jclass _c_Set = NULL; - -jmethodID _m_Set__size = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__size(jobject self_) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__size, "size", "()I"); - if (_m_Set__size == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Set__size); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__isEmpty = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__isEmpty(jobject self_) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__isEmpty, "isEmpty", "()Z"); - if (_m_Set__isEmpty == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = - (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Set__isEmpty); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__contains = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__contains(jobject self_, jobject object) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__contains, "contains", "(Ljava/lang/Object;)Z"); - if (_m_Set__contains == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = - (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Set__contains, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__iterator = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__iterator(jobject self_) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__iterator, "iterator", "()Ljava/util/Iterator;"); - if (_m_Set__iterator == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Set__iterator); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__toArray = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__toArray(jobject self_) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__toArray, "toArray", "()[Ljava/lang/Object;"); - if (_m_Set__toArray == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Set__toArray); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__toArray1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__toArray1(jobject self_, jobject objects) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__toArray1, "toArray", - "([Ljava/lang/Object;)[Ljava/lang/Object;"); - if (_m_Set__toArray1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Set__toArray1, objects); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__add = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__add(jobject self_, jobject object) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__add, "add", "(Ljava/lang/Object;)Z"); - if (_m_Set__add == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = - (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Set__add, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__remove = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__remove(jobject self_, jobject object) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__remove, "remove", "(Ljava/lang/Object;)Z"); - if (_m_Set__remove == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = - (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Set__remove, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__containsAll = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__containsAll(jobject self_, jobject collection) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__containsAll, "containsAll", - "(Ljava/util/Collection;)Z"); - if (_m_Set__containsAll == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = (*jniEnv)->CallBooleanMethod( - jniEnv, self_, _m_Set__containsAll, collection); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__addAll = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__addAll(jobject self_, jobject collection) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__addAll, "addAll", "(Ljava/util/Collection;)Z"); - if (_m_Set__addAll == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = - (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Set__addAll, collection); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__retainAll = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__retainAll(jobject self_, jobject collection) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__retainAll, "retainAll", - "(Ljava/util/Collection;)Z"); - if (_m_Set__retainAll == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, - _m_Set__retainAll, collection); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__removeAll = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__removeAll(jobject self_, jobject collection) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__removeAll, "removeAll", - "(Ljava/util/Collection;)Z"); - if (_m_Set__removeAll == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = (*jniEnv)->CallBooleanMethod(jniEnv, self_, - _m_Set__removeAll, collection); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__clear = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__clear(jobject self_) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__clear, "clear", "()V"); - if (_m_Set__clear == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - (*jniEnv)->CallVoidMethod(jniEnv, self_, _m_Set__clear); - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; -} - -jmethodID _m_Set__equals1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__equals1(jobject self_, jobject object) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__equals1, "equals", "(Ljava/lang/Object;)Z"); - if (_m_Set__equals1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - uint8_t _result = - (*jniEnv)->CallBooleanMethod(jniEnv, self_, _m_Set__equals1, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__hashCode1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__hashCode1(jobject self_) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__hashCode1, "hashCode", "()I"); - if (_m_Set__hashCode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_Set__hashCode1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; -} - -jmethodID _m_Set__spliterator = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__spliterator(jobject self_) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_method(_c_Set, &_m_Set__spliterator, "spliterator", - "()Ljava/util/Spliterator;"); - if (_m_Set__spliterator == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; jobject _result = - (*jniEnv)->CallObjectMethod(jniEnv, self_, _m_Set__spliterator); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of() { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Set, &_m_Set__of, "of", "()Ljava/util/Set;"); - if (_m_Set__of == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Set, _m_Set__of); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of1 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of1(jobject object) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Set, &_m_Set__of1, "of", - "(Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Set, _m_Set__of1, object); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of2 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of2(jobject object, jobject object1) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Set, &_m_Set__of2, "of", - "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of2 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of2, object, object1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of3 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of3(jobject object, jobject object1, jobject object2) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Set, &_m_Set__of3, "of", - "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;)Ljava/util/Set;"); - if (_m_Set__of3 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of3, object, object1, object2); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of4 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of4(jobject object, - jobject object1, - jobject object2, - jobject object3) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Set, &_m_Set__of4, "of", - "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of4 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of4, object, object1, object2, object3); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of5 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of5(jobject object, - jobject object1, - jobject object2, - jobject object3, - jobject object4) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method( - _c_Set, &_m_Set__of5, "of", - "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of5 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of5, object, object1, object2, object3, object4); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of6 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of6(jobject object, - jobject object1, - jobject object2, - jobject object3, - jobject object4, - jobject object5) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method( - _c_Set, &_m_Set__of6, "of", - "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of6 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of6, object, object1, object2, object3, object4, - object5); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of7 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of7(jobject object, - jobject object1, - jobject object2, - jobject object3, - jobject object4, - jobject object5, - jobject object6) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Set, &_m_Set__of7, "of", - "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of7 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of7, object, object1, object2, object3, object4, - object5, object6); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of8 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of8(jobject object, - jobject object1, - jobject object2, - jobject object3, - jobject object4, - jobject object5, - jobject object6, - jobject object7) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method( - _c_Set, &_m_Set__of8, "of", - "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;)Ljava/util/Set;"); - if (_m_Set__of8 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of8, object, object1, object2, object3, object4, - object5, object6, object7); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of9 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of9(jobject object, - jobject object1, - jobject object2, - jobject object3, - jobject object4, - jobject object5, - jobject object6, - jobject object7, - jobject object8) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method( - _c_Set, &_m_Set__of9, "of", - "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of9 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of9, object, object1, object2, object3, object4, - object5, object6, object7, object8); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of10 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of10(jobject object, - jobject object1, - jobject object2, - jobject object3, - jobject object4, - jobject object5, - jobject object6, - jobject object7, - jobject object8, - jobject object9) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method( - _c_Set, &_m_Set__of10, "of", - "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/" - "Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of10 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__of10, object, object1, object2, object3, object4, - object5, object6, object7, object8, object9); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__of11 = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__of11(jobject objects) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Set, &_m_Set__of11, "of", - "([Ljava/lang/Object;)Ljava/util/Set;"); - if (_m_Set__of11 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = - (*jniEnv)->CallStaticObjectMethod(jniEnv, _c_Set, _m_Set__of11, objects); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; -} - -jmethodID _m_Set__copyOf = NULL; -FFI_PLUGIN_EXPORT -JniResult Set__copyOf(jobject collection) { - load_env(); - load_class_gr(&_c_Set, "java/util/Set"); - if (_c_Set == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - load_static_method(_c_Set, &_m_Set__copyOf, "copyOf", - "(Ljava/util/Collection;)Ljava/util/Set;"); - if (_m_Set__copyOf == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; - jobject _result = (*jniEnv)->CallStaticObjectMethod( - jniEnv, _c_Set, _m_Set__copyOf, collection); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + (*jniEnv)->GetStaticObjectField(jniEnv, _c_Instant, _f_Instant__MIN); + return to_global_ref_result(_result); } // androidx.health.connect.client.request.AggregateGroupByDurationRequest @@ -12849,23 +11277,22 @@ JniResult AggregateGroupByDurationRequest__ctor(jobject set, jobject duration, jobject set1) { load_env(); - load_class_gr( + load_class_global_ref( &_c_AggregateGroupByDurationRequest, "androidx/health/connect/client/request/AggregateGroupByDurationRequest"); if (_c_AggregateGroupByDurationRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateGroupByDurationRequest, &_m_AggregateGroupByDurationRequest__ctor, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/time/Duration;Ljava/util/Set;)V"); if (_m_AggregateGroupByDurationRequest__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_AggregateGroupByDurationRequest, _m_AggregateGroupByDurationRequest__ctor, set, timeRangeFilter, duration, set1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_AggregateGroupByDurationRequest__ctor1 = NULL; @@ -12878,24 +11305,23 @@ JniResult AggregateGroupByDurationRequest__ctor1( int32_t i, jobject defaultConstructorMarker) { load_env(); - load_class_gr( + load_class_global_ref( &_c_AggregateGroupByDurationRequest, "androidx/health/connect/client/request/AggregateGroupByDurationRequest"); if (_c_AggregateGroupByDurationRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateGroupByDurationRequest, &_m_AggregateGroupByDurationRequest__ctor1, "", "(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) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_AggregateGroupByDurationRequest, _m_AggregateGroupByDurationRequest__ctor1, set, timeRangeFilter, duration, set1, i, defaultConstructorMarker); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } // androidx.health.connect.client.request.AggregateGroupByPeriodRequest @@ -12908,23 +11334,22 @@ JniResult AggregateGroupByPeriodRequest__ctor(jobject set, jobject period, jobject set1) { load_env(); - load_class_gr( + load_class_global_ref( &_c_AggregateGroupByPeriodRequest, "androidx/health/connect/client/request/AggregateGroupByPeriodRequest"); if (_c_AggregateGroupByPeriodRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateGroupByPeriodRequest, &_m_AggregateGroupByPeriodRequest__ctor, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/time/Period;Ljava/util/Set;)V"); if (_m_AggregateGroupByPeriodRequest__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_AggregateGroupByPeriodRequest, _m_AggregateGroupByPeriodRequest__ctor, set, timeRangeFilter, period, set1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_AggregateGroupByPeriodRequest__ctor1 = NULL; @@ -12937,24 +11362,23 @@ JniResult AggregateGroupByPeriodRequest__ctor1( int32_t i, jobject defaultConstructorMarker) { load_env(); - load_class_gr( + load_class_global_ref( &_c_AggregateGroupByPeriodRequest, "androidx/health/connect/client/request/AggregateGroupByPeriodRequest"); if (_c_AggregateGroupByPeriodRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateGroupByPeriodRequest, &_m_AggregateGroupByPeriodRequest__ctor1, "", "(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) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_AggregateGroupByPeriodRequest, _m_AggregateGroupByPeriodRequest__ctor1, set, timeRangeFilter, period, set1, i, defaultConstructorMarker); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } // androidx.health.connect.client.request.AggregateRequest @@ -12966,20 +11390,20 @@ JniResult AggregateRequest__ctor(jobject set, jobject timeRangeFilter, jobject set1) { load_env(); - load_class_gr(&_c_AggregateRequest, - "androidx/health/connect/client/request/AggregateRequest"); + load_class_global_ref( + &_c_AggregateRequest, + "androidx/health/connect/client/request/AggregateRequest"); if (_c_AggregateRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateRequest, &_m_AggregateRequest__ctor, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/util/Set;)V"); if (_m_AggregateRequest__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_AggregateRequest, _m_AggregateRequest__ctor, set, timeRangeFilter, set1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_AggregateRequest__ctor1 = NULL; @@ -12990,21 +11414,21 @@ JniResult AggregateRequest__ctor1(jobject set, int32_t i, jobject defaultConstructorMarker) { load_env(); - load_class_gr(&_c_AggregateRequest, - "androidx/health/connect/client/request/AggregateRequest"); + load_class_global_ref( + &_c_AggregateRequest, + "androidx/health/connect/client/request/AggregateRequest"); if (_c_AggregateRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregateRequest, &_m_AggregateRequest__ctor1, "", "(Ljava/util/Set;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/util/Set;ILkotlin/jvm/internal/" "DefaultConstructorMarker;)V"); if (_m_AggregateRequest__ctor1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_AggregateRequest, _m_AggregateRequest__ctor1, set, timeRangeFilter, set1, i, defaultConstructorMarker); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } // androidx.health.connect.client.request.ChangesTokenRequest @@ -13014,18 +11438,18 @@ jmethodID _m_ChangesTokenRequest__ctor = NULL; FFI_PLUGIN_EXPORT JniResult ChangesTokenRequest__ctor(jobject set, jobject set1) { load_env(); - load_class_gr(&_c_ChangesTokenRequest, - "androidx/health/connect/client/request/ChangesTokenRequest"); + load_class_global_ref( + &_c_ChangesTokenRequest, + "androidx/health/connect/client/request/ChangesTokenRequest"); if (_c_ChangesTokenRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_ChangesTokenRequest, &_m_ChangesTokenRequest__ctor, "", "(Ljava/util/Set;Ljava/util/Set;)V"); if (_m_ChangesTokenRequest__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_ChangesTokenRequest, _m_ChangesTokenRequest__ctor, set, set1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_ChangesTokenRequest__ctor1 = NULL; @@ -13035,20 +11459,20 @@ JniResult ChangesTokenRequest__ctor1(jobject set, int32_t i, jobject defaultConstructorMarker) { load_env(); - load_class_gr(&_c_ChangesTokenRequest, - "androidx/health/connect/client/request/ChangesTokenRequest"); + load_class_global_ref( + &_c_ChangesTokenRequest, + "androidx/health/connect/client/request/ChangesTokenRequest"); if (_c_ChangesTokenRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_ChangesTokenRequest, &_m_ChangesTokenRequest__ctor1, "", "(Ljava/util/Set;Ljava/util/Set;ILkotlin/jvm/internal/" "DefaultConstructorMarker;)V"); if (_m_ChangesTokenRequest__ctor1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_ChangesTokenRequest, _m_ChangesTokenRequest__ctor1, set, set1, i, defaultConstructorMarker); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } // androidx.health.connect.client.request.ReadRecordsRequest @@ -13063,20 +11487,20 @@ JniResult ReadRecordsRequest__ctor(jobject kClass, int32_t i, jobject string) { load_env(); - load_class_gr(&_c_ReadRecordsRequest, - "androidx/health/connect/client/request/ReadRecordsRequest"); + load_class_global_ref( + &_c_ReadRecordsRequest, + "androidx/health/connect/client/request/ReadRecordsRequest"); if (_c_ReadRecordsRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_ReadRecordsRequest, &_m_ReadRecordsRequest__ctor, "", "(Lkotlin/reflect/KClass;Landroidx/health/connect/client/time/" "TimeRangeFilter;Ljava/util/Set;ZILjava/lang/String;)V"); if (_m_ReadRecordsRequest__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_ReadRecordsRequest, _m_ReadRecordsRequest__ctor, kClass, timeRangeFilter, set, z, i, string); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_ReadRecordsRequest__ctor1 = NULL; @@ -13090,55 +11514,57 @@ JniResult ReadRecordsRequest__ctor1(jobject kClass, int32_t i1, jobject defaultConstructorMarker) { load_env(); - load_class_gr(&_c_ReadRecordsRequest, - "androidx/health/connect/client/request/ReadRecordsRequest"); + load_class_global_ref( + &_c_ReadRecordsRequest, + "androidx/health/connect/client/request/ReadRecordsRequest"); if (_c_ReadRecordsRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_ReadRecordsRequest, &_m_ReadRecordsRequest__ctor1, "", "(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) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_ReadRecordsRequest, _m_ReadRecordsRequest__ctor1, kClass, timeRangeFilter, set, z, i, string, i1, defaultConstructorMarker); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_ReadRecordsRequest__equals1 = NULL; FFI_PLUGIN_EXPORT JniResult ReadRecordsRequest__equals1(jobject self_, jobject object) { load_env(); - load_class_gr(&_c_ReadRecordsRequest, - "androidx/health/connect/client/request/ReadRecordsRequest"); + load_class_global_ref( + &_c_ReadRecordsRequest, + "androidx/health/connect/client/request/ReadRecordsRequest"); if (_c_ReadRecordsRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_ReadRecordsRequest, &_m_ReadRecordsRequest__equals1, "equals", "(Ljava/lang/Object;)Z"); if (_m_ReadRecordsRequest__equals1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_ReadRecordsRequest__equals1, object); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_ReadRecordsRequest__hashCode1 = NULL; FFI_PLUGIN_EXPORT JniResult ReadRecordsRequest__hashCode1(jobject self_) { load_env(); - load_class_gr(&_c_ReadRecordsRequest, - "androidx/health/connect/client/request/ReadRecordsRequest"); + load_class_global_ref( + &_c_ReadRecordsRequest, + "androidx/health/connect/client/request/ReadRecordsRequest"); if (_c_ReadRecordsRequest == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_ReadRecordsRequest, &_m_ReadRecordsRequest__hashCode1, "hashCode", "()I"); if (_m_ReadRecordsRequest__hashCode1 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; int32_t _result = (*jniEnv)->CallIntMethod(jniEnv, self_, _m_ReadRecordsRequest__hashCode1); - return (JniResult){.result = {.i = _result}, .exception = check_exception()}; + return (JniResult){.value = {.i = _result}, .exception = check_exception()}; } // androidx.health.connect.client.aggregate.AggregationResult @@ -13148,110 +11574,112 @@ jmethodID _m_AggregationResult__ctor = NULL; FFI_PLUGIN_EXPORT JniResult AggregationResult__ctor(jobject map, jobject map1, jobject set) { load_env(); - load_class_gr(&_c_AggregationResult, - "androidx/health/connect/client/aggregate/AggregationResult"); + load_class_global_ref( + &_c_AggregationResult, + "androidx/health/connect/client/aggregate/AggregationResult"); if (_c_AggregationResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregationResult, &_m_AggregationResult__ctor, "", "(Ljava/util/Map;Ljava/util/Map;Ljava/util/Set;)V"); if (_m_AggregationResult__ctor == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject( jniEnv, _c_AggregationResult, _m_AggregationResult__ctor, map, map1, set); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_AggregationResult__getDataOrigins = NULL; FFI_PLUGIN_EXPORT JniResult AggregationResult__getDataOrigins(jobject self_) { load_env(); - load_class_gr(&_c_AggregationResult, - "androidx/health/connect/client/aggregate/AggregationResult"); + load_class_global_ref( + &_c_AggregationResult, + "androidx/health/connect/client/aggregate/AggregationResult"); if (_c_AggregationResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregationResult, &_m_AggregationResult__getDataOrigins, "getDataOrigins", "()Ljava/util/Set;"); if (_m_AggregationResult__getDataOrigins == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_AggregationResult__getDataOrigins); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_AggregationResult__hasMetric = NULL; FFI_PLUGIN_EXPORT JniResult AggregationResult__hasMetric(jobject self_, jobject aggregateMetric) { load_env(); - load_class_gr(&_c_AggregationResult, - "androidx/health/connect/client/aggregate/AggregationResult"); + load_class_global_ref( + &_c_AggregationResult, + "androidx/health/connect/client/aggregate/AggregationResult"); if (_c_AggregationResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregationResult, &_m_AggregationResult__hasMetric, "hasMetric", "(Landroidx/health/connect/client/aggregate/AggregateMetric;)Z"); if (_m_AggregationResult__hasMetric == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_AggregationResult__hasMetric, aggregateMetric); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_AggregationResult__contains = NULL; FFI_PLUGIN_EXPORT JniResult AggregationResult__contains(jobject self_, jobject aggregateMetric) { load_env(); - load_class_gr(&_c_AggregationResult, - "androidx/health/connect/client/aggregate/AggregationResult"); + load_class_global_ref( + &_c_AggregationResult, + "androidx/health/connect/client/aggregate/AggregationResult"); if (_c_AggregationResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregationResult, &_m_AggregationResult__contains, "contains", "(Landroidx/health/connect/client/aggregate/AggregateMetric;)Z"); if (_m_AggregationResult__contains == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; uint8_t _result = (*jniEnv)->CallBooleanMethod( jniEnv, self_, _m_AggregationResult__contains, aggregateMetric); - return (JniResult){.result = {.z = _result}, .exception = check_exception()}; + return (JniResult){.value = {.z = _result}, .exception = check_exception()}; } jmethodID _m_AggregationResult__getMetric = NULL; FFI_PLUGIN_EXPORT JniResult AggregationResult__getMetric(jobject self_, jobject aggregateMetric) { load_env(); - load_class_gr(&_c_AggregationResult, - "androidx/health/connect/client/aggregate/AggregationResult"); + load_class_global_ref( + &_c_AggregationResult, + "androidx/health/connect/client/aggregate/AggregationResult"); if (_c_AggregationResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregationResult, &_m_AggregationResult__getMetric, "getMetric", "(Landroidx/health/connect/client/aggregate/" "AggregateMetric;)Ljava/lang/Object;"); if (_m_AggregationResult__getMetric == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_AggregationResult__getMetric, aggregateMetric); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jmethodID _m_AggregationResult__get0 = NULL; FFI_PLUGIN_EXPORT JniResult AggregationResult__get0(jobject self_, jobject aggregateMetric) { load_env(); - load_class_gr(&_c_AggregationResult, - "androidx/health/connect/client/aggregate/AggregationResult"); + load_class_global_ref( + &_c_AggregationResult, + "androidx/health/connect/client/aggregate/AggregationResult"); if (_c_AggregationResult == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method(_c_AggregationResult, &_m_AggregationResult__get0, "get", "(Landroidx/health/connect/client/aggregate/" "AggregateMetric;)Ljava/lang/Object;"); if (_m_AggregationResult__get0 == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->CallObjectMethod( jniEnv, self_, _m_AggregationResult__get0, aggregateMetric); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } // androidx.health.connect.client.aggregate.AggregateMetric @@ -13264,36 +11692,37 @@ JniResult AggregateMetric__ctor(jobject converter, jobject aggregationType, jobject string1) { load_env(); - load_class_gr(&_c_AggregateMetric, - "androidx/health/connect/client/aggregate/AggregateMetric"); + load_class_global_ref( + &_c_AggregateMetric, + "androidx/health/connect/client/aggregate/AggregateMetric"); if (_c_AggregateMetric == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_method( _c_AggregateMetric, &_m_AggregateMetric__ctor, "", "(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) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; jobject _result = (*jniEnv)->NewObject(jniEnv, _c_AggregateMetric, _m_AggregateMetric__ctor, converter, string, aggregationType, string1); - return (JniResult){.result = {.l = to_global_ref(_result)}, - .exception = check_exception()}; + return to_global_ref_result(_result); } jfieldID _f_AggregateMetric__Companion = NULL; FFI_PLUGIN_EXPORT JniResult get_AggregateMetric__Companion() { load_env(); - load_class_gr(&_c_AggregateMetric, - "androidx/health/connect/client/aggregate/AggregateMetric"); + load_class_global_ref( + &_c_AggregateMetric, + "androidx/health/connect/client/aggregate/AggregateMetric"); if (_c_AggregateMetric == NULL) - return (JniResult){.result = {.j = 0}, .exception = check_exception()}; + return (JniResult){.value = {.j = 0}, .exception = check_exception()}; load_static_field( _c_AggregateMetric, &_f_AggregateMetric__Companion, "Companion", "Landroidx/health/connect/client/aggregate/AggregateMetric$Companion;"); - jobject _result = to_global_ref((*jniEnv)->GetStaticObjectField( - jniEnv, _c_AggregateMetric, _f_AggregateMetric__Companion)); - return (JniResult){.result = {.l = _result}, .exception = check_exception()}; + jobject _result = (*jniEnv)->GetStaticObjectField( + jniEnv, _c_AggregateMetric, _f_AggregateMetric__Companion); + return to_global_ref_result(_result); }