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 = "java-nio-file-attribute-UserPrincipalLookupService"))]
__jni_bindgen! {
    /// public class [UserPrincipalLookupService](https://developer.android.com/reference/java/nio/file/attribute/UserPrincipalLookupService.html)
    ///
    /// Required feature: "java-nio-file-attribute-UserPrincipalLookupService"
    public class UserPrincipalLookupService ("java/nio/file/attribute/UserPrincipalLookupService") extends crate::java::lang::Object {

        /// [lookupPrincipalByName](https://developer.android.com/reference/java/nio/file/attribute/UserPrincipalLookupService.html#lookupPrincipalByName(java.lang.String))
        ///
        /// Required features: "java-lang-String", "java-nio-file-attribute-UserPrincipal"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-nio-file-attribute-UserPrincipal")))]
        pub fn lookupPrincipalByName<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::file::attribute::UserPrincipal>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/UserPrincipalLookupService", java.flags == PUBLIC | ABSTRACT, .name == "lookupPrincipalByName", .descriptor == "(Ljava/lang/String;)Ljava/nio/file/attribute/UserPrincipal;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/file/attribute/UserPrincipalLookupService\0", "lookupPrincipalByName\0", "(Ljava/lang/String;)Ljava/nio/file/attribute/UserPrincipal;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [lookupPrincipalByGroupName](https://developer.android.com/reference/java/nio/file/attribute/UserPrincipalLookupService.html#lookupPrincipalByGroupName(java.lang.String))
        ///
        /// Required features: "java-lang-String", "java-nio-file-attribute-GroupPrincipal"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-nio-file-attribute-GroupPrincipal")))]
        pub fn lookupPrincipalByGroupName<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::nio::file::attribute::GroupPrincipal>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "java/nio/file/attribute/UserPrincipalLookupService", java.flags == PUBLIC | ABSTRACT, .name == "lookupPrincipalByGroupName", .descriptor == "(Ljava/lang/String;)Ljava/nio/file/attribute/GroupPrincipal;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("java/nio/file/attribute/UserPrincipalLookupService\0", "lookupPrincipalByGroupName\0", "(Ljava/lang/String;)Ljava/nio/file/attribute/GroupPrincipal;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}