jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-content-pm-ApplicationInfo_DisplayNameComparator"))]
__jni_bindgen! {
    /// public class [ApplicationInfo.DisplayNameComparator](https://developer.android.com/reference/android/content/pm/ApplicationInfo.DisplayNameComparator.html)
    ///
    /// Required feature: "android-content-pm-ApplicationInfo_DisplayNameComparator"
    public class ApplicationInfo_DisplayNameComparator ("android/content/pm/ApplicationInfo$DisplayNameComparator") extends crate::java::lang::Object, implements crate::java::util::Comparator {

        /// [DisplayNameComparator](https://developer.android.com/reference/android/content/pm/ApplicationInfo.DisplayNameComparator.html#DisplayNameComparator(android.content.pm.PackageManager))
        ///
        /// Required features: "android-content-pm-PackageManager"
        #[cfg(any(feature = "all", all(feature = "android-content-pm-PackageManager")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::pm::PackageManager>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::ApplicationInfo_DisplayNameComparator>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/content/pm/ApplicationInfo$DisplayNameComparator", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/pm/PackageManager;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/ApplicationInfo$DisplayNameComparator\0", "<init>\0", "(Landroid/content/pm/PackageManager;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [compare](https://developer.android.com/reference/android/content/pm/ApplicationInfo.DisplayNameComparator.html#compare(android.content.pm.ApplicationInfo,%20android.content.pm.ApplicationInfo))
        ///
        /// Required features: "android-content-pm-ApplicationInfo"
        #[cfg(any(feature = "all", all(feature = "android-content-pm-ApplicationInfo")))]
        pub fn compare_ApplicationInfo_ApplicationInfo<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::pm::ApplicationInfo>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::pm::ApplicationInfo>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/content/pm/ApplicationInfo$DisplayNameComparator", java.flags == PUBLIC | FINAL, .name == "compare", .descriptor == "(Landroid/content/pm/ApplicationInfo;Landroid/content/pm/ApplicationInfo;)I"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/ApplicationInfo$DisplayNameComparator\0", "compare\0", "(Landroid/content/pm/ApplicationInfo;Landroid/content/pm/ApplicationInfo;)I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}