[]Struct jni_android_sys::android::app::UiAutomation

#[repr(transparent)]
pub struct 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]

setOnAccessibilityEventListener

Required features: "android-app-UiAutomation_OnAccessibilityEventListener"

pub fn performGlobalAction<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn findFocus<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, AccessibilityNodeInfo>>, Local<'env, Throwable>>
[src]

findFocus

Required features: "android-view-accessibility-AccessibilityNodeInfo"

pub fn getServiceInfo<'env>(
    &'env self
) -> Result<Option<Local<'env, AccessibilityServiceInfo>>, Local<'env, Throwable>>
[src]

getServiceInfo

Required features: "android-accessibilityservice-AccessibilityServiceInfo"

pub fn setServiceInfo<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AccessibilityServiceInfo>>
) -> Result<(), Local<'env, Throwable>>
[src]

setServiceInfo

Required features: "android-accessibilityservice-AccessibilityServiceInfo"

pub fn getWindows<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getWindows

Required features: "java-util-List"

pub fn getRootInActiveWindow<'env>(
    &'env self
) -> Result<Option<Local<'env, AccessibilityNodeInfo>>, Local<'env, Throwable>>
[src]

getRootInActiveWindow

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]

injectInputEvent

Required features: "android-view-InputEvent"

pub fn setRotation<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

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]

executeAndWaitForEvent

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]

pub fn takeScreenshot<'env>(
    &'env self
) -> Result<Option<Local<'env, Bitmap>>, Local<'env, Throwable>>
[src]

takeScreenshot

Required features: "android-graphics-Bitmap"

pub fn setRunAsMonkey<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn clearWindowContentFrameStats<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn getWindowContentFrameStats<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, WindowContentFrameStats>>, Local<'env, Throwable>>
[src]

getWindowContentFrameStats

Required features: "android-view-WindowContentFrameStats"

pub fn clearWindowAnimationFrameStats<'env>(
    &'env self
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getWindowAnimationFrameStats<'env>(
    &'env self
) -> Result<Option<Local<'env, WindowAnimationFrameStats>>, Local<'env, Throwable>>
[src]

getWindowAnimationFrameStats

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]

grantRuntimePermission

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]

grantRuntimePermissionAsUser

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]

revokeRuntimePermission

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]

revokeRuntimePermissionAsUser

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]

executeShellCommand

Required features: "android-os-ParcelFileDescriptor", "java-lang-String"

pub const FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES: i32[src]

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

type Target = Object

The resulting type after dereferencing.

impl JniType for UiAutomation

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.