// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-test-IsolatedContext"))]
__jni_bindgen! {
/// public class [IsolatedContext](https://developer.android.com/reference/android/test/IsolatedContext.html)
///
/// Required feature: "android-test-IsolatedContext"
#[deprecated] public class IsolatedContext ("android/test/IsolatedContext") extends crate::android::content::ContextWrapper {
/// [IsolatedContext](https://developer.android.com/reference/android/test/IsolatedContext.html#IsolatedContext(android.content.ContentResolver,%20android.content.Context))
///
/// Required features: "android-content-ContentResolver", "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-ContentResolver", feature = "android-content-Context")))]
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ContentResolver>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::test::IsolatedContext>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/ContentResolver;Landroid/content/Context;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "<init>\0", "(Landroid/content/ContentResolver;Landroid/content/Context;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getAndClearBroadcastIntents](https://developer.android.com/reference/android/test/IsolatedContext.html#getAndClearBroadcastIntents())
///
/// Required features: "java-util-List"
#[cfg(any(feature = "all", all(feature = "java-util-List")))]
pub fn getAndClearBroadcastIntents<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::List>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "getAndClearBroadcastIntents", .descriptor == "()Ljava/util/List;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "getAndClearBroadcastIntents\0", "()Ljava/util/List;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getContentResolver](https://developer.android.com/reference/android/test/IsolatedContext.html#getContentResolver())
///
/// Required features: "android-content-ContentResolver"
#[cfg(any(feature = "all", all(feature = "android-content-ContentResolver")))]
pub fn getContentResolver<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::ContentResolver>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "getContentResolver", .descriptor == "()Landroid/content/ContentResolver;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "getContentResolver\0", "()Landroid/content/ContentResolver;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [bindService](https://developer.android.com/reference/android/test/IsolatedContext.html#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int))
///
/// Required features: "android-content-Intent", "android-content-ServiceConnection"
#[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "android-content-ServiceConnection")))]
pub fn bindService<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ServiceConnection>>, arg2: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "bindService", .descriptor == "(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "bindService\0", "(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [registerReceiver](https://developer.android.com/reference/android/test/IsolatedContext.html#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter))
///
/// Required features: "android-content-BroadcastReceiver", "android-content-Intent", "android-content-IntentFilter"
#[cfg(any(feature = "all", all(feature = "android-content-BroadcastReceiver", feature = "android-content-Intent", feature = "android-content-IntentFilter")))]
pub fn registerReceiver<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::BroadcastReceiver>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::IntentFilter>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::Intent>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "registerReceiver", .descriptor == "(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "registerReceiver\0", "(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [unregisterReceiver](https://developer.android.com/reference/android/test/IsolatedContext.html#unregisterReceiver(android.content.BroadcastReceiver))
///
/// Required features: "android-content-BroadcastReceiver"
#[cfg(any(feature = "all", all(feature = "android-content-BroadcastReceiver")))]
pub fn unregisterReceiver<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::BroadcastReceiver>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "unregisterReceiver", .descriptor == "(Landroid/content/BroadcastReceiver;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "unregisterReceiver\0", "(Landroid/content/BroadcastReceiver;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [sendBroadcast](https://developer.android.com/reference/android/test/IsolatedContext.html#sendBroadcast(android.content.Intent))
///
/// Required features: "android-content-Intent"
#[cfg(any(feature = "all", all(feature = "android-content-Intent")))]
pub fn sendBroadcast<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "sendBroadcast", .descriptor == "(Landroid/content/Intent;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "sendBroadcast\0", "(Landroid/content/Intent;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [sendOrderedBroadcast](https://developer.android.com/reference/android/test/IsolatedContext.html#sendOrderedBroadcast(android.content.Intent,%20java.lang.String))
///
/// Required features: "android-content-Intent", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "java-lang-String")))]
pub fn sendOrderedBroadcast<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "sendOrderedBroadcast", .descriptor == "(Landroid/content/Intent;Ljava/lang/String;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "sendOrderedBroadcast\0", "(Landroid/content/Intent;Ljava/lang/String;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [checkUriPermission](https://developer.android.com/reference/android/test/IsolatedContext.html#checkUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int))
///
/// Required features: "android-net-Uri", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-lang-String")))]
pub fn checkUriPermission_Uri_String_String_int_int_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg3: i32, arg4: i32, arg5: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "checkUriPermission", .descriptor == "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;III)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3), __jni_bindgen::AsJValue::as_jvalue(&arg4), __jni_bindgen::AsJValue::as_jvalue(&arg5)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "checkUriPermission\0", "(Landroid/net/Uri;Ljava/lang/String;Ljava/lang/String;III)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [checkUriPermission](https://developer.android.com/reference/android/test/IsolatedContext.html#checkUriPermission(android.net.Uri,%20int,%20int,%20int))
///
/// Required features: "android-net-Uri"
#[cfg(any(feature = "all", all(feature = "android-net-Uri")))]
pub fn checkUriPermission_Uri_int_int_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, arg1: i32, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "checkUriPermission", .descriptor == "(Landroid/net/Uri;III)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "checkUriPermission\0", "(Landroid/net/Uri;III)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSystemService](https://developer.android.com/reference/android/test/IsolatedContext.html#getSystemService(java.lang.String))
///
/// Required features: "java-lang-Object", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-Object", feature = "java-lang-String")))]
pub fn getSystemService<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Object>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "getSystemService", .descriptor == "(Ljava/lang/String;)Ljava/lang/Object;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "getSystemService\0", "(Ljava/lang/String;)Ljava/lang/Object;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getFilesDir](https://developer.android.com/reference/android/test/IsolatedContext.html#getFilesDir())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn getFilesDir<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/test/IsolatedContext", java.flags == PUBLIC, .name == "getFilesDir", .descriptor == "()Ljava/io/File;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/test/IsolatedContext\0", "getFilesDir\0", "()Ljava/io/File;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}