// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-security-UnresolvedPermission"))]
__jni_bindgen! {
/// public final class [UnresolvedPermission](https://developer.android.com/reference/java/security/UnresolvedPermission.html)
///
/// Required feature: "java-security-UnresolvedPermission"
public final class UnresolvedPermission ("java/security/UnresolvedPermission") extends crate::java::security::Permission, implements crate::java::io::Serializable {
/// [UnresolvedPermission](https://developer.android.com/reference/java/security/UnresolvedPermission.html#UnresolvedPermission(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.security.cert.Certificate%5B%5D))
///
/// Required features: "java-lang-String", "java-security-cert-Certificate"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-cert-Certificate")))]
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::security::cert::Certificate, crate::java::lang::Throwable>>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::security::UnresolvedPermission>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/security/cert/Certificate;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/security/cert/Certificate;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [equals](https://developer.android.com/reference/java/security/UnresolvedPermission.html#equals(java.lang.Object))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn equals<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::Object>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "equals", .descriptor == "(Ljava/lang/Object;)Z"
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/security/UnresolvedPermission\0", "equals\0", "(Ljava/lang/Object;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hashCode](https://developer.android.com/reference/java/security/UnresolvedPermission.html#hashCode())
pub fn hashCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "hashCode", .descriptor == "()I"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "hashCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getActions](https://developer.android.com/reference/java/security/UnresolvedPermission.html#getActions())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getActions<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "getActions", .descriptor == "()Ljava/lang/String;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "getActions\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUnresolvedName](https://developer.android.com/reference/java/security/UnresolvedPermission.html#getUnresolvedName())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getUnresolvedName<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "getUnresolvedName", .descriptor == "()Ljava/lang/String;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "getUnresolvedName\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUnresolvedActions](https://developer.android.com/reference/java/security/UnresolvedPermission.html#getUnresolvedActions())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getUnresolvedActions<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "getUnresolvedActions", .descriptor == "()Ljava/lang/String;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "getUnresolvedActions\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUnresolvedType](https://developer.android.com/reference/java/security/UnresolvedPermission.html#getUnresolvedType())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getUnresolvedType<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "getUnresolvedType", .descriptor == "()Ljava/lang/String;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "getUnresolvedType\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUnresolvedCerts](https://developer.android.com/reference/java/security/UnresolvedPermission.html#getUnresolvedCerts())
///
/// Required features: "java-security-cert-Certificate"
#[cfg(any(feature = "all", all(feature = "java-security-cert-Certificate")))]
pub fn getUnresolvedCerts<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::security::cert::Certificate, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "getUnresolvedCerts", .descriptor == "()[Ljava/security/cert/Certificate;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "getUnresolvedCerts\0", "()[Ljava/security/cert/Certificate;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [implies](https://developer.android.com/reference/java/security/UnresolvedPermission.html#implies(java.security.Permission))
///
/// Required features: "java-security-Permission"
#[cfg(any(feature = "all", all(feature = "java-security-Permission")))]
pub fn implies<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Permission>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "implies", .descriptor == "(Ljava/security/Permission;)Z"
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/security/UnresolvedPermission\0", "implies\0", "(Ljava/security/Permission;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [toString](https://developer.android.com/reference/java/security/UnresolvedPermission.html#toString())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "toString", .descriptor == "()Ljava/lang/String;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [newPermissionCollection](https://developer.android.com/reference/java/security/UnresolvedPermission.html#newPermissionCollection())
///
/// Required features: "java-security-PermissionCollection"
#[cfg(any(feature = "all", all(feature = "java-security-PermissionCollection")))]
pub fn newPermissionCollection<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::PermissionCollection>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/security/UnresolvedPermission", java.flags == PUBLIC, .name == "newPermissionCollection", .descriptor == "()Ljava/security/PermissionCollection;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/security/UnresolvedPermission\0", "newPermissionCollection\0", "()Ljava/security/PermissionCollection;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}