// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-accounts-AuthenticatorDescription"))]
__jni_bindgen! {
/// public class [AuthenticatorDescription](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html)
///
/// Required feature: "android-accounts-AuthenticatorDescription"
public class AuthenticatorDescription ("android/accounts/AuthenticatorDescription") extends crate::java::lang::Object, implements crate::android::os::Parcelable {
/// [AuthenticatorDescription](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#AuthenticatorDescription(java.lang.String,%20java.lang.String,%20int,%20int,%20int,%20int,%20boolean))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_String_int_int_int_int_boolean<'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: i32, arg3: i32, arg4: i32, arg5: i32, arg6: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::accounts::AuthenticatorDescription>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/accounts/AuthenticatorDescription", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;IIIIZ)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), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5), __jni_bindgen::AsJValue::as_jvalue(&arg6)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/accounts/AuthenticatorDescription\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;IIIIZ)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [AuthenticatorDescription](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#AuthenticatorDescription(java.lang.String,%20java.lang.String,%20int,%20int,%20int,%20int))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_String_int_int_int_int<'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: i32, arg3: i32, arg4: i32, arg5: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::accounts::AuthenticatorDescription>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/accounts/AuthenticatorDescription", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;IIII)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), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/accounts/AuthenticatorDescription\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;IIII)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [newKey](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#newKey(java.lang.String))
///
/// Required features: "android-accounts-AuthenticatorDescription", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-accounts-AuthenticatorDescription", feature = "java-lang-String")))]
pub fn newKey<'env>(__jni_env: &'env __jni_bindgen::Env, 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::android::accounts::AuthenticatorDescription>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/accounts/AuthenticatorDescription", java.flags == PUBLIC | STATIC, .name == "newKey", .descriptor == "(Ljava/lang/String;)Landroid/accounts/AuthenticatorDescription;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/accounts/AuthenticatorDescription\0", "newKey\0", "(Ljava/lang/String;)Landroid/accounts/AuthenticatorDescription;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [describeContents](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#describeContents())
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/accounts/AuthenticatorDescription", java.flags == PUBLIC, .name == "describeContents", .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("android/accounts/AuthenticatorDescription\0", "describeContents\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hashCode](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#hashCode())
pub fn hashCode<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/accounts/AuthenticatorDescription", 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("android/accounts/AuthenticatorDescription\0", "hashCode\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [equals](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.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 == "android/accounts/AuthenticatorDescription", 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("android/accounts/AuthenticatorDescription\0", "equals\0", "(Ljava/lang/Object;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [toString](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.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 == "android/accounts/AuthenticatorDescription", 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("android/accounts/AuthenticatorDescription\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [writeToParcel](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#writeToParcel(android.os.Parcel,%20int))
///
/// Required features: "android-os-Parcel"
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn writeToParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/accounts/AuthenticatorDescription", java.flags == PUBLIC, .name == "writeToParcel", .descriptor == "(Landroid/os/Parcel;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/accounts/AuthenticatorDescription\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public static final [CREATOR](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#CREATOR)
///
/// Required feature: "android-os-Parcelable_Creator"
#[cfg(any(feature = "all", feature = "android-os-Parcelable_Creator"))]
pub fn CREATOR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Parcelable_Creator>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/accounts/AuthenticatorDescription\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// **get** public final [accountPreferencesId](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#accountPreferencesId)
pub fn accountPreferencesId<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/accounts/AuthenticatorDescription\0", "accountPreferencesId\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [customTokens](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#customTokens)
pub fn customTokens<'env>(&'env self) -> bool {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/accounts/AuthenticatorDescription\0", "customTokens\0", "Z\0");
env.get_boolean_field(self.0.object, __jni_field)
}
}
/// **get** public final [iconId](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#iconId)
pub fn iconId<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/accounts/AuthenticatorDescription\0", "iconId\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [labelId](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#labelId)
pub fn labelId<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/accounts/AuthenticatorDescription\0", "labelId\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [packageName](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#packageName)
///
/// Required feature: "java-lang-String"
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn packageName<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/accounts/AuthenticatorDescription\0", "packageName\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **get** public final [smallIconId](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#smallIconId)
pub fn smallIconId<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/accounts/AuthenticatorDescription\0", "smallIconId\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [type](https://developer.android.com/reference/android/accounts/AuthenticatorDescription.html#type)
///
/// Required feature: "java-lang-String"
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn r#type<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/accounts/AuthenticatorDescription\0", "type\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
}
}