#[cfg(any(feature = "all", feature = "android-content-pm-ApplicationInfo"))]
__jni_bindgen! {
public class ApplicationInfo ("android/content/pm/ApplicationInfo") extends crate::android::content::pm::PackageItemInfo, implements crate::android::os::Parcelable {
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::ApplicationInfo>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/ApplicationInfo\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-content-pm-ApplicationInfo")))]
pub fn new_ApplicationInfo<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::pm::ApplicationInfo>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::ApplicationInfo>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/ApplicationInfo\0", "<init>\0", "(Landroid/content/pm/ApplicationInfo;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-util-Printer", feature = "java-lang-String")))]
pub fn dump<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::Printer>>, 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>> {
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/content/pm/ApplicationInfo\0", "dump\0", "(Landroid/util/Printer;Ljava/lang/String;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn toString<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/content/pm/ApplicationInfo\0", "toString\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/content/pm/ApplicationInfo\0", "describeContents\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn writeToParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/ApplicationInfo\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-content-pm-PackageManager", feature = "java-lang-CharSequence")))]
pub fn loadDescription<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::pm::PackageManager>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/content/pm/ApplicationInfo\0", "loadDescription\0", "(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn taskAffinity<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "taskAffinity\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_taskAffinity<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "taskAffinity\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn permission<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "permission\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_permission<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "permission\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn processName<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "processName\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_processName<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "processName\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn className<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "className\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_className<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "className\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn descriptionRes<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "descriptionRes\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_descriptionRes<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "descriptionRes\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn theme<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "theme\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_theme<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "theme\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn manageSpaceActivityName<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "manageSpaceActivityName\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_manageSpaceActivityName<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "manageSpaceActivityName\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn backupAgentName<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "backupAgentName\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_backupAgentName<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "backupAgentName\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub const FLAG_SYSTEM : i32 = 1;
pub const FLAG_DEBUGGABLE : i32 = 2;
pub const FLAG_HAS_CODE : i32 = 4;
pub const FLAG_PERSISTENT : i32 = 8;
pub const FLAG_FACTORY_TEST : i32 = 16;
pub const FLAG_ALLOW_TASK_REPARENTING : i32 = 32;
pub const FLAG_ALLOW_CLEAR_USER_DATA : i32 = 64;
pub const FLAG_UPDATED_SYSTEM_APP : i32 = 128;
pub const FLAG_TEST_ONLY : i32 = 256;
pub const FLAG_SUPPORTS_SMALL_SCREENS : i32 = 512;
pub const FLAG_SUPPORTS_NORMAL_SCREENS : i32 = 1024;
pub const FLAG_SUPPORTS_LARGE_SCREENS : i32 = 2048;
pub const FLAG_RESIZEABLE_FOR_SCREENS : i32 = 4096;
pub const FLAG_SUPPORTS_SCREEN_DENSITIES : i32 = 8192;
pub const FLAG_VM_SAFE_MODE : i32 = 16384;
pub const FLAG_ALLOW_BACKUP : i32 = 32768;
pub const FLAG_KILL_AFTER_RESTORE : i32 = 65536;
pub const FLAG_RESTORE_ANY_VERSION : i32 = 131072;
pub const FLAG_EXTERNAL_STORAGE : i32 = 262144;
pub const FLAG_SUPPORTS_XLARGE_SCREENS : i32 = 524288;
pub const FLAG_LARGE_HEAP : i32 = 1048576;
pub fn flags<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "flags\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_flags<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "flags\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn sourceDir<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "sourceDir\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_sourceDir<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "sourceDir\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn publicSourceDir<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "publicSourceDir\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_publicSourceDir<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "publicSourceDir\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn sharedLibraryFiles<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "sharedLibraryFiles\0", "[Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_sharedLibraryFiles<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "sharedLibraryFiles\0", "[Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn dataDir<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "dataDir\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_dataDir<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "dataDir\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn nativeLibraryDir<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "nativeLibraryDir\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_nativeLibraryDir<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "nativeLibraryDir\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn uid<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "uid\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_uid<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "uid\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn targetSdkVersion<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "targetSdkVersion\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_targetSdkVersion<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "targetSdkVersion\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn enabled<'env>(&'env self) -> bool {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "enabled\0", "Z\0");
env.get_boolean_field(self.0.object, __jni_field)
}
}
pub fn set_enabled<'env>(&'env self, value: bool) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/content/pm/ApplicationInfo\0", "enabled\0", "Z\0");
env.set_boolean_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-os-Parcelable_Creator"))]
pub fn CREATOR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Parcelable_Creator>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/content/pm/ApplicationInfo\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}