[−]Struct jni_android_sys::android::app::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env AppOpsManager_OnOpChangedListener>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn checkPackage<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
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]
public static final OPSTR_MONITOR_HIGH_POWER_LOCATION
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]
&'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 AppOpsManager
impl AsValidJObjectAndEnv for AppOpsManager
impl Deref for AppOpsManager
impl JniType for AppOpsManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for AppOpsManager
impl !Send for AppOpsManager
impl !Sync for AppOpsManager
impl Unpin for AppOpsManager
impl UnwindSafe for AppOpsManager
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>,