#[rustfmt::skip] // This file has been automatically generated by `jnim` from `InputQueue.class`. // DO NOT EDIT use jnim::*; pub struct InputQueue { __object: JObject, __supper: JObject, } impl JNameMaker for InputQueue { const JAVA_PATH: &'static [u8] = b"android/view/InputQueue\0"; } impl JPlainMarker for InputQueue { fn class(env: Option<&JEnv>) -> Option { static CACHE: CachedID = CachedID::new(); CACHE.get(|| JEnv::env(env)?.find_class(Self::JAVA_PATH)) } } impl core::ops::Deref for InputQueue { type Target = JObject; fn deref(&self) -> &Self::Target { &self.__supper } } impl AsRef for InputQueue { fn as_ref(&self) -> &JObject { &self.__supper } } // impl interfaces // field impl InputQueue {} // method impl InputQueue { pub fn finalize<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"finalize\0", b"()V\0"))? .call(env, self.as_ref(), ()) } } #[test] fn test_type_zero() { assert_eq!(0, std::mem::size_of::()); }