[]Struct jni_android_sys::android::os::PowerManager

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

public final class PowerManager

Required feature: "android-os-PowerManager"

Methods

impl PowerManager

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

newWakeLock

Required features: "android-os-PowerManager_WakeLock", "java-lang-String"

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

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

Deprecated

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

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

reboot

Required features: "java-lang-String"

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

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

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

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

isIgnoringBatteryOptimizations

Required features: "java-lang-String"

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

pub const ACQUIRE_CAUSES_WAKEUP: i32[src]

public static final ACQUIRE_CAUSES_WAKEUP

pub const ACTION_DEVICE_IDLE_MODE_CHANGED: &'static str[src]

public static final ACTION_DEVICE_IDLE_MODE_CHANGED

pub const ACTION_POWER_SAVE_MODE_CHANGED: &'static str[src]

public static final ACTION_POWER_SAVE_MODE_CHANGED

pub const FULL_WAKE_LOCK: i32[src]

Deprecated

public static final FULL_WAKE_LOCK

pub const LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF: i32[src]

pub const LOCATION_MODE_FOREGROUND_ONLY: i32[src]

public static final LOCATION_MODE_FOREGROUND_ONLY

pub const LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF: i32[src]

pub const LOCATION_MODE_NO_CHANGE: i32[src]

public static final LOCATION_MODE_NO_CHANGE

pub const ON_AFTER_RELEASE: i32[src]

public static final ON_AFTER_RELEASE

pub const PARTIAL_WAKE_LOCK: i32[src]

public static final PARTIAL_WAKE_LOCK

pub const PROXIMITY_SCREEN_OFF_WAKE_LOCK: i32[src]

public static final PROXIMITY_SCREEN_OFF_WAKE_LOCK

pub const RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY: i32[src]

pub const SCREEN_BRIGHT_WAKE_LOCK: i32[src]

Deprecated

public static final SCREEN_BRIGHT_WAKE_LOCK

pub const SCREEN_DIM_WAKE_LOCK: i32[src]

Deprecated

public static final SCREEN_DIM_WAKE_LOCK

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 PowerManager

impl AsValidJObjectAndEnv for PowerManager

impl Deref for PowerManager

type Target = Object

The resulting type after dereferencing.

impl JniType for PowerManager

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.