// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-telecom-PhoneAccount_Builder"))]
__jni_bindgen! {
/// public class [PhoneAccount.Builder](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html)
///
/// Required feature: "android-telecom-PhoneAccount_Builder"
public class PhoneAccount_Builder ("android/telecom/PhoneAccount$Builder") extends crate::java::lang::Object {
/// [Builder](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#Builder(android.telecom.PhoneAccountHandle,%20java.lang.CharSequence))
///
/// Required features: "android-telecom-PhoneAccountHandle", "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "android-telecom-PhoneAccountHandle", feature = "java-lang-CharSequence")))]
pub fn new_PhoneAccountHandle_CharSequence<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::telecom::PhoneAccountHandle>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/telecom/PhoneAccountHandle;Ljava/lang/CharSequence;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telecom/PhoneAccount$Builder\0", "<init>\0", "(Landroid/telecom/PhoneAccountHandle;Ljava/lang/CharSequence;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Builder](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#Builder(android.telecom.PhoneAccount))
///
/// Required features: "android-telecom-PhoneAccount"
#[cfg(any(feature = "all", all(feature = "android-telecom-PhoneAccount")))]
pub fn new_PhoneAccount<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::telecom::PhoneAccount>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/telecom/PhoneAccount;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telecom/PhoneAccount$Builder\0", "<init>\0", "(Landroid/telecom/PhoneAccount;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [setAddress](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#setAddress(android.net.Uri))
///
/// Required features: "android-net-Uri", "android-telecom-PhoneAccount_Builder"
#[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "android-telecom-PhoneAccount_Builder")))]
pub fn setAddress<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "setAddress", .descriptor == "(Landroid/net/Uri;)Landroid/telecom/PhoneAccount$Builder;"
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/telecom/PhoneAccount$Builder\0", "setAddress\0", "(Landroid/net/Uri;)Landroid/telecom/PhoneAccount$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setSubscriptionAddress](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#setSubscriptionAddress(android.net.Uri))
///
/// Required features: "android-net-Uri", "android-telecom-PhoneAccount_Builder"
#[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "android-telecom-PhoneAccount_Builder")))]
pub fn setSubscriptionAddress<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "setSubscriptionAddress", .descriptor == "(Landroid/net/Uri;)Landroid/telecom/PhoneAccount$Builder;"
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/telecom/PhoneAccount$Builder\0", "setSubscriptionAddress\0", "(Landroid/net/Uri;)Landroid/telecom/PhoneAccount$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setCapabilities](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#setCapabilities(int))
///
/// Required features: "android-telecom-PhoneAccount_Builder"
#[cfg(any(feature = "all", all(feature = "android-telecom-PhoneAccount_Builder")))]
pub fn setCapabilities<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "setCapabilities", .descriptor == "(I)Landroid/telecom/PhoneAccount$Builder;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telecom/PhoneAccount$Builder\0", "setCapabilities\0", "(I)Landroid/telecom/PhoneAccount$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setIcon](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#setIcon(android.graphics.drawable.Icon))
///
/// Required features: "android-graphics-drawable-Icon", "android-telecom-PhoneAccount_Builder"
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Icon", feature = "android-telecom-PhoneAccount_Builder")))]
pub fn setIcon<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::drawable::Icon>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "setIcon", .descriptor == "(Landroid/graphics/drawable/Icon;)Landroid/telecom/PhoneAccount$Builder;"
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/telecom/PhoneAccount$Builder\0", "setIcon\0", "(Landroid/graphics/drawable/Icon;)Landroid/telecom/PhoneAccount$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setHighlightColor](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#setHighlightColor(int))
///
/// Required features: "android-telecom-PhoneAccount_Builder"
#[cfg(any(feature = "all", all(feature = "android-telecom-PhoneAccount_Builder")))]
pub fn setHighlightColor<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "setHighlightColor", .descriptor == "(I)Landroid/telecom/PhoneAccount$Builder;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/telecom/PhoneAccount$Builder\0", "setHighlightColor\0", "(I)Landroid/telecom/PhoneAccount$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setShortDescription](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#setShortDescription(java.lang.CharSequence))
///
/// Required features: "android-telecom-PhoneAccount_Builder", "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "android-telecom-PhoneAccount_Builder", feature = "java-lang-CharSequence")))]
pub fn setShortDescription<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "setShortDescription", .descriptor == "(Ljava/lang/CharSequence;)Landroid/telecom/PhoneAccount$Builder;"
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/telecom/PhoneAccount$Builder\0", "setShortDescription\0", "(Ljava/lang/CharSequence;)Landroid/telecom/PhoneAccount$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [addSupportedUriScheme](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#addSupportedUriScheme(java.lang.String))
///
/// Required features: "android-telecom-PhoneAccount_Builder", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-telecom-PhoneAccount_Builder", feature = "java-lang-String")))]
pub fn addSupportedUriScheme<'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::android::telecom::PhoneAccount_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "addSupportedUriScheme", .descriptor == "(Ljava/lang/String;)Landroid/telecom/PhoneAccount$Builder;"
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/telecom/PhoneAccount$Builder\0", "addSupportedUriScheme\0", "(Ljava/lang/String;)Landroid/telecom/PhoneAccount$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setSupportedUriSchemes](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#setSupportedUriSchemes(java.util.List))
///
/// Required features: "android-telecom-PhoneAccount_Builder", "java-util-List"
#[cfg(any(feature = "all", all(feature = "android-telecom-PhoneAccount_Builder", feature = "java-util-List")))]
pub fn setSupportedUriSchemes<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::List>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "setSupportedUriSchemes", .descriptor == "(Ljava/util/List;)Landroid/telecom/PhoneAccount$Builder;"
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/telecom/PhoneAccount$Builder\0", "setSupportedUriSchemes\0", "(Ljava/util/List;)Landroid/telecom/PhoneAccount$Builder;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [build](https://developer.android.com/reference/android/telecom/PhoneAccount.Builder.html#build())
///
/// Required features: "android-telecom-PhoneAccount"
#[cfg(any(feature = "all", all(feature = "android-telecom-PhoneAccount")))]
pub fn build<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::telecom::PhoneAccount>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/telecom/PhoneAccount$Builder", java.flags == PUBLIC, .name == "build", .descriptor == "()Landroid/telecom/PhoneAccount;"
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/telecom/PhoneAccount$Builder\0", "build\0", "()Landroid/telecom/PhoneAccount;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}