[]Struct jni_android_sys::android::app::Instrumentation

#[repr(transparent)]
pub struct Instrumentation(_);

public class Instrumentation

Required feature: "android-app-Instrumentation"

Methods

impl Instrumentation

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, Instrumentation>, Local<'env, Throwable>>
[src]

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

onCreate

Required features: "android-os-Bundle"

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

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

pub fn onException<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>,
    arg1: impl Into<Option<&'env Throwable>>
) -> Result<bool, Local<'env, Throwable>>
[src]

onException

Required features: "java-lang-Object", "java-lang-Throwable"

pub fn sendStatus<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

sendStatus

Required features: "android-os-Bundle"

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

addResults

Required features: "android-os-Bundle"

pub fn finish<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

finish

Required features: "android-os-Bundle"

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

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

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

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

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

getContext

Required features: "android-content-Context"

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

getComponentName

Required features: "android-content-ComponentName"

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

getTargetContext

Required features: "android-content-Context"

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

getProcessName

Required features: "java-lang-String"

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

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

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

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

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

waitForIdle

Required features: "java-lang-Runnable"

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

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

runOnMainSync

Required features: "java-lang-Runnable"

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

startActivitySync

Required features: "android-app-Activity", "android-content-Intent"

pub fn startActivitySync_Intent_Bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<Option<Local<'env, Activity>>, Local<'env, Throwable>>
[src]

startActivitySync

Required features: "android-app-Activity", "android-content-Intent", "android-os-Bundle"

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

addMonitor

Required features: "android-app-Instrumentation_ActivityMonitor"

pub fn addMonitor_IntentFilter_ActivityResult_boolean<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntentFilter>>,
    arg1: impl Into<Option<&'env Instrumentation_ActivityResult>>,
    arg2: bool
) -> Result<Option<Local<'env, Instrumentation_ActivityMonitor>>, Local<'env, Throwable>>
[src]

addMonitor

Required features: "android-app-Instrumentation_ActivityMonitor", "android-app-Instrumentation_ActivityResult", "android-content-IntentFilter"

pub fn addMonitor_String_ActivityResult_boolean<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Instrumentation_ActivityResult>>,
    arg2: bool
) -> Result<Option<Local<'env, Instrumentation_ActivityMonitor>>, Local<'env, Throwable>>
[src]

addMonitor

Required features: "android-app-Instrumentation_ActivityMonitor", "android-app-Instrumentation_ActivityResult", "java-lang-String"

pub fn checkMonitorHit<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Instrumentation_ActivityMonitor>>,
    arg1: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

checkMonitorHit

Required features: "android-app-Instrumentation_ActivityMonitor"

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

waitForMonitor

Required features: "android-app-Activity", "android-app-Instrumentation_ActivityMonitor"

pub fn waitForMonitorWithTimeout<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Instrumentation_ActivityMonitor>>,
    arg1: i64
) -> Result<Option<Local<'env, Activity>>, Local<'env, Throwable>>
[src]

waitForMonitorWithTimeout

Required features: "android-app-Activity", "android-app-Instrumentation_ActivityMonitor"

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

removeMonitor

Required features: "android-app-Instrumentation_ActivityMonitor"

pub fn invokeMenuActionSync<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: i32,
    arg2: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

invokeMenuActionSync

Required features: "android-app-Activity"

pub fn invokeContextMenuAction<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: i32,
    arg2: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

invokeContextMenuAction

Required features: "android-app-Activity"

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

sendStringSync

Required features: "java-lang-String"

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

sendKeySync

Required features: "android-view-KeyEvent"

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

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

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

sendPointerSync

Required features: "android-view-MotionEvent"

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

sendTrackballEventSync

Required features: "android-view-MotionEvent"

pub fn newApplication_ClassLoader_String_Context<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ClassLoader>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, Application>>, Local<'env, Throwable>>
[src]

newApplication

Required features: "android-app-Application", "android-content-Context", "java-lang-ClassLoader", "java-lang-String"

pub fn newApplication_Class_Context<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Class>>,
    arg1: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, Application>>, Local<'env, Throwable>>
[src]

newApplication

Required features: "android-app-Application", "android-content-Context", "java-lang-Class"

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

callApplicationOnCreate

Required features: "android-app-Application"

pub fn newActivity_Class_Context_IBinder_Application_Intent_ActivityInfo_CharSequence_Activity_String_Object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Class>>,
    arg1: impl Into<Option<&'env Context>>,
    arg2: impl Into<Option<&'env IBinder>>,
    arg3: impl Into<Option<&'env Application>>,
    arg4: impl Into<Option<&'env Intent>>,
    arg5: impl Into<Option<&'env ActivityInfo>>,
    arg6: impl Into<Option<&'env CharSequence>>,
    arg7: impl Into<Option<&'env Activity>>,
    arg8: impl Into<Option<&'env String>>,
    arg9: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Activity>>, Local<'env, Throwable>>
[src]

newActivity

Required features: "android-app-Activity", "android-app-Application", "android-content-Context", "android-content-Intent", "android-content-pm-ActivityInfo", "android-os-IBinder", "java-lang-CharSequence", "java-lang-Class", "java-lang-Object", "java-lang-String"

pub fn newActivity_ClassLoader_String_Intent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ClassLoader>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env Intent>>
) -> Result<Option<Local<'env, Activity>>, Local<'env, Throwable>>
[src]

newActivity

Required features: "android-app-Activity", "android-content-Intent", "java-lang-ClassLoader", "java-lang-String"

pub fn callActivityOnCreate_Activity_Bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnCreate

Required features: "android-app-Activity", "android-os-Bundle"

pub fn callActivityOnCreate_Activity_Bundle_PersistableBundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Bundle>>,
    arg2: impl Into<Option<&'env PersistableBundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnCreate

Required features: "android-app-Activity", "android-os-Bundle", "android-os-PersistableBundle"

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

callActivityOnDestroy

Required features: "android-app-Activity"

pub fn callActivityOnRestoreInstanceState_Activity_Bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnRestoreInstanceState

Required features: "android-app-Activity", "android-os-Bundle"

pub fn callActivityOnRestoreInstanceState_Activity_Bundle_PersistableBundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Bundle>>,
    arg2: impl Into<Option<&'env PersistableBundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnRestoreInstanceState

Required features: "android-app-Activity", "android-os-Bundle", "android-os-PersistableBundle"

pub fn callActivityOnPostCreate_Activity_Bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnPostCreate

Required features: "android-app-Activity", "android-os-Bundle"

pub fn callActivityOnPostCreate_Activity_Bundle_PersistableBundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Bundle>>,
    arg2: impl Into<Option<&'env PersistableBundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnPostCreate

Required features: "android-app-Activity", "android-os-Bundle", "android-os-PersistableBundle"

pub fn callActivityOnNewIntent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnNewIntent

Required features: "android-app-Activity", "android-content-Intent"

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

callActivityOnStart

Required features: "android-app-Activity"

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

callActivityOnRestart

Required features: "android-app-Activity"

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

callActivityOnResume

Required features: "android-app-Activity"

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

callActivityOnStop

Required features: "android-app-Activity"

pub fn callActivityOnSaveInstanceState_Activity_Bundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnSaveInstanceState

Required features: "android-app-Activity", "android-os-Bundle"

pub fn callActivityOnSaveInstanceState_Activity_Bundle_PersistableBundle<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Activity>>,
    arg1: impl Into<Option<&'env Bundle>>,
    arg2: impl Into<Option<&'env PersistableBundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

callActivityOnSaveInstanceState

Required features: "android-app-Activity", "android-os-Bundle", "android-os-PersistableBundle"

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

callActivityOnPause

Required features: "android-app-Activity"

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

callActivityOnUserLeaving

Required features: "android-app-Activity"

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

Deprecated

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

Deprecated

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

getAllocCounts

Required features: "android-os-Bundle"

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

getBinderCounts

Required features: "android-os-Bundle"

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

getUiAutomation

Required features: "android-app-UiAutomation"

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

getUiAutomation

Required features: "android-app-UiAutomation"

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

acquireLooperManager

Required features: "android-os-Looper", "android-os-TestLooperManager"

pub const REPORT_KEY_IDENTIFIER: &'static str[src]

public static final REPORT_KEY_IDENTIFIER

pub const REPORT_KEY_STREAMRESULT: &'static str[src]

public static final REPORT_KEY_STREAMRESULT

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 Instrumentation

impl AsValidJObjectAndEnv for Instrumentation

impl Deref for Instrumentation

type Target = Object

The resulting type after dereferencing.

impl JniType for Instrumentation

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.