__jni_bindgen! {
#[cfg(any(feature = "all", feature = "android-os-Debug_MemoryInfo"))]
public class Debug_MemoryInfo extends crate::java::lang::Object, implements crate::android::os::Parcelable {
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::os::Debug_MemoryInfo>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/os/Debug$MemoryInfo\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_total_pss<'env>(&'env self) -> __jni_bindgen::Result<i32> {
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/os/Debug$MemoryInfo\0", "getTotalPss\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_total_swappable_pss<'env>(&'env self) -> __jni_bindgen::Result<i32> {
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/os/Debug$MemoryInfo\0", "getTotalSwappablePss\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_total_private_dirty<'env>(&'env self) -> __jni_bindgen::Result<i32> {
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/os/Debug$MemoryInfo\0", "getTotalPrivateDirty\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_total_shared_dirty<'env>(&'env self) -> __jni_bindgen::Result<i32> {
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/os/Debug$MemoryInfo\0", "getTotalSharedDirty\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_total_private_clean<'env>(&'env self) -> __jni_bindgen::Result<i32> {
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/os/Debug$MemoryInfo\0", "getTotalPrivateClean\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn get_total_shared_clean<'env>(&'env self) -> __jni_bindgen::Result<i32> {
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/os/Debug$MemoryInfo\0", "getTotalSharedClean\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn get_memory_stat<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>> {
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/os/Debug$MemoryInfo\0", "getMemoryStat\0", "(Ljava/lang/String;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-util-Map")))]
pub fn get_memory_stats<'env>(&'env self) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::Map>>> {
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/os/Debug$MemoryInfo\0", "getMemoryStats\0", "()Ljava/util/Map;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn describe_contents<'env>(&'env self) -> __jni_bindgen::Result<i32> {
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/os/Debug$MemoryInfo\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 write_to_parcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::Result<()> {
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/os/Debug$MemoryInfo\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 read_from_parcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>) -> __jni_bindgen::Result<()> {
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/os/Debug$MemoryInfo\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 dalvik_private_dirty<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "dalvikPrivateDirty\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_dalvik_private_dirty<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "dalvikPrivateDirty\0", "I\0");
env.set_int_field(class, field, value)
}
}
pub fn dalvik_pss<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "dalvikPss\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_dalvik_pss<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "dalvikPss\0", "I\0");
env.set_int_field(class, field, value)
}
}
pub fn dalvik_shared_dirty<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "dalvikSharedDirty\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_dalvik_shared_dirty<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "dalvikSharedDirty\0", "I\0");
env.set_int_field(class, field, value)
}
}
pub fn native_private_dirty<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "nativePrivateDirty\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_native_private_dirty<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "nativePrivateDirty\0", "I\0");
env.set_int_field(class, field, value)
}
}
pub fn native_pss<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "nativePss\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_native_pss<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "nativePss\0", "I\0");
env.set_int_field(class, field, value)
}
}
pub fn native_shared_dirty<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "nativeSharedDirty\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_native_shared_dirty<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "nativeSharedDirty\0", "I\0");
env.set_int_field(class, field, value)
}
}
pub fn other_private_dirty<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "otherPrivateDirty\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_other_private_dirty<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "otherPrivateDirty\0", "I\0");
env.set_int_field(class, field, value)
}
}
pub fn other_pss<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "otherPss\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_other_pss<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "otherPss\0", "I\0");
env.set_int_field(class, field, value)
}
}
pub fn other_shared_dirty<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "otherSharedDirty\0", "I\0");
env.get_int_field(class, field)
}
}
pub fn set_other_shared_dirty<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (class, field) = env.require_class_field("android/os/Debug$MemoryInfo\0", "otherSharedDirty\0", "I\0");
env.set_int_field(class, field, value)
}
}
}
}