[−]Struct jni_android_sys::android::app::UiAutomation
public final class UiAutomation
Required feature: "android-app-UiAutomation"
Methods
impl UiAutomation
pub fn setOnAccessibilityEventListener<'env>(
&'env self,
arg0: impl Into<Option<&'env UiAutomation_OnAccessibilityEventListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env UiAutomation_OnAccessibilityEventListener>>
) -> Result<(), Local<'env, Throwable>>
setOnAccessibilityEventListener
Required features: "android-app-UiAutomation_OnAccessibilityEventListener"
pub fn performGlobalAction<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn findFocus<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, AccessibilityNodeInfo>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, AccessibilityNodeInfo>>, Local<'env, Throwable>>
Required features: "android-view-accessibility-AccessibilityNodeInfo"
pub fn getServiceInfo<'env>(
&'env self
) -> Result<Option<Local<'env, AccessibilityServiceInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, AccessibilityServiceInfo>>, Local<'env, Throwable>>
Required features: "android-accessibilityservice-AccessibilityServiceInfo"
pub fn setServiceInfo<'env>(
&'env self,
arg0: impl Into<Option<&'env AccessibilityServiceInfo>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AccessibilityServiceInfo>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-accessibilityservice-AccessibilityServiceInfo"
pub fn getWindows<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn getRootInActiveWindow<'env>(
&'env self
) -> Result<Option<Local<'env, AccessibilityNodeInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, AccessibilityNodeInfo>>, Local<'env, Throwable>>
Required features: "android-view-accessibility-AccessibilityNodeInfo"
pub fn injectInputEvent<'env>(
&'env self,
arg0: impl Into<Option<&'env InputEvent>>,
arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env InputEvent>>,
arg1: bool
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-view-InputEvent"
pub fn setRotation<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn executeAndWaitForEvent<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env UiAutomation_AccessibilityEventFilter>>,
arg2: i64
) -> Result<Option<Local<'env, AccessibilityEvent>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env UiAutomation_AccessibilityEventFilter>>,
arg2: i64
) -> Result<Option<Local<'env, AccessibilityEvent>>, Local<'env, Throwable>>
Required features: "android-app-UiAutomation_AccessibilityEventFilter", "android-view-accessibility-AccessibilityEvent", "java-lang-Runnable"
pub fn waitForIdle<'env>(
&'env self,
arg0: i64,
arg1: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i64
) -> Result<(), Local<'env, Throwable>>
pub fn takeScreenshot<'env>(
&'env self
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
Required features: "android-graphics-Bitmap"
pub fn setRunAsMonkey<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn clearWindowContentFrameStats<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn getWindowContentFrameStats<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, WindowContentFrameStats>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, WindowContentFrameStats>>, Local<'env, Throwable>>
Required features: "android-view-WindowContentFrameStats"
pub fn clearWindowAnimationFrameStats<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn getWindowAnimationFrameStats<'env>(
&'env self
) -> Result<Option<Local<'env, WindowAnimationFrameStats>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, WindowAnimationFrameStats>>, Local<'env, Throwable>>
Required features: "android-view-WindowAnimationFrameStats"
pub fn grantRuntimePermission<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn grantRuntimePermissionAsUser<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env UserHandle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env UserHandle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-UserHandle", "java-lang-String"
pub fn revokeRuntimePermission<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn revokeRuntimePermissionAsUser<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env UserHandle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env UserHandle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-UserHandle", "java-lang-String"
pub fn executeShellCommand<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ParcelFileDescriptor>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ParcelFileDescriptor>>, Local<'env, Throwable>>
Required features: "android-os-ParcelFileDescriptor", "java-lang-String"
pub const FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES: i32
[src]
public static final FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES
pub const ROTATION_FREEZE_0: i32
[src]
public static final ROTATION_FREEZE_0
pub const ROTATION_FREEZE_180: i32
[src]
public static final ROTATION_FREEZE_180
pub const ROTATION_FREEZE_270: i32
[src]
public static final ROTATION_FREEZE_270
pub const ROTATION_FREEZE_90: i32
[src]
public static final ROTATION_FREEZE_90
pub const ROTATION_FREEZE_CURRENT: i32
[src]
public static final ROTATION_FREEZE_CURRENT
pub const ROTATION_UNFREEZE: i32
[src]
public static final ROTATION_UNFREEZE
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for UiAutomation
impl AsValidJObjectAndEnv for UiAutomation
impl Deref for UiAutomation
impl JniType for UiAutomation
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for UiAutomation
impl !Send for UiAutomation
impl !Sync for UiAutomation
impl Unpin for UiAutomation
impl UnwindSafe for UiAutomation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,