[]Struct jni_android_sys::android::os::Process

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

public class Process

Required feature: "android-os-Process"

Methods

impl Process

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

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

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

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

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

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

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

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

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

myUserHandle

Required features: "android-os-UserHandle"

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

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

pub fn getUidForName<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getUidForName

Required features: "java-lang-String"

pub fn getGidForName<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getGidForName

Required features: "java-lang-String"

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

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

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

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

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

Deprecated

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

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

pub const FIRST_APPLICATION_UID: i32[src]

public static final FIRST_APPLICATION_UID

pub const LAST_APPLICATION_UID: i32[src]

public static final LAST_APPLICATION_UID

pub const PHONE_UID: i32[src]

public static final PHONE_UID

pub const SIGNAL_KILL: i32[src]

public static final SIGNAL_KILL

pub const SIGNAL_QUIT: i32[src]

public static final SIGNAL_QUIT

pub const SIGNAL_USR1: i32[src]

public static final SIGNAL_USR1

pub const SYSTEM_UID: i32[src]

public static final SYSTEM_UID

pub const THREAD_PRIORITY_AUDIO: i32[src]

public static final THREAD_PRIORITY_AUDIO

pub const THREAD_PRIORITY_BACKGROUND: i32[src]

public static final THREAD_PRIORITY_BACKGROUND

pub const THREAD_PRIORITY_DEFAULT: i32[src]

public static final THREAD_PRIORITY_DEFAULT

pub const THREAD_PRIORITY_DISPLAY: i32[src]

public static final THREAD_PRIORITY_DISPLAY

pub const THREAD_PRIORITY_FOREGROUND: i32[src]

public static final THREAD_PRIORITY_FOREGROUND

pub const THREAD_PRIORITY_LESS_FAVORABLE: i32[src]

public static final THREAD_PRIORITY_LESS_FAVORABLE

pub const THREAD_PRIORITY_LOWEST: i32[src]

public static final THREAD_PRIORITY_LOWEST

pub const THREAD_PRIORITY_MORE_FAVORABLE: i32[src]

public static final THREAD_PRIORITY_MORE_FAVORABLE

pub const THREAD_PRIORITY_URGENT_AUDIO: i32[src]

public static final THREAD_PRIORITY_URGENT_AUDIO

pub const THREAD_PRIORITY_URGENT_DISPLAY: i32[src]

public static final THREAD_PRIORITY_URGENT_DISPLAY

pub const THREAD_PRIORITY_VIDEO: i32[src]

public static final THREAD_PRIORITY_VIDEO

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 Process

impl AsValidJObjectAndEnv for Process

impl Deref for Process

type Target = Object

The resulting type after dereferencing.

impl JniType for Process

Auto Trait Implementations

impl RefUnwindSafe for Process

impl !Send for Process

impl !Sync for Process

impl Unpin for Process

impl UnwindSafe for Process

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.