[−]Struct jni_android_sys::android::app::ActivityManager
public class ActivityManager
Required feature: "android-app-ActivityManager"
Methods
impl ActivityManager
pub fn getMemoryClass<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getLargeMemoryClass<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn isLowRamDevice<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn getRecentTasks<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn getAppTasks<'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 getAppTaskThumbnailSize<'env>(
&'env self
) -> Result<Option<Local<'env, Size>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Size>>, Local<'env, Throwable>>
Required features: "android-util-Size"
pub fn addAppTask<'env>(
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Intent>>,
arg2: impl Into<Option<&'env ActivityManager_TaskDescription>>,
arg3: impl Into<Option<&'env Bitmap>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Activity>>,
arg1: impl Into<Option<&'env Intent>>,
arg2: impl Into<Option<&'env ActivityManager_TaskDescription>>,
arg3: impl Into<Option<&'env Bitmap>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-app-Activity", "android-app-ActivityManager_TaskDescription", "android-content-Intent", "android-graphics-Bitmap"
pub fn getRunningTasks<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn moveTaskToFront_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn moveTaskToFront_int_int_Bundle<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-Bundle"
pub fn getRunningServices<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn getRunningServiceControlPanel<'env>(
&'env self,
arg0: impl Into<Option<&'env ComponentName>>
) -> Result<Option<Local<'env, PendingIntent>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ComponentName>>
) -> Result<Option<Local<'env, PendingIntent>>, Local<'env, Throwable>>
Required features: "android-app-PendingIntent", "android-content-ComponentName"
pub fn getMemoryInfo<'env>(
&'env self,
arg0: impl Into<Option<&'env ActivityManager_MemoryInfo>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ActivityManager_MemoryInfo>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-ActivityManager_MemoryInfo"
pub fn clearApplicationUserData<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getProcessesInErrorState<'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 isBackgroundRestricted<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getRunningAppProcesses<'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 getMyMemoryState<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ActivityManager_RunningAppProcessInfo>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ActivityManager_RunningAppProcessInfo>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-ActivityManager_RunningAppProcessInfo"
pub fn getProcessMemoryInfo<'env>(
&'env self,
arg0: impl Into<Option<&'env IntArray>>
) -> Result<Option<Local<'env, ObjectArray<Debug_MemoryInfo, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env IntArray>>
) -> Result<Option<Local<'env, ObjectArray<Debug_MemoryInfo, Throwable>>>, Local<'env, Throwable>>
Required features: "android-os-Debug_MemoryInfo"
pub fn restartPackage<'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 killBackgroundProcesses<'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 getDeviceConfigurationInfo<'env>(
&'env self
) -> Result<Option<Local<'env, ConfigurationInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ConfigurationInfo>>, Local<'env, Throwable>>
Required features: "android-content-pm-ConfigurationInfo"
pub fn getLauncherLargeIconDensity<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getLauncherLargeIconSize<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn isUserAMonkey<'env>(
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
pub fn isRunningInTestHarness<'env>(
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
pub fn dumpPackageState<'env>(
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-FileDescriptor", "java-lang-String"
pub fn setWatchHeapLimit<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn clearWatchHeapLimit<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn isInLockTaskMode<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getLockTaskModeState<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn setVrThread<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub const ACTION_REPORT_HEAP_LIMIT: &'static str
[src]
public static final ACTION_REPORT_HEAP_LIMIT
pub const LOCK_TASK_MODE_LOCKED: i32
[src]
public static final LOCK_TASK_MODE_LOCKED
pub const LOCK_TASK_MODE_NONE: i32
[src]
public static final LOCK_TASK_MODE_NONE
pub const LOCK_TASK_MODE_PINNED: i32
[src]
public static final LOCK_TASK_MODE_PINNED
pub const META_HOME_ALTERNATE: &'static str
[src]
public static final META_HOME_ALTERNATE
pub const MOVE_TASK_NO_USER_ACTION: i32
[src]
public static final MOVE_TASK_NO_USER_ACTION
pub const MOVE_TASK_WITH_HOME: i32
[src]
public static final MOVE_TASK_WITH_HOME
pub const RECENT_IGNORE_UNAVAILABLE: i32
[src]
public static final RECENT_IGNORE_UNAVAILABLE
pub const RECENT_WITH_EXCLUDED: i32
[src]
public static final RECENT_WITH_EXCLUDED
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 ActivityManager
impl AsValidJObjectAndEnv for ActivityManager
impl Deref for ActivityManager
impl JniType for ActivityManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for ActivityManager
impl !Send for ActivityManager
impl !Sync for ActivityManager
impl Unpin for ActivityManager
impl UnwindSafe for ActivityManager
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>,