[]Struct jni_android_sys::android::app::ActivityManager

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

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]

Deprecated

getRecentTasks

Required features: "java-util-List"

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

getAppTasks

Required features: "java-util-List"

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

getAppTaskThumbnailSize

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]

addAppTask

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]

Deprecated

getRunningTasks

Required features: "java-util-List"

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

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

moveTaskToFront

Required features: "android-os-Bundle"

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

Deprecated

getRunningServices

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]

getRunningServiceControlPanel

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]

getMemoryInfo

Required features: "android-app-ActivityManager_MemoryInfo"

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

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

getProcessesInErrorState

Required features: "java-util-List"

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

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

getRunningAppProcesses

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]

getMyMemoryState

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]

getProcessMemoryInfo

Required features: "android-os-Debug_MemoryInfo"

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

Deprecated

restartPackage

Required features: "java-lang-String"

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

killBackgroundProcesses

Required features: "java-lang-String"

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

getDeviceConfigurationInfo

Required features: "android-content-pm-ConfigurationInfo"

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

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

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

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

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

dumpPackageState

Required features: "java-io-FileDescriptor", "java-lang-String"

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

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

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

Deprecated

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

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

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]

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 ActivityManager

impl AsValidJObjectAndEnv for ActivityManager

impl Deref for ActivityManager

type Target = Object

The resulting type after dereferencing.

impl JniType for ActivityManager

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.