[−]Struct jni_android_sys::android::os::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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, PowerManager_WakeLock>>, Local<'env, Throwable>>
Required features: "android-os-PowerManager_WakeLock", "java-lang-String"
pub fn isWakeLockLevelSupported<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn isScreenOn<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn isDeviceIdleMode<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isIgnoringBatteryOptimizations<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
isIgnoringBatteryOptimizations
Required features: "java-lang-String"
pub fn isSustainedPerformanceModeSupported<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
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]
public static final FULL_WAKE_LOCK
pub const LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF: i32
[src]
public static final LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF
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]
public static final LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF
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]
public static final RELEASE_FLAG_WAIT_FOR_NO_PROXIMITY
pub const SCREEN_BRIGHT_WAKE_LOCK: i32
[src]
public static final SCREEN_BRIGHT_WAKE_LOCK
pub const SCREEN_DIM_WAKE_LOCK: i32
[src]
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]
&'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 PowerManager
impl AsValidJObjectAndEnv for PowerManager
impl Deref for PowerManager
impl JniType for PowerManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for PowerManager
impl !Send for PowerManager
impl !Sync for PowerManager
impl Unpin for PowerManager
impl UnwindSafe for PowerManager
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>,