[]Struct jni_android_sys::android::app::usage::UsageStatsManager

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

public final class UsageStatsManager

Required feature: "android-app-usage-UsageStatsManager"

Methods

impl UsageStatsManager

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

queryUsageStats

Required features: "java-util-List"

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

queryConfigurations

Required features: "java-util-List"

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

queryEventStats

Required features: "java-util-List"

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

queryEvents

Required features: "android-app-usage-UsageEvents"

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

queryEventsForSelf

Required features: "android-app-usage-UsageEvents"

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

queryAndAggregateUsageStats

Required features: "java-util-Map"

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

isAppInactive

Required features: "java-lang-String"

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

pub const INTERVAL_BEST: i32[src]

public static final INTERVAL_BEST

pub const INTERVAL_DAILY: i32[src]

public static final INTERVAL_DAILY

pub const INTERVAL_MONTHLY: i32[src]

public static final INTERVAL_MONTHLY

pub const INTERVAL_WEEKLY: i32[src]

public static final INTERVAL_WEEKLY

pub const INTERVAL_YEARLY: i32[src]

public static final INTERVAL_YEARLY

pub const STANDBY_BUCKET_ACTIVE: i32[src]

public static final STANDBY_BUCKET_ACTIVE

pub const STANDBY_BUCKET_FREQUENT: i32[src]

public static final STANDBY_BUCKET_FREQUENT

pub const STANDBY_BUCKET_RARE: i32[src]

public static final STANDBY_BUCKET_RARE

pub const STANDBY_BUCKET_WORKING_SET: i32[src]

public static final STANDBY_BUCKET_WORKING_SET

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 UsageStatsManager

impl AsValidJObjectAndEnv for UsageStatsManager

impl Deref for UsageStatsManager

type Target = Object

The resulting type after dereferencing.

impl JniType for UsageStatsManager

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.