#[cfg(any(feature = "all", feature = "android-content-SyncStats"))]
__jni_bindgen! {
public class SyncStats ("android/content/SyncStats") 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::content::SyncStats>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/SyncStats\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn new_Parcel<'env>(__jni_env: &'env __jni_bindgen::Env, 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::android::content::SyncStats>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/SyncStats\0", "<init>\0", "(Landroid/os/Parcel;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[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>> {
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/content/SyncStats\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn clear<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __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/content/SyncStats\0", "clear\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __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/content/SyncStats\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/content/SyncStats\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", 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/content/SyncStats\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
pub fn numAuthExceptions<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numAuthExceptions\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numAuthExceptions<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numAuthExceptions\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
pub fn numConflictDetectedExceptions<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numConflictDetectedExceptions\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numConflictDetectedExceptions<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numConflictDetectedExceptions\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
pub fn numDeletes<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numDeletes\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numDeletes<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numDeletes\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
pub fn numEntries<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numEntries\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numEntries<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numEntries\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
pub fn numInserts<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numInserts\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numInserts<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numInserts\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
pub fn numIoExceptions<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numIoExceptions\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numIoExceptions<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numIoExceptions\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
pub fn numParseExceptions<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numParseExceptions\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numParseExceptions<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numParseExceptions\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
pub fn numSkippedEntries<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numSkippedEntries\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numSkippedEntries<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numSkippedEntries\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
pub fn numUpdates<'env>(&'env self) -> i64 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numUpdates\0", "J\0");
env.get_long_field(self.0.object, __jni_field)
}
}
pub fn set_numUpdates<'env>(&'env self, value: i64) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/SyncStats\0", "numUpdates\0", "J\0");
env.set_long_field(self.0.object, __jni_field, value)
}
}
}
}