#[rustfmt::skip] // This file has been automatically generated by `jnim` from `View.class`. // DO NOT EDIT use jnim::*; use crate::android::graphics::drawable::DrawableCallback; use crate::android::graphics::drawable::DrawableCallbackObject; use crate::android::view::accessibility::AccessibilityEventSource; use crate::android::view::accessibility::AccessibilityEventSourceObject; use crate::android::view::KeyEventCallback; use crate::android::view::KeyEventCallbackObject; pub struct View { __object: JObject, __supper: JObject, __drawable_callback: DrawableCallbackObject, __key_event_callback: KeyEventCallbackObject, __accessibility_event_source: AccessibilityEventSourceObject, } impl JNameMaker for View { const JAVA_PATH: &'static [u8] = b"android/view/View\0"; } impl JPlainMarker for View { 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 View { type Target = JObject; fn deref(&self) -> &Self::Target { &self.__supper } } impl AsRef for View { fn as_ref(&self) -> &JObject { &self.__supper } } // impl interfaces impl DrawableCallback for View {} impl AsRef for View { fn as_ref(&self) -> &DrawableCallbackObject { &self.__drawable_callback } } impl KeyEventCallback for View {} impl AsRef for View { fn as_ref(&self) -> &KeyEventCallbackObject { &self.__key_event_callback } } impl AccessibilityEventSource for View {} impl AsRef for View { fn as_ref(&self) -> &AccessibilityEventSourceObject { &self.__accessibility_event_source } } // field impl View { pub const ACCESSIBILITY_LIVE_REGION_ASSERTIVE: i32 = 2i32; pub const ACCESSIBILITY_LIVE_REGION_NONE: i32 = 0i32; pub const ACCESSIBILITY_LIVE_REGION_POLITE: i32 = 1i32; pub const AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS: i32 = 1i32; pub const AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE: &'static str = "creditCardExpirationDate"; pub const AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY: &'static str = "creditCardExpirationDay"; pub const AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH: &'static str = "creditCardExpirationMonth"; pub const AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR: &'static str = "creditCardExpirationYear"; pub const AUTOFILL_HINT_CREDIT_CARD_NUMBER: &'static str = "creditCardNumber"; pub const AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE: &'static str = "creditCardSecurityCode"; pub const AUTOFILL_HINT_EMAIL_ADDRESS: &'static str = "emailAddress"; pub const AUTOFILL_HINT_NAME: &'static str = "name"; pub const AUTOFILL_HINT_PASSWORD: &'static str = "password"; pub const AUTOFILL_HINT_PHONE: &'static str = "phone"; pub const AUTOFILL_HINT_POSTAL_ADDRESS: &'static str = "postalAddress"; pub const AUTOFILL_HINT_POSTAL_CODE: &'static str = "postalCode"; pub const AUTOFILL_HINT_USERNAME: &'static str = "username"; pub const AUTOFILL_TYPE_DATE: i32 = 4i32; pub const AUTOFILL_TYPE_LIST: i32 = 3i32; pub const AUTOFILL_TYPE_NONE: i32 = 0i32; pub const AUTOFILL_TYPE_TEXT: i32 = 1i32; pub const AUTOFILL_TYPE_TOGGLE: i32 = 2i32; pub const DRAG_FLAG_ACCESSIBILITY_ACTION: i32 = 1024i32; pub const DRAG_FLAG_GLOBAL: i32 = 256i32; pub const DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION: i32 = 64i32; pub const DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION: i32 = 128i32; pub const DRAG_FLAG_GLOBAL_URI_READ: i32 = 1i32; pub const DRAG_FLAG_GLOBAL_URI_WRITE: i32 = 2i32; pub const DRAG_FLAG_OPAQUE: i32 = 512i32; pub const DRAWING_CACHE_QUALITY_AUTO: i32 = 0i32; pub const DRAWING_CACHE_QUALITY_HIGH: i32 = 1048576i32; pub const DRAWING_CACHE_QUALITY_LOW: i32 = 524288i32; pub const FIND_VIEWS_WITH_CONTENT_DESCRIPTION: i32 = 2i32; pub const FIND_VIEWS_WITH_TEXT: i32 = 1i32; pub const FOCUSABLE: i32 = 1i32; pub const FOCUSABLES_ALL: i32 = 0i32; pub const FOCUSABLES_TOUCH_MODE: i32 = 1i32; pub const FOCUSABLE_AUTO: i32 = 16i32; pub const FOCUS_BACKWARD: i32 = 1i32; pub const FOCUS_DOWN: i32 = 130i32; pub const FOCUS_FORWARD: i32 = 2i32; pub const FOCUS_LEFT: i32 = 17i32; pub const FOCUS_RIGHT: i32 = 66i32; pub const FOCUS_UP: i32 = 33i32; pub const GONE: i32 = 8i32; pub const HAPTIC_FEEDBACK_ENABLED: i32 = 268435456i32; pub const IMPORTANT_FOR_ACCESSIBILITY_AUTO: i32 = 0i32; pub const IMPORTANT_FOR_ACCESSIBILITY_NO: i32 = 2i32; pub const IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS: i32 = 4i32; pub const IMPORTANT_FOR_ACCESSIBILITY_YES: i32 = 1i32; pub const IMPORTANT_FOR_AUTOFILL_AUTO: i32 = 0i32; pub const IMPORTANT_FOR_AUTOFILL_NO: i32 = 2i32; pub const IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS: i32 = 8i32; pub const IMPORTANT_FOR_AUTOFILL_YES: i32 = 1i32; pub const IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS: i32 = 4i32; pub const IMPORTANT_FOR_CONTENT_CAPTURE_AUTO: i32 = 0i32; pub const IMPORTANT_FOR_CONTENT_CAPTURE_NO: i32 = 2i32; pub const IMPORTANT_FOR_CONTENT_CAPTURE_NO_EXCLUDE_DESCENDANTS: i32 = 8i32; pub const IMPORTANT_FOR_CONTENT_CAPTURE_YES: i32 = 1i32; pub const IMPORTANT_FOR_CONTENT_CAPTURE_YES_EXCLUDE_DESCENDANTS: i32 = 4i32; pub const INVISIBLE: i32 = 4i32; pub const KEEP_SCREEN_ON: i32 = 67108864i32; pub const LAYER_TYPE_HARDWARE: i32 = 2i32; pub const LAYER_TYPE_NONE: i32 = 0i32; pub const LAYER_TYPE_SOFTWARE: i32 = 1i32; pub const LAYOUT_DIRECTION_INHERIT: i32 = 2i32; pub const LAYOUT_DIRECTION_LOCALE: i32 = 3i32; pub const LAYOUT_DIRECTION_LTR: i32 = 0i32; pub const LAYOUT_DIRECTION_RTL: i32 = 1i32; pub const MEASURED_HEIGHT_STATE_SHIFT: i32 = 16i32; pub const MEASURED_SIZE_MASK: i32 = 16777215i32; pub const MEASURED_STATE_MASK: i32 = -16777216i32; pub const MEASURED_STATE_TOO_SMALL: i32 = 16777216i32; pub const NOT_FOCUSABLE: i32 = 0i32; pub const NO_ID: i32 = -1i32; pub const OVER_SCROLL_ALWAYS: i32 = 0i32; pub const OVER_SCROLL_IF_CONTENT_SCROLLS: i32 = 1i32; pub const OVER_SCROLL_NEVER: i32 = 2i32; pub const SCREEN_STATE_OFF: i32 = 0i32; pub const SCREEN_STATE_ON: i32 = 1i32; pub const SCROLLBARS_INSIDE_INSET: i32 = 16777216i32; pub const SCROLLBARS_INSIDE_OVERLAY: i32 = 0i32; pub const SCROLLBARS_OUTSIDE_INSET: i32 = 50331648i32; pub const SCROLLBARS_OUTSIDE_OVERLAY: i32 = 33554432i32; pub const SCROLLBAR_POSITION_DEFAULT: i32 = 0i32; pub const SCROLLBAR_POSITION_LEFT: i32 = 1i32; pub const SCROLLBAR_POSITION_RIGHT: i32 = 2i32; pub const SCROLL_AXIS_HORIZONTAL: i32 = 1i32; pub const SCROLL_AXIS_NONE: i32 = 0i32; pub const SCROLL_AXIS_VERTICAL: i32 = 2i32; pub const SCROLL_CAPTURE_HINT_AUTO: i32 = 0i32; pub const SCROLL_CAPTURE_HINT_EXCLUDE: i32 = 1i32; pub const SCROLL_CAPTURE_HINT_EXCLUDE_DESCENDANTS: i32 = 4i32; pub const SCROLL_CAPTURE_HINT_INCLUDE: i32 = 2i32; pub const SCROLL_INDICATOR_BOTTOM: i32 = 2i32; pub const SCROLL_INDICATOR_END: i32 = 32i32; pub const SCROLL_INDICATOR_LEFT: i32 = 4i32; pub const SCROLL_INDICATOR_RIGHT: i32 = 8i32; pub const SCROLL_INDICATOR_START: i32 = 16i32; pub const SCROLL_INDICATOR_TOP: i32 = 1i32; pub const SOUND_EFFECTS_ENABLED: i32 = 134217728i32; pub const STATUS_BAR_HIDDEN: i32 = 1i32; pub const STATUS_BAR_VISIBLE: i32 = 0i32; pub const SYSTEM_UI_FLAG_FULLSCREEN: i32 = 4i32; pub const SYSTEM_UI_FLAG_HIDE_NAVIGATION: i32 = 2i32; pub const SYSTEM_UI_FLAG_IMMERSIVE: i32 = 2048i32; pub const SYSTEM_UI_FLAG_IMMERSIVE_STICKY: i32 = 4096i32; pub const SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN: i32 = 1024i32; pub const SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION: i32 = 512i32; pub const SYSTEM_UI_FLAG_LAYOUT_STABLE: i32 = 256i32; pub const SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR: i32 = 16i32; pub const SYSTEM_UI_FLAG_LIGHT_STATUS_BAR: i32 = 8192i32; pub const SYSTEM_UI_FLAG_LOW_PROFILE: i32 = 1i32; pub const SYSTEM_UI_FLAG_VISIBLE: i32 = 0i32; pub const SYSTEM_UI_LAYOUT_FLAGS: i32 = 1536i32; pub const TEXT_ALIGNMENT_CENTER: i32 = 4i32; pub const TEXT_ALIGNMENT_GRAVITY: i32 = 1i32; pub const TEXT_ALIGNMENT_INHERIT: i32 = 0i32; pub const TEXT_ALIGNMENT_TEXT_END: i32 = 3i32; pub const TEXT_ALIGNMENT_TEXT_START: i32 = 2i32; pub const TEXT_ALIGNMENT_VIEW_END: i32 = 6i32; pub const TEXT_ALIGNMENT_VIEW_START: i32 = 5i32; pub const TEXT_DIRECTION_ANY_RTL: i32 = 2i32; pub const TEXT_DIRECTION_FIRST_STRONG: i32 = 1i32; pub const TEXT_DIRECTION_FIRST_STRONG_LTR: i32 = 6i32; pub const TEXT_DIRECTION_FIRST_STRONG_RTL: i32 = 7i32; pub const TEXT_DIRECTION_INHERIT: i32 = 0i32; pub const TEXT_DIRECTION_LOCALE: i32 = 5i32; pub const TEXT_DIRECTION_LTR: i32 = 3i32; pub const TEXT_DIRECTION_RTL: i32 = 4i32; pub const VIEW_LOG_TAG: &'static str = "View"; pub const VISIBLE: i32 = 0i32; } // method impl View { pub fn merge_drawable_states<'a>( env: &'a JEnv, arg0: &'a JArrayPrim, arg1: &'a JArrayPrim, ) -> Option<&'a JArrayPrim> { let class = Self::class(Some(env))?; static CACHE: CachedID = CachedID::new(); CACHE .get(|| class.method_static(env, b"mergeDrawableStates\0", b"([I[I)[I\0"))? .call(env, class, (arg0, arg1)) } pub fn combine_measured_states<'a>(env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option { let class = Self::class(Some(env))?; static CACHE: CachedID = CachedID::new(); CACHE .get(|| class.method_static(env, b"combineMeasuredStates\0", b"(II)I\0"))? .call(env, class, (arg0, arg1)) } pub fn resolve_size<'a>(env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option { let class = Self::class(Some(env))?; static CACHE: CachedID = CachedID::new(); CACHE .get(|| class.method_static(env, b"resolveSize\0", b"(II)I\0"))? .call(env, class, (arg0, arg1)) } pub fn resolve_size_and_state<'a>(env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt) -> Option { let class = Self::class(Some(env))?; static CACHE: CachedID = CachedID::new(); CACHE .get(|| class.method_static(env, b"resolveSizeAndState\0", b"(III)I\0"))? .call(env, class, (arg0, arg1, arg2)) } pub fn get_default_size<'a>(env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option { let class = Self::class(Some(env))?; static CACHE: CachedID = CachedID::new(); CACHE .get(|| class.method_static(env, b"getDefaultSize\0", b"(II)I\0"))? .call(env, class, (arg0, arg1)) } pub fn inflate<'a>( env: &'a JEnv, arg0: &'a crate::android::content::Context, arg1: JInt, arg2: &'a JObject, ) -> Option<&'a crate::android::view::View> { let class = Self::class(Some(env))?; static CACHE: CachedID = CachedID::new(); CACHE .get(|| { class.method_static( env, b"inflate\0", b"(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;\0", ) })? .call(env, class, (arg0, arg1, arg2)) } pub fn generate_view_id<'a>(env: &'a JEnv) -> Option { let class = Self::class(Some(env))?; static CACHE: CachedID = CachedID::new(); CACHE .get(|| class.method_static(env, b"generateViewId\0", b"()I\0"))? .call(env, class, ()) } pub fn get_attribute_resolution_stack<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<&'a JArrayPrim> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAttributeResolutionStack\0", b"(I)[I\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_attribute_source_resource_map<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAttributeSourceResourceMap\0", b"()Ljava/util/Map;\0"))? .call(env, self.as_ref(), ()) } pub fn get_explicit_style<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getExplicitStyle\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn is_showing_layout_bounds<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isShowingLayoutBounds\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn save_attribute_data_for_styleable<'a>( &'a self, env: &'a JEnv, arg0: &'a crate::android::content::Context, arg1: &'a JArrayPrim, arg2: &'a JObject, arg3: &'a JObject, arg4: JInt, arg5: JInt, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"saveAttributeDataForStyleable\0", b"(Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3, arg4, arg5)) } pub fn to_string<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"toString\0", b"()Ljava/lang/String;\0"))? .call(env, self.as_ref(), ()) } pub fn get_vertical_fading_edge_length<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getVerticalFadingEdgeLength\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_fading_edge_length<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setFadingEdgeLength\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_horizontal_fading_edge_length<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getHorizontalFadingEdgeLength\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_vertical_scrollbar_width<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getVerticalScrollbarWidth\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_horizontal_scrollbar_height<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getHorizontalScrollbarHeight\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_vertical_scrollbar_thumb_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setVerticalScrollbarThumbDrawable\0", b"(Landroid/graphics/drawable/Drawable;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_vertical_scrollbar_track_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setVerticalScrollbarTrackDrawable\0", b"(Landroid/graphics/drawable/Drawable;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_horizontal_scrollbar_thumb_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setHorizontalScrollbarThumbDrawable\0", b"(Landroid/graphics/drawable/Drawable;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_horizontal_scrollbar_track_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setHorizontalScrollbarTrackDrawable\0", b"(Landroid/graphics/drawable/Drawable;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn get_vertical_scrollbar_thumb_drawable<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"getVerticalScrollbarThumbDrawable\0", b"()Landroid/graphics/drawable/Drawable;\0", ) })? .call(env, self.as_ref(), ()) } pub fn get_vertical_scrollbar_track_drawable<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"getVerticalScrollbarTrackDrawable\0", b"()Landroid/graphics/drawable/Drawable;\0", ) })? .call(env, self.as_ref(), ()) } pub fn get_horizontal_scrollbar_thumb_drawable<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"getHorizontalScrollbarThumbDrawable\0", b"()Landroid/graphics/drawable/Drawable;\0", ) })? .call(env, self.as_ref(), ()) } pub fn get_horizontal_scrollbar_track_drawable<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"getHorizontalScrollbarTrackDrawable\0", b"()Landroid/graphics/drawable/Drawable;\0", ) })? .call(env, self.as_ref(), ()) } pub fn set_vertical_scrollbar_position<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setVerticalScrollbarPosition\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_vertical_scrollbar_position<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getVerticalScrollbarPosition\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_scroll_indicators<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollIndicators\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_scroll_indicators_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollIndicators\0", b"(II)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn get_scroll_indicators<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScrollIndicators\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_on_scroll_change_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnScrollChangeListener\0", b"(Landroid/view/View$OnScrollChangeListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_focus_change_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnFocusChangeListener\0", b"(Landroid/view/View$OnFocusChangeListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn add_on_layout_change_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"addOnLayoutChangeListener\0", b"(Landroid/view/View$OnLayoutChangeListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn remove_on_layout_change_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"removeOnLayoutChangeListener\0", b"(Landroid/view/View$OnLayoutChangeListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn add_on_attach_state_change_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"addOnAttachStateChangeListener\0", b"(Landroid/view/View$OnAttachStateChangeListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn remove_on_attach_state_change_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"removeOnAttachStateChangeListener\0", b"(Landroid/view/View$OnAttachStateChangeListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn get_on_focus_change_listener<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getOnFocusChangeListener\0", b"()Landroid/view/View$OnFocusChangeListener;\0"))? .call(env, self.as_ref(), ()) } pub fn set_on_click_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOnClickListener\0", b"(Landroid/view/View$OnClickListener;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn has_on_click_listeners<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasOnClickListeners\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_on_long_click_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOnLongClickListener\0", b"(Landroid/view/View$OnLongClickListener;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn has_on_long_click_listeners<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasOnLongClickListeners\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_on_context_click_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnContextClickListener\0", b"(Landroid/view/View$OnContextClickListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_create_context_menu_listener<'a>( &'a self, env: &'a JEnv, arg0: &'a crate::android::view::ViewOnCreateContextMenuListenerObject, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnCreateContextMenuListener\0", b"(Landroid/view/View$OnCreateContextMenuListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn perform_click<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"performClick\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn call_on_click<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"callOnClick\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn perform_long_click<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"performLongClick\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn perform_long_click_v2<'a>(&'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"performLongClick\0", b"(FF)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn perform_context_click<'a>(&'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"performContextClick\0", b"(FF)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn perform_context_click_v2<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"performContextClick\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn show_context_menu<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"showContextMenu\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn show_context_menu_v2<'a>(&'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"showContextMenu\0", b"(FF)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn start_action_mode<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"startActionMode\0", b"(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode;\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn start_action_mode_v2<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"startActionMode\0", b"(Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;\0", ) })? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_on_key_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOnKeyListener\0", b"(Landroid/view/View$OnKeyListener;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_touch_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOnTouchListener\0", b"(Landroid/view/View$OnTouchListener;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_generic_motion_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnGenericMotionListener\0", b"(Landroid/view/View$OnGenericMotionListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_hover_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOnHoverListener\0", b"(Landroid/view/View$OnHoverListener;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_drag_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOnDragListener\0", b"(Landroid/view/View$OnDragListener;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_reveal_on_focus_hint<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setRevealOnFocusHint\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_reveal_on_focus_hint<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRevealOnFocusHint\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn request_rectangle_on_screen<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestRectangleOnScreen\0", b"(Landroid/graphics/Rect;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn request_rectangle_on_screen_v2<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JBool) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestRectangleOnScreen\0", b"(Landroid/graphics/Rect;Z)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn clear_focus<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"clearFocus\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn has_focus<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasFocus\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn has_focusable<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasFocusable\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn has_explicit_focusable<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasExplicitFocusable\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn on_focus_changed<'a>(&'a self, env: &'a JEnv, arg0: JBool, arg1: JInt, arg2: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onFocusChanged\0", b"(ZILandroid/graphics/Rect;)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn set_accessibility_pane_title<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAccessibilityPaneTitle\0", b"(Ljava/lang/CharSequence;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_accessibility_pane_title<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAccessibilityPaneTitle\0", b"()Ljava/lang/CharSequence;\0"))? .call(env, self.as_ref(), ()) } pub fn send_accessibility_event<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"sendAccessibilityEvent\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn announce_for_accessibility<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"announceForAccessibility\0", b"(Ljava/lang/CharSequence;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn send_accessibility_event_unchecked<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"sendAccessibilityEventUnchecked\0", b"(Landroid/view/accessibility/AccessibilityEvent;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_populate_accessibility_event<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"dispatchPopulateAccessibilityEvent\0", b"(Landroid/view/accessibility/AccessibilityEvent;)Z\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn on_populate_accessibility_event<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onPopulateAccessibilityEvent\0", b"(Landroid/view/accessibility/AccessibilityEvent;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn on_initialize_accessibility_event<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onInitializeAccessibilityEvent\0", b"(Landroid/view/accessibility/AccessibilityEvent;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn create_accessibility_node_info<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"createAccessibilityNodeInfo\0", b"()Landroid/view/accessibility/AccessibilityNodeInfo;\0", ) })? .call(env, self.as_ref(), ()) } pub fn on_initialize_accessibility_node_info<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onInitializeAccessibilityNodeInfo\0", b"(Landroid/view/accessibility/AccessibilityNodeInfo;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn get_accessibility_class_name<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAccessibilityClassName\0", b"()Ljava/lang/CharSequence;\0"))? .call(env, self.as_ref(), ()) } pub fn on_provide_structure<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onProvideStructure\0", b"(Landroid/view/ViewStructure;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_provide_autofill_structure<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onProvideAutofillStructure\0", b"(Landroid/view/ViewStructure;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_provide_content_capture_structure<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onProvideContentCaptureStructure\0", b"(Landroid/view/ViewStructure;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_provide_virtual_structure<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onProvideVirtualStructure\0", b"(Landroid/view/ViewStructure;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_provide_autofill_virtual_structure<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onProvideAutofillVirtualStructure\0", b"(Landroid/view/ViewStructure;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_on_receive_content_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JArrayObject, arg1: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnReceiveContentListener\0", b"([Ljava/lang/String;Landroid/view/OnReceiveContentListener;)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1)) } pub fn perform_receive_content<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"performReceiveContent\0", b"(Landroid/view/ContentInfo;)Landroid/view/ContentInfo;\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn on_receive_content<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onReceiveContent\0", b"(Landroid/view/ContentInfo;)Landroid/view/ContentInfo;\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn get_receive_content_mime_types<'a>(&'a self, env: &'a JEnv) -> Option<&'a JArrayObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getReceiveContentMimeTypes\0", b"()[Ljava/lang/String;\0"))? .call(env, self.as_ref(), ()) } pub fn autofill<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"autofill\0", b"(Landroid/view/autofill/AutofillValue;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn autofill_v2<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"autofill\0", b"(Landroid/util/SparseArray;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_autofill_id<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAutofillId\0", b"()Landroid/view/autofill/AutofillId;\0"))? .call(env, self.as_ref(), ()) } pub fn set_autofill_id<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAutofillId\0", b"(Landroid/view/autofill/AutofillId;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_autofill_type<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAutofillType\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_autofill_hints<'a>(&'a self, env: &'a JEnv) -> Option<&'a JArrayObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAutofillHints\0", b"()[Ljava/lang/String;\0"))? .call(env, self.as_ref(), ()) } pub fn get_autofill_value<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAutofillValue\0", b"()Landroid/view/autofill/AutofillValue;\0"))? .call(env, self.as_ref(), ()) } pub fn get_important_for_autofill<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getImportantForAutofill\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_important_for_autofill<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setImportantForAutofill\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_important_for_autofill<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isImportantForAutofill\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_important_for_content_capture<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getImportantForContentCapture\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_important_for_content_capture<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setImportantForContentCapture\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_important_for_content_capture<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isImportantForContentCapture\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_content_capture_session<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setContentCaptureSession\0", b"(Landroid/view/contentcapture/ContentCaptureSession;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn get_content_capture_session<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"getContentCaptureSession\0", b"()Landroid/view/contentcapture/ContentCaptureSession;\0", ) })? .call(env, self.as_ref(), ()) } pub fn dispatch_provide_structure<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchProvideStructure\0", b"(Landroid/view/ViewStructure;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_provide_autofill_structure<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchProvideAutofillStructure\0", b"(Landroid/view/ViewStructure;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn add_extra_data_to_accessibility_node_info<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JString, arg2: &'a crate::android::os::Bundle, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"addExtraDataToAccessibilityNodeInfo\0", b"(Landroid/view/accessibility/AccessibilityNodeInfo;Ljava/lang/String;Landroid/os/Bundle;)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn is_visible_to_user_for_autofill<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isVisibleToUserForAutofill\0", b"(I)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_accessibility_delegate<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAccessibilityDelegate\0", b"()Landroid/view/View$AccessibilityDelegate;\0"))? .call(env, self.as_ref(), ()) } pub fn set_accessibility_delegate<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setAccessibilityDelegate\0", b"(Landroid/view/View$AccessibilityDelegate;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn get_accessibility_node_provider<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"getAccessibilityNodeProvider\0", b"()Landroid/view/accessibility/AccessibilityNodeProvider;\0", ) })? .call(env, self.as_ref(), ()) } pub fn get_state_description<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getStateDescription\0", b"()Ljava/lang/CharSequence;\0"))? .call(env, self.as_ref(), ()) } pub fn get_content_description<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getContentDescription\0", b"()Ljava/lang/CharSequence;\0"))? .call(env, self.as_ref(), ()) } pub fn set_state_description<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setStateDescription\0", b"(Ljava/lang/CharSequence;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_content_description<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setContentDescription\0", b"(Ljava/lang/CharSequence;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_accessibility_traversal_before<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAccessibilityTraversalBefore\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_accessibility_traversal_before<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAccessibilityTraversalBefore\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_accessibility_traversal_after<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAccessibilityTraversalAfter\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_accessibility_traversal_after<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAccessibilityTraversalAfter\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_label_for<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLabelFor\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_label_for<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setLabelFor\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_focused<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isFocused\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn find_focus<'a>(&'a self, env: &'a JEnv) -> Option<&'a crate::android::view::View> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"findFocus\0", b"()Landroid/view/View;\0"))? .call(env, self.as_ref(), ()) } pub fn is_scroll_container<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isScrollContainer\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_scroll_container<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollContainer\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_drawing_cache_quality<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDrawingCacheQuality\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_drawing_cache_quality<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setDrawingCacheQuality\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_keep_screen_on<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getKeepScreenOn\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_keep_screen_on<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setKeepScreenOn\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_next_focus_left_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getNextFocusLeftId\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_next_focus_left_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setNextFocusLeftId\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_next_focus_right_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getNextFocusRightId\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_next_focus_right_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setNextFocusRightId\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_next_focus_up_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getNextFocusUpId\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_next_focus_up_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setNextFocusUpId\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_next_focus_down_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getNextFocusDownId\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_next_focus_down_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setNextFocusDownId\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_next_focus_forward_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getNextFocusForwardId\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_next_focus_forward_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setNextFocusForwardId\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_next_cluster_forward_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getNextClusterForwardId\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_next_cluster_forward_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setNextClusterForwardId\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_shown<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isShown\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn fit_system_windows<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"fitSystemWindows\0", b"(Landroid/graphics/Rect;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_apply_window_insets<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onApplyWindowInsets\0", b"(Landroid/view/WindowInsets;)Landroid/view/WindowInsets;\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_apply_window_insets_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnApplyWindowInsetsListener\0", b"(Landroid/view/View$OnApplyWindowInsetsListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_apply_window_insets<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"dispatchApplyWindowInsets\0", b"(Landroid/view/WindowInsets;)Landroid/view/WindowInsets;\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_window_insets_animation_callback<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setWindowInsetsAnimationCallback\0", b"(Landroid/view/WindowInsetsAnimation$Callback;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_window_insets_animation_prepare<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"dispatchWindowInsetsAnimationPrepare\0", b"(Landroid/view/WindowInsetsAnimation;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_window_insets_animation_start<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchWindowInsetsAnimationStart\0", b"(Landroid/view/WindowInsetsAnimation;Landroid/view/WindowInsetsAnimation$Bounds;)Landroid/view/WindowInsetsAnimation$Bounds;\0"))? .call(env, self.as_ref(), (arg0,arg1,)) } pub fn dispatch_window_insets_animation_progress<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, ) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"dispatchWindowInsetsAnimationProgress\0", b"(Landroid/view/WindowInsets;Ljava/util/List;)Landroid/view/WindowInsets;\0", ) })? .call(env, self.as_ref(), (arg0, arg1)) } pub fn dispatch_window_insets_animation_end<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"dispatchWindowInsetsAnimationEnd\0", b"(Landroid/view/WindowInsetsAnimation;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_system_gesture_exclusion_rects<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setSystemGestureExclusionRects\0", b"(Ljava/util/List;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_system_gesture_exclusion_rects<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getSystemGestureExclusionRects\0", b"()Ljava/util/List;\0"))? .call(env, self.as_ref(), ()) } pub fn set_prefer_keep_clear<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setPreferKeepClear\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_prefer_keep_clear<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isPreferKeepClear\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_prefer_keep_clear_rects<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setPreferKeepClearRects\0", b"(Ljava/util/List;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_prefer_keep_clear_rects<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPreferKeepClearRects\0", b"()Ljava/util/List;\0"))? .call(env, self.as_ref(), ()) } pub fn get_location_in_surface<'a>(&'a self, env: &'a JEnv, arg0: &'a JArrayPrim) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLocationInSurface\0", b"([I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_root_window_insets<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRootWindowInsets\0", b"()Landroid/view/WindowInsets;\0"))? .call(env, self.as_ref(), ()) } pub fn get_window_insets_controller<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getWindowInsetsController\0", b"()Landroid/view/WindowInsetsController;\0"))? .call(env, self.as_ref(), ()) } pub fn find_on_back_invoked_dispatcher<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"findOnBackInvokedDispatcher\0", b"()Landroid/window/OnBackInvokedDispatcher;\0", ) })? .call(env, self.as_ref(), ()) } pub fn compute_system_window_insets<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"computeSystemWindowInsets\0", b"(Landroid/view/WindowInsets;Landroid/graphics/Rect;)Landroid/view/WindowInsets;\0", ) })? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_fits_system_windows<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setFitsSystemWindows\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_fits_system_windows<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getFitsSystemWindows\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn request_fit_system_windows<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestFitSystemWindows\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn request_apply_insets<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestApplyInsets\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn get_visibility<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getVisibility\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_visibility<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setVisibility\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_focusable<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setFocusable\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_focusable_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setFocusable\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_focusable_in_touch_mode<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setFocusableInTouchMode\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_autofill_hints<'a>(&'a self, env: &'a JEnv, arg0: &'a JArrayObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAutofillHints\0", b"([Ljava/lang/String;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_sound_effects_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setSoundEffectsEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_sound_effects_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isSoundEffectsEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_haptic_feedback_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setHapticFeedbackEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_haptic_feedback_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isHapticFeedbackEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_layout_direction<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setLayoutDirection\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_layout_direction<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLayoutDirection\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn has_transient_state<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasTransientState\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_has_transient_state<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setHasTransientState\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_attached_to_window<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isAttachedToWindow\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn is_laid_out<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isLaidOut\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_will_not_draw<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setWillNotDraw\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn will_not_draw<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"willNotDraw\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_will_not_cache_drawing<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setWillNotCacheDrawing\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn will_not_cache_drawing<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"willNotCacheDrawing\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn is_clickable<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isClickable\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_clickable<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setClickable\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_allow_click_when_disabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAllowClickWhenDisabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_long_clickable<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isLongClickable\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_long_clickable<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setLongClickable\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_context_clickable<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isContextClickable\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_context_clickable<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setContextClickable\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_pressed<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setPressed\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_set_pressed<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchSetPressed\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_pressed<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isPressed\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn is_save_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isSaveEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_save_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setSaveEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_filter_touches_when_obscured<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getFilterTouchesWhenObscured\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_filter_touches_when_obscured<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setFilterTouchesWhenObscured\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_save_from_parent_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isSaveFromParentEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_save_from_parent_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setSaveFromParentEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_focusable<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isFocusable\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_focusable<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getFocusable\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn is_focusable_in_touch_mode<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isFocusableInTouchMode\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn is_screen_reader_focusable<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isScreenReaderFocusable\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_screen_reader_focusable<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScreenReaderFocusable\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_accessibility_heading<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isAccessibilityHeading\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_accessibility_heading<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAccessibilityHeading\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn focus_search<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<&'a crate::android::view::View> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"focusSearch\0", b"(I)Landroid/view/View;\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_keyboard_navigation_cluster<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isKeyboardNavigationCluster\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_keyboard_navigation_cluster<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setKeyboardNavigationCluster\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_focused_by_default<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isFocusedByDefault\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_focused_by_default<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setFocusedByDefault\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn keyboard_navigation_cluster_search<'a>( &'a self, env: &'a JEnv, arg0: &'a crate::android::view::View, arg1: JInt, ) -> Option<&'a crate::android::view::View> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"keyboardNavigationClusterSearch\0", b"(Landroid/view/View;I)Landroid/view/View;\0", ) })? .call(env, self.as_ref(), (arg0, arg1)) } pub fn dispatch_unhandled_move<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::View, arg1: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchUnhandledMove\0", b"(Landroid/view/View;I)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_default_focus_highlight_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setDefaultFocusHighlightEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_default_focus_highlight_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDefaultFocusHighlightEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_focusables<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getFocusables\0", b"(I)Ljava/util/ArrayList;\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn add_focusables<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"addFocusables\0", b"(Ljava/util/ArrayList;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn add_focusables_v2<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt, arg2: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"addFocusables\0", b"(Ljava/util/ArrayList;II)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn add_keyboard_navigation_clusters<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"addKeyboardNavigationClusters\0", b"(Ljava/util/Collection;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn find_views_with_text<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"findViewsWithText\0", b"(Ljava/util/ArrayList;Ljava/lang/CharSequence;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn get_touchables<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTouchables\0", b"()Ljava/util/ArrayList;\0"))? .call(env, self.as_ref(), ()) } pub fn add_touchables<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"addTouchables\0", b"(Ljava/util/ArrayList;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_accessibility_focused<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isAccessibilityFocused\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn request_focus<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestFocus\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn restore_default_focus<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"restoreDefaultFocus\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn request_focus_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestFocus\0", b"(I)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn request_focus_v3<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestFocus\0", b"(ILandroid/graphics/Rect;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn request_focus_from_touch<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestFocusFromTouch\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_important_for_accessibility<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getImportantForAccessibility\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_accessibility_live_region<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAccessibilityLiveRegion\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_accessibility_live_region<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAccessibilityLiveRegion\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_important_for_accessibility<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setImportantForAccessibility\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_important_for_accessibility<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isImportantForAccessibility\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_parent_for_accessibility<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getParentForAccessibility\0", b"()Landroid/view/ViewParent;\0"))? .call(env, self.as_ref(), ()) } pub fn add_children_for_accessibility<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"addChildrenForAccessibility\0", b"(Ljava/util/ArrayList;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_transition_visibility<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTransitionVisibility\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_nested_pre_perform_accessibility_action<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: &'a crate::android::os::Bundle, ) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchNestedPrePerformAccessibilityAction\0", b"(ILandroid/os/Bundle;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn perform_accessibility_action<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a crate::android::os::Bundle) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"performAccessibilityAction\0", b"(ILandroid/os/Bundle;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn is_temporarily_detached<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isTemporarilyDetached\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn dispatch_start_temporary_detach<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchStartTemporaryDetach\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn on_start_temporary_detach<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onStartTemporaryDetach\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn dispatch_finish_temporary_detach<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchFinishTemporaryDetach\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn on_finish_temporary_detach<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onFinishTemporaryDetach\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn get_key_dispatcher_state<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getKeyDispatcherState\0", b"()Landroid/view/KeyEvent$DispatcherState;\0"))? .call(env, self.as_ref(), ()) } pub fn dispatch_key_event_pre_ime<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchKeyEventPreIme\0", b"(Landroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_key_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchKeyEvent\0", b"(Landroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_key_shortcut_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchKeyShortcutEvent\0", b"(Landroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_touch_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchTouchEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_filter_touch_event_for_security<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onFilterTouchEventForSecurity\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_trackball_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchTrackballEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_captured_pointer_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchCapturedPointerEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_generic_motion_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchGenericMotionEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_hover_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchHoverEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_generic_pointer_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchGenericPointerEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_generic_focused_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchGenericFocusedEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_window_focus_changed<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchWindowFocusChanged\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_window_focus_changed<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onWindowFocusChanged\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn has_window_focus<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasWindowFocus\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn dispatch_visibility_changed<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::View, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchVisibilityChanged\0", b"(Landroid/view/View;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_visibility_changed<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::View, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onVisibilityChanged\0", b"(Landroid/view/View;I)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn dispatch_display_hint<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchDisplayHint\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_display_hint<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onDisplayHint\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_window_visibility_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchWindowVisibilityChanged\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_window_visibility_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onWindowVisibilityChanged\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_visibility_aggregated<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onVisibilityAggregated\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_window_visibility<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getWindowVisibility\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_window_visible_display_frame<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getWindowVisibleDisplayFrame\0", b"(Landroid/graphics/Rect;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_configuration_changed<'a>( &'a self, env: &'a JEnv, arg0: &'a crate::android::content::res::Configuration, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchConfigurationChanged\0", b"(Landroid/content/res/Configuration;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_configuration_changed<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::content::res::Configuration) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onConfigurationChanged\0", b"(Landroid/content/res/Configuration;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_in_touch_mode<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isInTouchMode\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_context<'a>(&'a self, env: &'a JEnv) -> Option<&'a crate::android::content::Context> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getContext\0", b"()Landroid/content/Context;\0"))? .call(env, self.as_ref(), ()) } pub fn on_key_pre_ime<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onKeyPreIme\0", b"(ILandroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_key_down<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onKeyDown\0", b"(ILandroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_key_long_press<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onKeyLongPress\0", b"(ILandroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_key_up<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onKeyUp\0", b"(ILandroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_key_multiple<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onKeyMultiple\0", b"(IILandroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn on_key_shortcut<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a crate::android::view::KeyEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onKeyShortcut\0", b"(ILandroid/view/KeyEvent;)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_check_is_text_editor<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onCheckIsTextEditor\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn on_create_input_connection<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onCreateInputConnection\0", b"(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn check_input_connection_proxy<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::View) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"checkInputConnectionProxy\0", b"(Landroid/view/View;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn create_context_menu<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"createContextMenu\0", b"(Landroid/view/ContextMenu;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_context_menu_info<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getContextMenuInfo\0", b"()Landroid/view/ContextMenu$ContextMenuInfo;\0"))? .call(env, self.as_ref(), ()) } pub fn on_create_context_menu<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onCreateContextMenu\0", b"(Landroid/view/ContextMenu;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_trackball_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onTrackballEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_generic_motion_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onGenericMotionEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_hover_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onHoverEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_hovered<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isHovered\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_hovered<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setHovered\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_hover_changed<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onHoverChanged\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_touch_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onTouchEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn cancel_long_press<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"cancelLongPress\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn set_touch_delegate<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTouchDelegate\0", b"(Landroid/view/TouchDelegate;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_touch_delegate<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTouchDelegate\0", b"()Landroid/view/TouchDelegate;\0"))? .call(env, self.as_ref(), ()) } pub fn request_unbuffered_dispatch<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestUnbufferedDispatch\0", b"(Landroid/view/MotionEvent;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn request_unbuffered_dispatch_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestUnbufferedDispatch\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn bring_to_front<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"bringToFront\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn on_scroll_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onScrollChanged\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn on_size_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onSizeChanged\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn dispatch_draw<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchDraw\0", b"(Landroid/graphics/Canvas;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_parent<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getParent\0", b"()Landroid/view/ViewParent;\0"))? .call(env, self.as_ref(), ()) } pub fn set_scroll_x<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollX\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_scroll_y<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollY\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_scroll_x<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScrollX\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_scroll_y<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScrollY\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_width<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getWidth\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_height<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getHeight\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_drawing_rect<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDrawingRect\0", b"(Landroid/graphics/Rect;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_measured_width<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getMeasuredWidth\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_measured_width_and_state<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getMeasuredWidthAndState\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_measured_height<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getMeasuredHeight\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_measured_height_and_state<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getMeasuredHeightAndState\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_measured_state<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getMeasuredState\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_matrix<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getMatrix\0", b"()Landroid/graphics/Matrix;\0"))? .call(env, self.as_ref(), ()) } pub fn get_camera_distance<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getCameraDistance\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_camera_distance<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setCameraDistance\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_rotation<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRotation\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_rotation<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setRotation\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_rotation_y<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRotationY\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_rotation_y<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setRotationY\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_rotation_x<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRotationX\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_rotation_x<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setRotationX\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_scale_x<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScaleX\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_scale_x<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScaleX\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_scale_y<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScaleY\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_scale_y<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScaleY\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_pivot_x<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPivotX\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_pivot_x<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setPivotX\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_pivot_y<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPivotY\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_pivot_y<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setPivotY\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_pivot_set<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isPivotSet\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn reset_pivot<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"resetPivot\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn get_alpha<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAlpha\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn force_has_overlapping_rendering<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"forceHasOverlappingRendering\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_has_overlapping_rendering<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getHasOverlappingRendering\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn has_overlapping_rendering<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasOverlappingRendering\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_alpha<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAlpha\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_transition_alpha<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTransitionAlpha\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_transition_alpha<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTransitionAlpha\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_force_dark_allowed<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setForceDarkAllowed\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_force_dark_allowed<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isForceDarkAllowed\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_top<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTop\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_top<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTop\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_bottom<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getBottom\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn is_dirty<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isDirty\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_bottom<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setBottom\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_left<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLeft\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_left<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setLeft\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_right<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRight\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_right<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setRight\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_x<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getX\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_x<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setX\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_y<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getY\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_y<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setY\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_z<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getZ\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_z<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setZ\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_elevation<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getElevation\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_elevation<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setElevation\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_translation_x<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTranslationX\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_translation_x<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTranslationX\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_translation_y<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTranslationY\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_translation_y<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTranslationY\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_translation_z<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTranslationZ\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn set_translation_z<'a>(&'a self, env: &'a JEnv, arg0: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTranslationZ\0", b"(F)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_animation_matrix<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAnimationMatrix\0", b"(Landroid/graphics/Matrix;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_animation_matrix<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAnimationMatrix\0", b"()Landroid/graphics/Matrix;\0"))? .call(env, self.as_ref(), ()) } pub fn get_state_list_animator<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getStateListAnimator\0", b"()Landroid/animation/StateListAnimator;\0"))? .call(env, self.as_ref(), ()) } pub fn set_state_list_animator<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setStateListAnimator\0", b"(Landroid/animation/StateListAnimator;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_clip_to_outline<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getClipToOutline\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_clip_to_outline<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setClipToOutline\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_outline_provider<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOutlineProvider\0", b"(Landroid/view/ViewOutlineProvider;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_outline_provider<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getOutlineProvider\0", b"()Landroid/view/ViewOutlineProvider;\0"))? .call(env, self.as_ref(), ()) } pub fn invalidate_outline<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"invalidateOutline\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn set_outline_spot_shadow_color<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOutlineSpotShadowColor\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_outline_spot_shadow_color<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getOutlineSpotShadowColor\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_outline_ambient_shadow_color<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOutlineAmbientShadowColor\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_outline_ambient_shadow_color<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getOutlineAmbientShadowColor\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_hit_rect<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getHitRect\0", b"(Landroid/graphics/Rect;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_focused_rect<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getFocusedRect\0", b"(Landroid/graphics/Rect;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_global_visible_rect<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"getGlobalVisibleRect\0", b"(Landroid/graphics/Rect;Landroid/graphics/Point;)Z\0", ) })? .call(env, self.as_ref(), (arg0, arg1)) } pub fn get_global_visible_rect_v2<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getGlobalVisibleRect\0", b"(Landroid/graphics/Rect;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_local_visible_rect<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLocalVisibleRect\0", b"(Landroid/graphics/Rect;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn offset_top_and_bottom<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"offsetTopAndBottom\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn offset_left_and_right<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"offsetLeftAndRight\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_layout_params<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLayoutParams\0", b"()Landroid/view/ViewGroup$LayoutParams;\0"))? .call(env, self.as_ref(), ()) } pub fn set_layout_params<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setLayoutParams\0", b"(Landroid/view/ViewGroup$LayoutParams;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn scroll_to<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"scrollTo\0", b"(II)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn scroll_by<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"scrollBy\0", b"(II)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn awaken_scroll_bars<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"awakenScrollBars\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn awaken_scroll_bars_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"awakenScrollBars\0", b"(I)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn awaken_scroll_bars_v3<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JBool) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"awakenScrollBars\0", b"(IZ)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn invalidate<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"invalidate\0", b"(Landroid/graphics/Rect;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn invalidate_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"invalidate\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn invalidate_v3<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"invalidate\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn is_opaque<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isOpaque\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_handler<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getHandler\0", b"()Landroid/os/Handler;\0"))? .call(env, self.as_ref(), ()) } pub fn post<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"post\0", b"(Ljava/lang/Runnable;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn post_delayed<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JLong) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postDelayed\0", b"(Ljava/lang/Runnable;J)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn post_on_animation<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postOnAnimation\0", b"(Ljava/lang/Runnable;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn post_on_animation_delayed<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: JLong) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postOnAnimationDelayed\0", b"(Ljava/lang/Runnable;J)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn remove_callbacks<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"removeCallbacks\0", b"(Ljava/lang/Runnable;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn post_invalidate<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postInvalidate\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn post_invalidate_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postInvalidate\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn post_invalidate_delayed<'a>(&'a self, env: &'a JEnv, arg0: JLong) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postInvalidateDelayed\0", b"(J)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn post_invalidate_delayed_v2<'a>( &'a self, env: &'a JEnv, arg0: JLong, arg1: JInt, arg2: JInt, arg3: JInt, arg4: JInt, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postInvalidateDelayed\0", b"(JIIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3, arg4)) } pub fn post_invalidate_on_animation<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postInvalidateOnAnimation\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn post_invalidate_on_animation_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"postInvalidateOnAnimation\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn compute_scroll<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"computeScroll\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn is_horizontal_fading_edge_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isHorizontalFadingEdgeEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_horizontal_fading_edge_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setHorizontalFadingEdgeEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_vertical_fading_edge_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isVerticalFadingEdgeEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_vertical_fading_edge_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setVerticalFadingEdgeEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_top_fading_edge_strength<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTopFadingEdgeStrength\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn get_bottom_fading_edge_strength<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getBottomFadingEdgeStrength\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn get_left_fading_edge_strength<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLeftFadingEdgeStrength\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn get_right_fading_edge_strength<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRightFadingEdgeStrength\0", b"()F\0"))? .call(env, self.as_ref(), ()) } pub fn is_horizontal_scroll_bar_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isHorizontalScrollBarEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_horizontal_scroll_bar_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setHorizontalScrollBarEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_vertical_scroll_bar_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isVerticalScrollBarEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_vertical_scroll_bar_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setVerticalScrollBarEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_scrollbar_fading_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollbarFadingEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_scrollbar_fading_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isScrollbarFadingEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_scroll_bar_default_delay_before_fade<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScrollBarDefaultDelayBeforeFade\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_scroll_bar_default_delay_before_fade<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollBarDefaultDelayBeforeFade\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_scroll_bar_fade_duration<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScrollBarFadeDuration\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_scroll_bar_fade_duration<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollBarFadeDuration\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_scroll_bar_size<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScrollBarSize\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_scroll_bar_size<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollBarSize\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_scroll_bar_style<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollBarStyle\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_scroll_bar_style<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScrollBarStyle\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn compute_horizontal_scroll_range<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"computeHorizontalScrollRange\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn compute_horizontal_scroll_offset<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"computeHorizontalScrollOffset\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn compute_horizontal_scroll_extent<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"computeHorizontalScrollExtent\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn compute_vertical_scroll_range<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"computeVerticalScrollRange\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn compute_vertical_scroll_offset<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"computeVerticalScrollOffset\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn compute_vertical_scroll_extent<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"computeVerticalScrollExtent\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn can_scroll_horizontally<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"canScrollHorizontally\0", b"(I)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn can_scroll_vertically<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"canScrollVertically\0", b"(I)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_draw_scroll_bars<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onDrawScrollBars\0", b"(Landroid/graphics/Canvas;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_draw<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onDraw\0", b"(Landroid/graphics/Canvas;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_attached_to_window<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onAttachedToWindow\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn on_screen_state_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onScreenStateChanged\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_rtl_properties_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onRtlPropertiesChanged\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn can_resolve_layout_direction<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"canResolveLayoutDirection\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn is_layout_direction_resolved<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isLayoutDirectionResolved\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn on_detached_from_window<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onDetachedFromWindow\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn get_window_attach_count<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getWindowAttachCount\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_window_token<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getWindowToken\0", b"()Landroid/os/IBinder;\0"))? .call(env, self.as_ref(), ()) } pub fn get_window_id<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getWindowId\0", b"()Landroid/view/WindowId;\0"))? .call(env, self.as_ref(), ()) } pub fn get_application_window_token<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getApplicationWindowToken\0", b"()Landroid/os/IBinder;\0"))? .call(env, self.as_ref(), ()) } pub fn get_display<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDisplay\0", b"()Landroid/view/Display;\0"))? .call(env, self.as_ref(), ()) } pub fn cancel_pending_input_events<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"cancelPendingInputEvents\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn on_cancel_pending_input_events<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onCancelPendingInputEvents\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn save_hierarchy_state<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"saveHierarchyState\0", b"(Landroid/util/SparseArray;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_save_instance_state<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchSaveInstanceState\0", b"(Landroid/util/SparseArray;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_save_instance_state<'a>(&'a self, env: &'a JEnv) -> Option<&'a crate::android::os::ParcelableObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onSaveInstanceState\0", b"()Landroid/os/Parcelable;\0"))? .call(env, self.as_ref(), ()) } pub fn restore_hierarchy_state<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"restoreHierarchyState\0", b"(Landroid/util/SparseArray;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_restore_instance_state<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchRestoreInstanceState\0", b"(Landroid/util/SparseArray;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_restore_instance_state<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::os::ParcelableObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onRestoreInstanceState\0", b"(Landroid/os/Parcelable;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_drawing_time<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDrawingTime\0", b"()J\0"))? .call(env, self.as_ref(), ()) } pub fn set_duplicate_parent_state_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setDuplicateParentStateEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_duplicate_parent_state_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isDuplicateParentStateEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_layer_type<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setLayerType\0", b"(ILandroid/graphics/Paint;)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_render_effect<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setRenderEffect\0", b"(Landroid/graphics/RenderEffect;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_layer_paint<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setLayerPaint\0", b"(Landroid/graphics/Paint;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_layer_type<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLayerType\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn build_layer<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"buildLayer\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn set_drawing_cache_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setDrawingCacheEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_drawing_cache_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isDrawingCacheEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_drawing_cache<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDrawingCache\0", b"()Landroid/graphics/Bitmap;\0"))? .call(env, self.as_ref(), ()) } pub fn get_drawing_cache_v2<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDrawingCache\0", b"(Z)Landroid/graphics/Bitmap;\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn destroy_drawing_cache<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"destroyDrawingCache\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn set_drawing_cache_background_color<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setDrawingCacheBackgroundColor\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_drawing_cache_background_color<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDrawingCacheBackgroundColor\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn build_drawing_cache<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"buildDrawingCache\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn build_drawing_cache_v2<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"buildDrawingCache\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_in_edit_mode<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isInEditMode\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn is_padding_offset_required<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isPaddingOffsetRequired\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_left_padding_offset<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLeftPaddingOffset\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_right_padding_offset<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRightPaddingOffset\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_top_padding_offset<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTopPaddingOffset\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_bottom_padding_offset<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getBottomPaddingOffset\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn is_hardware_accelerated<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isHardwareAccelerated\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_clip_bounds<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setClipBounds\0", b"(Landroid/graphics/Rect;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_clip_bounds<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getClipBounds\0", b"()Landroid/graphics/Rect;\0"))? .call(env, self.as_ref(), ()) } pub fn get_clip_bounds_v2<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getClipBounds\0", b"(Landroid/graphics/Rect;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn draw<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"draw\0", b"(Landroid/graphics/Canvas;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_overlay<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getOverlay\0", b"()Landroid/view/ViewOverlay;\0"))? .call(env, self.as_ref(), ()) } pub fn get_solid_color<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getSolidColor\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn is_layout_requested<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isLayoutRequested\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn layout<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"layout\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn on_layout<'a>(&'a self, env: &'a JEnv, arg0: JBool, arg1: JInt, arg2: JInt, arg3: JInt, arg4: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onLayout\0", b"(ZIIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3, arg4)) } pub fn set_left_top_right_bottom<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setLeftTopRightBottom\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn on_finish_inflate<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onFinishInflate\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn get_resources<'a>(&'a self, env: &'a JEnv) -> Option<&'a crate::android::content::res::Resources> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getResources\0", b"()Landroid/content/res/Resources;\0"))? .call(env, self.as_ref(), ()) } pub fn invalidate_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"invalidateDrawable\0", b"(Landroid/graphics/drawable/Drawable;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn schedule_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: JLong) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"scheduleDrawable\0", b"(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn unschedule_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"unscheduleDrawable\0", b"(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1)) } pub fn unschedule_drawable_v2<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"unscheduleDrawable\0", b"(Landroid/graphics/drawable/Drawable;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn verify_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"verifyDrawable\0", b"(Landroid/graphics/drawable/Drawable;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn drawable_state_changed<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"drawableStateChanged\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn drawable_hotspot_changed<'a>(&'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"drawableHotspotChanged\0", b"(FF)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn dispatch_drawable_hotspot_changed<'a>(&'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchDrawableHotspotChanged\0", b"(FF)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn refresh_drawable_state<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"refreshDrawableState\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn get_drawable_state<'a>(&'a self, env: &'a JEnv) -> Option<&'a JArrayPrim> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getDrawableState\0", b"()[I\0"))? .call(env, self.as_ref(), ()) } pub fn on_create_drawable_state<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<&'a JArrayPrim> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onCreateDrawableState\0", b"(I)[I\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn jump_drawables_to_current_state<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"jumpDrawablesToCurrentState\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn set_background_color<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setBackgroundColor\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_background_resource<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setBackgroundResource\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_background<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setBackground\0", b"(Landroid/graphics/drawable/Drawable;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_background_drawable<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setBackgroundDrawable\0", b"(Landroid/graphics/drawable/Drawable;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_background<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getBackground\0", b"()Landroid/graphics/drawable/Drawable;\0"))? .call(env, self.as_ref(), ()) } pub fn set_background_tint_list<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setBackgroundTintList\0", b"(Landroid/content/res/ColorStateList;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_background_tint_list<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getBackgroundTintList\0", b"()Landroid/content/res/ColorStateList;\0"))? .call(env, self.as_ref(), ()) } pub fn set_background_tint_mode<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setBackgroundTintMode\0", b"(Landroid/graphics/PorterDuff$Mode;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_background_tint_blend_mode<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setBackgroundTintBlendMode\0", b"(Landroid/graphics/BlendMode;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_background_tint_mode<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getBackgroundTintMode\0", b"()Landroid/graphics/PorterDuff$Mode;\0"))? .call(env, self.as_ref(), ()) } pub fn get_background_tint_blend_mode<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getBackgroundTintBlendMode\0", b"()Landroid/graphics/BlendMode;\0"))? .call(env, self.as_ref(), ()) } pub fn get_foreground<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getForeground\0", b"()Landroid/graphics/drawable/Drawable;\0"))? .call(env, self.as_ref(), ()) } pub fn set_foreground<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setForeground\0", b"(Landroid/graphics/drawable/Drawable;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_foreground_gravity<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getForegroundGravity\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_foreground_gravity<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setForegroundGravity\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_foreground_tint_list<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setForegroundTintList\0", b"(Landroid/content/res/ColorStateList;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_foreground_tint_list<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getForegroundTintList\0", b"()Landroid/content/res/ColorStateList;\0"))? .call(env, self.as_ref(), ()) } pub fn set_foreground_tint_mode<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setForegroundTintMode\0", b"(Landroid/graphics/PorterDuff$Mode;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_foreground_tint_blend_mode<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setForegroundTintBlendMode\0", b"(Landroid/graphics/BlendMode;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_foreground_tint_mode<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getForegroundTintMode\0", b"()Landroid/graphics/PorterDuff$Mode;\0"))? .call(env, self.as_ref(), ()) } pub fn get_foreground_tint_blend_mode<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getForegroundTintBlendMode\0", b"()Landroid/graphics/BlendMode;\0"))? .call(env, self.as_ref(), ()) } pub fn on_draw_foreground<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onDrawForeground\0", b"(Landroid/graphics/Canvas;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_padding<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setPadding\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn set_padding_relative<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setPaddingRelative\0", b"(IIII)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn get_source_layout_res_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getSourceLayoutResId\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_padding_top<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPaddingTop\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_padding_bottom<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPaddingBottom\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_padding_left<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPaddingLeft\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_padding_start<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPaddingStart\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_padding_right<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPaddingRight\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_padding_end<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPaddingEnd\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn is_padding_relative<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isPaddingRelative\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_selected<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setSelected\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_set_selected<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchSetSelected\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_selected<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isSelected\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_activated<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setActivated\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_set_activated<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchSetActivated\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_activated<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isActivated\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn get_view_tree_observer<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getViewTreeObserver\0", b"()Landroid/view/ViewTreeObserver;\0"))? .call(env, self.as_ref(), ()) } pub fn get_root_view<'a>(&'a self, env: &'a JEnv) -> Option<&'a crate::android::view::View> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRootView\0", b"()Landroid/view/View;\0"))? .call(env, self.as_ref(), ()) } pub fn transform_matrix_to_global<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"transformMatrixToGlobal\0", b"(Landroid/graphics/Matrix;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn transform_matrix_to_local<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"transformMatrixToLocal\0", b"(Landroid/graphics/Matrix;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_location_on_screen<'a>(&'a self, env: &'a JEnv, arg0: &'a JArrayPrim) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLocationOnScreen\0", b"([I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_location_in_window<'a>(&'a self, env: &'a JEnv, arg0: &'a JArrayPrim) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getLocationInWindow\0", b"([I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn find_view_by_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<&'a crate::android::view::View> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"findViewById\0", b"(I)Landroid/view/View;\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn require_view_by_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<&'a crate::android::view::View> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requireViewById\0", b"(I)Landroid/view/View;\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn find_view_with_tag<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<&'a crate::android::view::View> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"findViewWithTag\0", b"(Ljava/lang/Object;)Landroid/view/View;\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_id<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setId\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getId\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_unique_drawing_id<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getUniqueDrawingId\0", b"()J\0"))? .call(env, self.as_ref(), ()) } pub fn get_tag<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTag\0", b"()Ljava/lang/Object;\0"))? .call(env, self.as_ref(), ()) } pub fn set_tag<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTag\0", b"(Ljava/lang/Object;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_tag_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTag\0", b"(I)Ljava/lang/Object;\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_tag_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTag\0", b"(ILjava/lang/Object;)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn get_baseline<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getBaseline\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn is_in_layout<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isInLayout\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn request_layout<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestLayout\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn force_layout<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"forceLayout\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn measure<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"measure\0", b"(II)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_measure<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onMeasure\0", b"(II)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_measured_dimension<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setMeasuredDimension\0", b"(II)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn get_suggested_minimum_height<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getSuggestedMinimumHeight\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_suggested_minimum_width<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getSuggestedMinimumWidth\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_minimum_height<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getMinimumHeight\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_minimum_height<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setMinimumHeight\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_minimum_width<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getMinimumWidth\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_minimum_width<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setMinimumWidth\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_animation<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getAnimation\0", b"()Landroid/view/animation/Animation;\0"))? .call(env, self.as_ref(), ()) } pub fn start_animation<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"startAnimation\0", b"(Landroid/view/animation/Animation;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn clear_animation<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"clearAnimation\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn set_animation<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAnimation\0", b"(Landroid/view/animation/Animation;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_animation_start<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onAnimationStart\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn on_animation_end<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onAnimationEnd\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn on_set_alpha<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onSetAlpha\0", b"(I)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn gather_transparent_region<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"gatherTransparentRegion\0", b"(Landroid/graphics/Region;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn play_sound_effect<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"playSoundEffect\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn perform_haptic_feedback<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"performHapticFeedback\0", b"(I)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn perform_haptic_feedback_v2<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"performHapticFeedback\0", b"(II)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_system_ui_visibility<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setSystemUiVisibility\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_system_ui_visibility<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getSystemUiVisibility\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn get_window_system_ui_visibility<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getWindowSystemUiVisibility\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn on_window_system_ui_visibility_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onWindowSystemUiVisibilityChanged\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_window_system_ui_visiblity_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchWindowSystemUiVisiblityChanged\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_system_ui_visibility_change_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnSystemUiVisibilityChangeListener\0", b"(Landroid/view/View$OnSystemUiVisibilityChangeListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_system_ui_visibility_changed<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchSystemUiVisibilityChanged\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn start_drag<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JObject, arg3: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"startDrag\0", b"(Landroid/content/ClipData;Landroid/view/View$DragShadowBuilder;Ljava/lang/Object;I)Z\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn start_drag_and_drop<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JObject, arg3: JInt, ) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"startDragAndDrop\0", b"(Landroid/content/ClipData;Landroid/view/View$DragShadowBuilder;Ljava/lang/Object;I)Z\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn cancel_drag_and_drop<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"cancelDragAndDrop\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn update_drag_shadow<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"updateDragShadow\0", b"(Landroid/view/View$DragShadowBuilder;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_drag_event<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onDragEvent\0", b"(Landroid/view/DragEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_drag_event<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchDragEvent\0", b"(Landroid/view/DragEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn over_scroll_by<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt, arg4: JInt, arg5: JInt, arg6: JInt, arg7: JInt, arg8: JBool, ) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"overScrollBy\0", b"(IIIIIIIIZ)Z\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)) } pub fn on_over_scrolled<'a>(&'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JBool, arg3: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onOverScrolled\0", b"(IIZZ)V\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn get_over_scroll_mode<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getOverScrollMode\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_over_scroll_mode<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setOverScrollMode\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_nested_scrolling_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setNestedScrollingEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_nested_scrolling_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isNestedScrollingEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn start_nested_scroll<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"startNestedScroll\0", b"(I)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn stop_nested_scroll<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"stopNestedScroll\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn has_nested_scrolling_parent<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasNestedScrollingParent\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn dispatch_nested_scroll<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: JInt, arg3: JInt, arg4: &'a JArrayPrim, ) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchNestedScroll\0", b"(IIII[I)Z\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3, arg4)) } pub fn dispatch_nested_pre_scroll<'a>( &'a self, env: &'a JEnv, arg0: JInt, arg1: JInt, arg2: &'a JArrayPrim, arg3: &'a JArrayPrim, ) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchNestedPreScroll\0", b"(II[I[I)Z\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn dispatch_nested_fling<'a>(&'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat, arg2: JBool) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchNestedFling\0", b"(FFZ)Z\0"))? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn dispatch_nested_pre_fling<'a>(&'a self, env: &'a JEnv, arg0: JFloat, arg1: JFloat) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchNestedPreFling\0", b"(FF)Z\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_text_direction<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTextDirection\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_text_direction<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTextDirection\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn can_resolve_text_direction<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"canResolveTextDirection\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn is_text_direction_resolved<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isTextDirectionResolved\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn set_text_alignment<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTextAlignment\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_text_alignment<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTextAlignment\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn can_resolve_text_alignment<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"canResolveTextAlignment\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn is_text_alignment_resolved<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isTextAlignmentResolved\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn on_resolve_pointer_icon<'a>( &'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent, arg1: JInt, ) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onResolvePointerIcon\0", b"(Landroid/view/MotionEvent;I)Landroid/view/PointerIcon;\0", ) })? .call(env, self.as_ref(), (arg0, arg1)) } pub fn set_pointer_icon<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setPointerIcon\0", b"(Landroid/view/PointerIcon;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_pointer_icon<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getPointerIcon\0", b"()Landroid/view/PointerIcon;\0"))? .call(env, self.as_ref(), ()) } pub fn has_pointer_capture<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"hasPointerCapture\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn request_pointer_capture<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"requestPointerCapture\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn release_pointer_capture<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"releasePointerCapture\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn on_pointer_capture_change<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onPointerCaptureChange\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_pointer_capture_changed<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"dispatchPointerCaptureChanged\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn on_captured_pointer_event<'a>(&'a self, env: &'a JEnv, arg0: &'a crate::android::view::MotionEvent) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onCapturedPointerEvent\0", b"(Landroid/view/MotionEvent;)Z\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_on_captured_pointer_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setOnCapturedPointerListener\0", b"(Landroid/view/View$OnCapturedPointerListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn animate<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"animate\0", b"()Landroid/view/ViewPropertyAnimator;\0"))? .call(env, self.as_ref(), ()) } pub fn set_transition_name<'a>(&'a self, env: &'a JEnv, arg0: &'a JString) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTransitionName\0", b"(Ljava/lang/String;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_transition_name<'a>(&'a self, env: &'a JEnv) -> Option<&'a JString> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTransitionName\0", b"()Ljava/lang/String;\0"))? .call(env, self.as_ref(), ()) } pub fn get_scroll_capture_hint<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getScrollCaptureHint\0", b"()I\0"))? .call(env, self.as_ref(), ()) } pub fn set_scroll_capture_hint<'a>(&'a self, env: &'a JEnv, arg0: JInt) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollCaptureHint\0", b"(I)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn set_scroll_capture_callback<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setScrollCaptureCallback\0", b"(Landroid/view/ScrollCaptureCallback;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_scroll_capture_search<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JObject, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"dispatchScrollCaptureSearch\0", b"(Landroid/graphics/Rect;Landroid/graphics/Point;Ljava/util/function/Consumer;)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn on_scroll_capture_search<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JObject, arg2: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onScrollCaptureSearch\0", b"(Landroid/graphics/Rect;Landroid/graphics/Point;Ljava/util/function/Consumer;)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn set_tooltip_text<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setTooltipText\0", b"(Ljava/lang/CharSequence;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn get_tooltip_text<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getTooltipText\0", b"()Ljava/lang/CharSequence;\0"))? .call(env, self.as_ref(), ()) } pub fn add_on_unhandled_key_event_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"addOnUnhandledKeyEventListener\0", b"(Landroid/view/View$OnUnhandledKeyEventListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn remove_on_unhandled_key_event_listener<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"removeOnUnhandledKeyEventListener\0", b"(Landroid/view/View$OnUnhandledKeyEventListener;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn set_auto_handwriting_enabled<'a>(&'a self, env: &'a JEnv, arg0: JBool) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"setAutoHandwritingEnabled\0", b"(Z)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn is_auto_handwriting_enabled<'a>(&'a self, env: &'a JEnv) -> Option { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"isAutoHandwritingEnabled\0", b"()Z\0"))? .call(env, self.as_ref(), ()) } pub fn on_create_view_translation_request<'a>(&'a self, env: &'a JEnv, arg0: &'a JArrayPrim, arg1: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onCreateViewTranslationRequest\0", b"([ILjava/util/function/Consumer;)V\0"))? .call(env, self.as_ref(), (arg0, arg1)) } pub fn on_create_virtual_view_translation_requests<'a>( &'a self, env: &'a JEnv, arg0: &'a JArrayPrim, arg1: &'a JArrayPrim, arg2: &'a JObject, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onCreateVirtualViewTranslationRequests\0", b"([J[ILjava/util/function/Consumer;)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2)) } pub fn set_view_translation_callback<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"setViewTranslationCallback\0", b"(Landroid/view/translation/ViewTranslationCallback;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn clear_view_translation_callback<'a>(&'a self, env: &'a JEnv) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"clearViewTranslationCallback\0", b"()V\0"))? .call(env, self.as_ref(), ()) } pub fn get_view_translation_response<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"getViewTranslationResponse\0", b"()Landroid/view/translation/ViewTranslationResponse;\0", ) })? .call(env, self.as_ref(), ()) } pub fn on_view_translation_response<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"onViewTranslationResponse\0", b"(Landroid/view/translation/ViewTranslationResponse;)V\0", ) })? .call(env, self.as_ref(), (arg0,)) } pub fn on_virtual_view_translation_responses<'a>(&'a self, env: &'a JEnv, arg0: &'a JObject) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"onVirtualViewTranslationResponses\0", b"(Landroid/util/LongSparseArray;)V\0"))? .call(env, self.as_ref(), (arg0,)) } pub fn dispatch_create_view_translation_request<'a>( &'a self, env: &'a JEnv, arg0: &'a JObject, arg1: &'a JArrayPrim, arg2: &'a JObject, arg3: &'a JObject, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| { Self::class(Some(env))?.method( env, b"dispatchCreateViewTranslationRequest\0", b"(Ljava/util/Map;[ILandroid/view/translation/TranslationCapability;Ljava/util/List;)V\0", ) })? .call(env, self.as_ref(), (arg0, arg1, arg2, arg3)) } pub fn generate_display_hash<'a>( &'a self, env: &'a JEnv, arg0: &'a JString, arg1: &'a JObject, arg2: &'a JObject, arg3: &'a JObject, ) -> Option<()> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"generateDisplayHash\0", b"(Ljava/lang/String;Landroid/graphics/Rect;Ljava/util/concurrent/Executor;Landroid/view/displayhash/DisplayHashResultCallback;)V\0"))? .call(env, self.as_ref(), (arg0,arg1,arg2,arg3,)) } pub fn get_root_surface_control<'a>(&'a self, env: &'a JEnv) -> Option<&'a JObject> { static CACHE: CachedID = CachedID::new(); CACHE .get(|| Self::class(Some(env))?.method(env, b"getRootSurfaceControl\0", b"()Landroid/view/AttachedSurfaceControl;\0"))? .call(env, self.as_ref(), ()) } } #[test] fn test_type_zero() { assert_eq!(0, std::mem::size_of::()); }