#[cfg(any(feature = "all", feature = "android-app-ActivityManager_RunningTaskInfo"))]
__jni_bindgen! {
public class ActivityManager_RunningTaskInfo ("android/app/ActivityManager$RunningTaskInfo") extends crate::java::lang::Object, implements crate::android::os::Parcelable {
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::app::ActivityManager_RunningTaskInfo>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/ActivityManager$RunningTaskInfo\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/app/ActivityManager$RunningTaskInfo\0", "describeContents\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[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>> {
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/app/ActivityManager$RunningTaskInfo\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn readFromParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/app/ActivityManager$RunningTaskInfo\0", "readFromParcel\0", "(Landroid/os/Parcel;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn id<'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/app/ActivityManager$RunningTaskInfo\0", "id\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_id<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "id\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-content-ComponentName"))]
pub fn baseActivity<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::ComponentName>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "baseActivity\0", "Landroid/content/ComponentName;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-content-ComponentName"))]
pub fn set_baseActivity<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::content::ComponentName>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "baseActivity\0", "Landroid/content/ComponentName;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-content-ComponentName"))]
pub fn topActivity<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::ComponentName>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "topActivity\0", "Landroid/content/ComponentName;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-content-ComponentName"))]
pub fn set_topActivity<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::content::ComponentName>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "topActivity\0", "Landroid/content/ComponentName;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-graphics-Bitmap"))]
pub fn thumbnail<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Bitmap>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "thumbnail\0", "Landroid/graphics/Bitmap;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-graphics-Bitmap"))]
pub fn set_thumbnail<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::graphics::Bitmap>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "thumbnail\0", "Landroid/graphics/Bitmap;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn description<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "description\0", "Ljava/lang/CharSequence;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn set_description<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::CharSequence>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "description\0", "Ljava/lang/CharSequence;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn numActivities<'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/app/ActivityManager$RunningTaskInfo\0", "numActivities\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_numActivities<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "numActivities\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn numRunning<'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/app/ActivityManager$RunningTaskInfo\0", "numRunning\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_numRunning<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/app/ActivityManager$RunningTaskInfo\0", "numRunning\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[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/app/ActivityManager$RunningTaskInfo\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}