// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-graphics-drawable-BitmapDrawable"))]
__jni_bindgen! {
/// public class [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html)
///
/// Required feature: "android-graphics-drawable-BitmapDrawable"
public class BitmapDrawable ("android/graphics/drawable/BitmapDrawable") extends crate::android::graphics::drawable::Drawable {
/// [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable())
#[deprecated] pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::BitmapDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/BitmapDrawable\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable(android.content.res.Resources))
///
/// Required features: "android-content-res-Resources"
#[cfg(any(feature = "all", all(feature = "android-content-res-Resources")))]
pub fn new_Resources<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::BitmapDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/res/Resources;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/BitmapDrawable\0", "<init>\0", "(Landroid/content/res/Resources;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable(android.graphics.Bitmap))
///
/// Required features: "android-graphics-Bitmap"
#[cfg(any(feature = "all", all(feature = "android-graphics-Bitmap")))]
#[deprecated] pub fn new_Bitmap<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Bitmap>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::BitmapDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/graphics/Bitmap;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/BitmapDrawable\0", "<init>\0", "(Landroid/graphics/Bitmap;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable(android.content.res.Resources,%20android.graphics.Bitmap))
///
/// Required features: "android-content-res-Resources", "android-graphics-Bitmap"
#[cfg(any(feature = "all", all(feature = "android-content-res-Resources", feature = "android-graphics-Bitmap")))]
pub fn new_Resources_Bitmap<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Bitmap>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::BitmapDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)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/graphics/drawable/BitmapDrawable\0", "<init>\0", "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
#[deprecated] pub fn new_String<'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::Local<'env, crate::android::graphics::drawable::BitmapDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/BitmapDrawable\0", "<init>\0", "(Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable(android.content.res.Resources,%20java.lang.String))
///
/// Required features: "android-content-res-Resources", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-res-Resources", feature = "java-lang-String")))]
pub fn new_Resources_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::BitmapDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/res/Resources;Ljava/lang/String;)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/graphics/drawable/BitmapDrawable\0", "<init>\0", "(Landroid/content/res/Resources;Ljava/lang/String;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable(java.io.InputStream))
///
/// Required features: "java-io-InputStream"
#[cfg(any(feature = "all", all(feature = "java-io-InputStream")))]
#[deprecated] pub fn new_InputStream<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::InputStream>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::BitmapDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/io/InputStream;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/BitmapDrawable\0", "<init>\0", "(Ljava/io/InputStream;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BitmapDrawable](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#BitmapDrawable(android.content.res.Resources,%20java.io.InputStream))
///
/// Required features: "android-content-res-Resources", "java-io-InputStream"
#[cfg(any(feature = "all", all(feature = "android-content-res-Resources", feature = "java-io-InputStream")))]
pub fn new_Resources_InputStream<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::io::InputStream>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::graphics::drawable::BitmapDrawable>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/res/Resources;Ljava/io/InputStream;)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/graphics/drawable/BitmapDrawable\0", "<init>\0", "(Landroid/content/res/Resources;Ljava/io/InputStream;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getPaint](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getPaint())
///
/// Required features: "android-graphics-Paint"
#[cfg(any(feature = "all", all(feature = "android-graphics-Paint")))]
pub fn getPaint<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Paint>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC | FINAL, .name == "getPaint", .descriptor == "()Landroid/graphics/Paint;"
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/graphics/drawable/BitmapDrawable\0", "getPaint\0", "()Landroid/graphics/Paint;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getBitmap](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getBitmap())
///
/// Required features: "android-graphics-Bitmap"
#[cfg(any(feature = "all", all(feature = "android-graphics-Bitmap")))]
pub fn getBitmap<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Bitmap>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC | FINAL, .name == "getBitmap", .descriptor == "()Landroid/graphics/Bitmap;"
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/graphics/drawable/BitmapDrawable\0", "getBitmap\0", "()Landroid/graphics/Bitmap;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTargetDensity](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setTargetDensity(android.graphics.Canvas))
///
/// Required features: "android-graphics-Canvas"
#[cfg(any(feature = "all", all(feature = "android-graphics-Canvas")))]
pub fn setTargetDensity_Canvas<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Canvas>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setTargetDensity", .descriptor == "(Landroid/graphics/Canvas;)V"
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/graphics/drawable/BitmapDrawable\0", "setTargetDensity\0", "(Landroid/graphics/Canvas;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTargetDensity](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setTargetDensity(android.util.DisplayMetrics))
///
/// Required features: "android-util-DisplayMetrics"
#[cfg(any(feature = "all", all(feature = "android-util-DisplayMetrics")))]
pub fn setTargetDensity_DisplayMetrics<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::DisplayMetrics>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setTargetDensity", .descriptor == "(Landroid/util/DisplayMetrics;)V"
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/graphics/drawable/BitmapDrawable\0", "setTargetDensity\0", "(Landroid/util/DisplayMetrics;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTargetDensity](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setTargetDensity(int))
pub fn setTargetDensity_int<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setTargetDensity", .descriptor == "(I)V"
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/graphics/drawable/BitmapDrawable\0", "setTargetDensity\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getGravity](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getGravity())
pub fn getGravity<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "getGravity", .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/graphics/drawable/BitmapDrawable\0", "getGravity\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setGravity](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setGravity(int))
pub fn setGravity<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setGravity", .descriptor == "(I)V"
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/graphics/drawable/BitmapDrawable\0", "setGravity\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setAntiAlias](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setAntiAlias(boolean))
pub fn setAntiAlias<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setAntiAlias", .descriptor == "(Z)V"
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/graphics/drawable/BitmapDrawable\0", "setAntiAlias\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setFilterBitmap](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setFilterBitmap(boolean))
pub fn setFilterBitmap<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setFilterBitmap", .descriptor == "(Z)V"
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/graphics/drawable/BitmapDrawable\0", "setFilterBitmap\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setDither](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setDither(boolean))
pub fn setDither<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setDither", .descriptor == "(Z)V"
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/graphics/drawable/BitmapDrawable\0", "setDither\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTileModeX](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getTileModeX())
///
/// Required features: "android-graphics-Shader_TileMode"
#[cfg(any(feature = "all", all(feature = "android-graphics-Shader_TileMode")))]
pub fn getTileModeX<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Shader_TileMode>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "getTileModeX", .descriptor == "()Landroid/graphics/Shader$TileMode;"
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/graphics/drawable/BitmapDrawable\0", "getTileModeX\0", "()Landroid/graphics/Shader$TileMode;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTileModeY](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getTileModeY())
///
/// Required features: "android-graphics-Shader_TileMode"
#[cfg(any(feature = "all", all(feature = "android-graphics-Shader_TileMode")))]
pub fn getTileModeY<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Shader_TileMode>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "getTileModeY", .descriptor == "()Landroid/graphics/Shader$TileMode;"
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/graphics/drawable/BitmapDrawable\0", "getTileModeY\0", "()Landroid/graphics/Shader$TileMode;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTileModeX](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setTileModeX(android.graphics.Shader.TileMode))
///
/// Required features: "android-graphics-Shader_TileMode"
#[cfg(any(feature = "all", all(feature = "android-graphics-Shader_TileMode")))]
pub fn setTileModeX<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Shader_TileMode>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setTileModeX", .descriptor == "(Landroid/graphics/Shader$TileMode;)V"
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/graphics/drawable/BitmapDrawable\0", "setTileModeX\0", "(Landroid/graphics/Shader$TileMode;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTileModeY](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setTileModeY(android.graphics.Shader.TileMode))
///
/// Required features: "android-graphics-Shader_TileMode"
#[cfg(any(feature = "all", all(feature = "android-graphics-Shader_TileMode")))]
pub fn setTileModeY<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Shader_TileMode>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC | FINAL, .name == "setTileModeY", .descriptor == "(Landroid/graphics/Shader$TileMode;)V"
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/graphics/drawable/BitmapDrawable\0", "setTileModeY\0", "(Landroid/graphics/Shader$TileMode;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTileModeXY](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setTileModeXY(android.graphics.Shader.TileMode,%20android.graphics.Shader.TileMode))
///
/// Required features: "android-graphics-Shader_TileMode"
#[cfg(any(feature = "all", all(feature = "android-graphics-Shader_TileMode")))]
pub fn setTileModeXY<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Shader_TileMode>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Shader_TileMode>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setTileModeXY", .descriptor == "(Landroid/graphics/Shader$TileMode;Landroid/graphics/Shader$TileMode;)V"
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/graphics/drawable/BitmapDrawable\0", "setTileModeXY\0", "(Landroid/graphics/Shader$TileMode;Landroid/graphics/Shader$TileMode;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getChangingConfigurations](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getChangingConfigurations())
pub fn getChangingConfigurations<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "getChangingConfigurations", .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/graphics/drawable/BitmapDrawable\0", "getChangingConfigurations\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [draw](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#draw(android.graphics.Canvas))
///
/// Required features: "android-graphics-Canvas"
#[cfg(any(feature = "all", all(feature = "android-graphics-Canvas")))]
pub fn draw<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Canvas>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "draw", .descriptor == "(Landroid/graphics/Canvas;)V"
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/graphics/drawable/BitmapDrawable\0", "draw\0", "(Landroid/graphics/Canvas;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setAlpha](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setAlpha(int))
pub fn setAlpha<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setAlpha", .descriptor == "(I)V"
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/graphics/drawable/BitmapDrawable\0", "setAlpha\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setColorFilter](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#setColorFilter(android.graphics.ColorFilter))
///
/// Required features: "android-graphics-ColorFilter"
#[cfg(any(feature = "all", all(feature = "android-graphics-ColorFilter")))]
pub fn setColorFilter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::ColorFilter>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "setColorFilter", .descriptor == "(Landroid/graphics/ColorFilter;)V"
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/graphics/drawable/BitmapDrawable\0", "setColorFilter\0", "(Landroid/graphics/ColorFilter;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [mutate](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#mutate())
///
/// Required features: "android-graphics-drawable-Drawable"
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Drawable")))]
pub fn mutate<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::drawable::Drawable>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "mutate", .descriptor == "()Landroid/graphics/drawable/Drawable;"
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/graphics/drawable/BitmapDrawable\0", "mutate\0", "()Landroid/graphics/drawable/Drawable;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [inflate](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#inflate(android.content.res.Resources,%20org.xmlpull.v1.XmlPullParser,%20android.util.AttributeSet))
///
/// Required features: "android-content-res-Resources", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser"
#[cfg(any(feature = "all", all(feature = "android-content-res-Resources", feature = "android-util-AttributeSet", feature = "org-xmlpull-v1-XmlPullParser")))]
pub fn inflate<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::Resources>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::xmlpull::v1::XmlPullParser>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "inflate", .descriptor == "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;)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())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/graphics/drawable/BitmapDrawable\0", "inflate\0", "(Landroid/content/res/Resources;Lorg/xmlpull/v1/XmlPullParser;Landroid/util/AttributeSet;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getIntrinsicWidth](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getIntrinsicWidth())
pub fn getIntrinsicWidth<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "getIntrinsicWidth", .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/graphics/drawable/BitmapDrawable\0", "getIntrinsicWidth\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getIntrinsicHeight](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getIntrinsicHeight())
pub fn getIntrinsicHeight<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "getIntrinsicHeight", .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/graphics/drawable/BitmapDrawable\0", "getIntrinsicHeight\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getOpacity](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getOpacity())
pub fn getOpacity<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC, .name == "getOpacity", .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/graphics/drawable/BitmapDrawable\0", "getOpacity\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getConstantState](https://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getConstantState())
///
/// Required features: "android-graphics-drawable-Drawable_ConstantState"
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Drawable_ConstantState")))]
pub fn getConstantState<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::drawable::Drawable_ConstantState>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/graphics/drawable/BitmapDrawable", java.flags == PUBLIC | FINAL, .name == "getConstantState", .descriptor == "()Landroid/graphics/drawable/Drawable$ConstantState;"
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/graphics/drawable/BitmapDrawable\0", "getConstantState\0", "()Landroid/graphics/drawable/Drawable$ConstantState;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}