[]Struct jni_android_sys::android::app::AppOpsManager

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

public class AppOpsManager

Required feature: "android-app-AppOpsManager"

Methods

impl AppOpsManager

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

permissionToOp

Required features: "java-lang-String"

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

startWatchingMode

Required features: "android-app-AppOpsManager_OnOpChangedListener", "java-lang-String"

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

stopWatchingMode

Required features: "android-app-AppOpsManager_OnOpChangedListener"

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

checkOp

Required features: "java-lang-String"

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

checkOpNoThrow

Required features: "java-lang-String"

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

noteOp

Required features: "java-lang-String"

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

noteOpNoThrow

Required features: "java-lang-String"

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

noteProxyOp

Required features: "java-lang-String"

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

noteProxyOpNoThrow

Required features: "java-lang-String"

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

startOp

Required features: "java-lang-String"

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

startOpNoThrow

Required features: "java-lang-String"

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

finishOp

Required features: "java-lang-String"

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

checkPackage

Required features: "java-lang-String"

pub const MODE_ALLOWED: i32[src]

public static final MODE_ALLOWED

pub const MODE_DEFAULT: i32[src]

public static final MODE_DEFAULT

pub const MODE_ERRORED: i32[src]

public static final MODE_ERRORED

pub const MODE_IGNORED: i32[src]

public static final MODE_IGNORED

pub const OPSTR_ADD_VOICEMAIL: &'static str[src]

public static final OPSTR_ADD_VOICEMAIL

pub const OPSTR_ANSWER_PHONE_CALLS: &'static str[src]

public static final OPSTR_ANSWER_PHONE_CALLS

pub const OPSTR_BODY_SENSORS: &'static str[src]

public static final OPSTR_BODY_SENSORS

pub const OPSTR_CALL_PHONE: &'static str[src]

public static final OPSTR_CALL_PHONE

pub const OPSTR_CAMERA: &'static str[src]

public static final OPSTR_CAMERA

pub const OPSTR_COARSE_LOCATION: &'static str[src]

public static final OPSTR_COARSE_LOCATION

pub const OPSTR_FINE_LOCATION: &'static str[src]

public static final OPSTR_FINE_LOCATION

pub const OPSTR_GET_USAGE_STATS: &'static str[src]

public static final OPSTR_GET_USAGE_STATS

pub const OPSTR_MOCK_LOCATION: &'static str[src]

public static final OPSTR_MOCK_LOCATION

pub const OPSTR_MONITOR_HIGH_POWER_LOCATION: &'static str[src]

pub const OPSTR_MONITOR_LOCATION: &'static str[src]

public static final OPSTR_MONITOR_LOCATION

pub const OPSTR_PICTURE_IN_PICTURE: &'static str[src]

public static final OPSTR_PICTURE_IN_PICTURE

pub const OPSTR_PROCESS_OUTGOING_CALLS: &'static str[src]

public static final OPSTR_PROCESS_OUTGOING_CALLS

pub const OPSTR_READ_CALENDAR: &'static str[src]

public static final OPSTR_READ_CALENDAR

pub const OPSTR_READ_CALL_LOG: &'static str[src]

public static final OPSTR_READ_CALL_LOG

pub const OPSTR_READ_CELL_BROADCASTS: &'static str[src]

public static final OPSTR_READ_CELL_BROADCASTS

pub const OPSTR_READ_CONTACTS: &'static str[src]

public static final OPSTR_READ_CONTACTS

pub const OPSTR_READ_EXTERNAL_STORAGE: &'static str[src]

public static final OPSTR_READ_EXTERNAL_STORAGE

pub const OPSTR_READ_PHONE_NUMBERS: &'static str[src]

public static final OPSTR_READ_PHONE_NUMBERS

pub const OPSTR_READ_PHONE_STATE: &'static str[src]

public static final OPSTR_READ_PHONE_STATE

pub const OPSTR_READ_SMS: &'static str[src]

public static final OPSTR_READ_SMS

pub const OPSTR_RECEIVE_MMS: &'static str[src]

public static final OPSTR_RECEIVE_MMS

pub const OPSTR_RECEIVE_SMS: &'static str[src]

public static final OPSTR_RECEIVE_SMS

pub const OPSTR_RECEIVE_WAP_PUSH: &'static str[src]

public static final OPSTR_RECEIVE_WAP_PUSH

pub const OPSTR_RECORD_AUDIO: &'static str[src]

public static final OPSTR_RECORD_AUDIO

pub const OPSTR_SEND_SMS: &'static str[src]

public static final OPSTR_SEND_SMS

pub const OPSTR_SYSTEM_ALERT_WINDOW: &'static str[src]

public static final OPSTR_SYSTEM_ALERT_WINDOW

pub const OPSTR_USE_FINGERPRINT: &'static str[src]

public static final OPSTR_USE_FINGERPRINT

pub const OPSTR_USE_SIP: &'static str[src]

public static final OPSTR_USE_SIP

pub const OPSTR_WRITE_CALENDAR: &'static str[src]

public static final OPSTR_WRITE_CALENDAR

pub const OPSTR_WRITE_CALL_LOG: &'static str[src]

public static final OPSTR_WRITE_CALL_LOG

pub const OPSTR_WRITE_CONTACTS: &'static str[src]

public static final OPSTR_WRITE_CONTACTS

pub const OPSTR_WRITE_EXTERNAL_STORAGE: &'static str[src]

public static final OPSTR_WRITE_EXTERNAL_STORAGE

pub const OPSTR_WRITE_SETTINGS: &'static str[src]

public static final OPSTR_WRITE_SETTINGS

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 AppOpsManager

impl AsValidJObjectAndEnv for AppOpsManager

impl Deref for AppOpsManager

type Target = Object

The resulting type after dereferencing.

impl JniType for AppOpsManager

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.