[−]Struct jni_android_sys::android::app::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]
__jni_env: &'env Env
) -> Result<Local<'env, Instrumentation>, Local<'env, Throwable>>
pub fn onCreate<'env>(
&'env self,
arg0: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>,
arg1: impl Into<Option<&'env Throwable>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-Bundle"
pub fn addResults<'env>(
&'env self,
arg0: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-Bundle"
pub fn finish<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-Bundle"
pub fn setAutomaticPerformanceSnapshots<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn startPerformanceSnapshot<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn endPerformanceSnapshot<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Context>>, Local<'env, Throwable>>
Required features: "android-content-Context"
pub fn getComponentName<'env>(
&'env self
) -> Result<Option<Local<'env, ComponentName>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ComponentName>>, Local<'env, Throwable>>
Required features: "android-content-ComponentName"
pub fn getTargetContext<'env>(
&'env self
) -> Result<Option<Local<'env, Context>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Context>>, Local<'env, Throwable>>
Required features: "android-content-Context"
pub fn getProcessName<'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 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]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn waitForIdle<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<Option<Local<'env, Activity>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Intent>>,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<Option<Local<'env, Activity>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Instrumentation_ActivityMonitor>>
) -> Result<(), Local<'env, Throwable>>
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]
&'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>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env Instrumentation_ActivityMonitor>>,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Instrumentation_ActivityMonitor>>
) -> Result<Option<Local<'env, Activity>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Instrumentation_ActivityMonitor>>,
arg1: i64
) -> Result<Option<Local<'env, Activity>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Instrumentation_ActivityMonitor>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: i32,
arg2: i32
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: i32,
arg2: i32
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn sendStringSync<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn sendKeySync<'env>(
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-view-KeyEvent"
pub fn sendKeyDownUpSync<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn sendCharacterSync<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn sendPointerSync<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-view-MotionEvent"
pub fn sendTrackballEventSync<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<(), Local<'env, Throwable>>
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]
&'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>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Class>>,
arg1: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, Application>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Application>>
) -> Result<(), Local<'env, Throwable>>
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]
&'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>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Bundle>>,
arg2: impl Into<Option<&'env PersistableBundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Bundle>>,
arg2: impl Into<Option<&'env PersistableBundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Bundle>>,
arg2: impl Into<Option<&'env PersistableBundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn callActivityOnRestart<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn callActivityOnResume<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn callActivityOnStop<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Bundle>>,
arg2: impl Into<Option<&'env PersistableBundle>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn callActivityOnUserLeaving<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-Activity"
pub fn startAllocCounting<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn stopAllocCounting<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getAllocCounts<'env>(
&'env self
) -> Result<Option<Local<'env, Bundle>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Bundle>>, Local<'env, Throwable>>
Required features: "android-os-Bundle"
pub fn getBinderCounts<'env>(
&'env self
) -> Result<Option<Local<'env, Bundle>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Bundle>>, Local<'env, Throwable>>
Required features: "android-os-Bundle"
pub fn getUiAutomation<'env>(
&'env self
) -> Result<Option<Local<'env, UiAutomation>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, UiAutomation>>, Local<'env, Throwable>>
Required features: "android-app-UiAutomation"
pub fn getUiAutomation_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, UiAutomation>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, UiAutomation>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Looper>>
) -> Result<Option<Local<'env, TestLooperManager>>, Local<'env, Throwable>>
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]
&'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 Instrumentation
impl AsValidJObjectAndEnv for Instrumentation
impl Deref for Instrumentation
impl JniType for Instrumentation
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for Instrumentation
impl !Send for Instrumentation
impl !Sync for Instrumentation
impl Unpin for Instrumentation
impl UnwindSafe for Instrumentation
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>,