[]Struct jni_android_sys::android::content::pm::PackageManager

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

public class PackageManager

Required feature: "android-content-pm-PackageManager"

Methods

impl PackageManager

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, PackageManager>, Local<'env, Throwable>>
[src]

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

getPackageInfo

Required features: "android-content-pm-PackageInfo", "java-lang-String"

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

getPackageInfo

Required features: "android-content-pm-PackageInfo", "android-content-pm-VersionedPackage"

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

currentToCanonicalPackageNames

Required features: "java-lang-String"

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

canonicalToCurrentPackageNames

Required features: "java-lang-String"

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

getLaunchIntentForPackage

Required features: "android-content-Intent", "java-lang-String"

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

getLeanbackLaunchIntentForPackage

Required features: "android-content-Intent", "java-lang-String"

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

getPackageGids

Required features: "java-lang-String"

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

getPackageGids

Required features: "java-lang-String"

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

getPackageUid

Required features: "java-lang-String"

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

getPermissionInfo

Required features: "android-content-pm-PermissionInfo", "java-lang-String"

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

queryPermissionsByGroup

Required features: "java-lang-String", "java-util-List"

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

getPermissionGroupInfo

Required features: "android-content-pm-PermissionGroupInfo", "java-lang-String"

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

getAllPermissionGroups

Required features: "java-util-List"

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

getApplicationInfo

Required features: "android-content-pm-ApplicationInfo", "java-lang-String"

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

getActivityInfo

Required features: "android-content-ComponentName", "android-content-pm-ActivityInfo"

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

getReceiverInfo

Required features: "android-content-ComponentName", "android-content-pm-ActivityInfo"

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

getServiceInfo

Required features: "android-content-ComponentName", "android-content-pm-ServiceInfo"

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

getProviderInfo

Required features: "android-content-ComponentName", "android-content-pm-ProviderInfo"

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

getInstalledPackages

Required features: "java-util-List"

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

getPackagesHoldingPermissions

Required features: "java-lang-String", "java-util-List"

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

checkPermission

Required features: "java-lang-String"

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

isPermissionRevokedByPolicy

Required features: "java-lang-String"

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

addPermission

Required features: "android-content-pm-PermissionInfo"

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

addPermissionAsync

Required features: "android-content-pm-PermissionInfo"

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

removePermission

Required features: "java-lang-String"

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

checkSignatures

Required features: "java-lang-String"

pub fn checkSignatures_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getPackagesForUid<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]

getPackagesForUid

Required features: "java-lang-String"

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

getNameForUid

Required features: "java-lang-String"

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

getInstalledApplications

Required features: "java-util-List"

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

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

isInstantApp

Required features: "java-lang-String"

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

pub fn getInstantAppCookie<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]

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

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

pub fn getSystemSharedLibraryNames<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]

getSystemSharedLibraryNames

Required features: "java-lang-String"

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

getSharedLibraries

Required features: "java-util-List"

pub fn getChangedPackages<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, ChangedPackages>>, Local<'env, Throwable>>
[src]

getChangedPackages

Required features: "android-content-pm-ChangedPackages"

pub fn getSystemAvailableFeatures<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<FeatureInfo, Throwable>>>, Local<'env, Throwable>>
[src]

getSystemAvailableFeatures

Required features: "android-content-pm-FeatureInfo"

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

hasSystemFeature

Required features: "java-lang-String"

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

hasSystemFeature

Required features: "java-lang-String"

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

resolveActivity

Required features: "android-content-Intent", "android-content-pm-ResolveInfo"

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

queryIntentActivities

Required features: "android-content-Intent", "java-util-List"

pub fn queryIntentActivityOptions<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ComponentName>>,
    arg1: impl Into<Option<&'env ObjectArray<Intent, Throwable>>>,
    arg2: impl Into<Option<&'env Intent>>,
    arg3: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

queryIntentActivityOptions

Required features: "android-content-ComponentName", "android-content-Intent", "java-util-List"

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

queryBroadcastReceivers

Required features: "android-content-Intent", "java-util-List"

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

resolveService

Required features: "android-content-Intent", "android-content-pm-ResolveInfo"

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

queryIntentServices

Required features: "android-content-Intent", "java-util-List"

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

queryIntentContentProviders

Required features: "android-content-Intent", "java-util-List"

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

resolveContentProvider

Required features: "android-content-pm-ProviderInfo", "java-lang-String"

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

queryContentProviders

Required features: "java-lang-String", "java-util-List"

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

getInstrumentationInfo

Required features: "android-content-ComponentName", "android-content-pm-InstrumentationInfo"

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

queryInstrumentation

Required features: "java-lang-String", "java-util-List"

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

getDrawable

Required features: "android-content-pm-ApplicationInfo", "android-graphics-drawable-Drawable", "java-lang-String"

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

getActivityIcon

Required features: "android-content-ComponentName", "android-graphics-drawable-Drawable"

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

getActivityIcon

Required features: "android-content-Intent", "android-graphics-drawable-Drawable"

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

getActivityBanner

Required features: "android-content-ComponentName", "android-graphics-drawable-Drawable"

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

getActivityBanner

Required features: "android-content-Intent", "android-graphics-drawable-Drawable"

pub fn getDefaultActivityIcon<'env>(
    &'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]

getDefaultActivityIcon

Required features: "android-graphics-drawable-Drawable"

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

getApplicationIcon

Required features: "android-content-pm-ApplicationInfo", "android-graphics-drawable-Drawable"

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

getApplicationIcon

Required features: "android-graphics-drawable-Drawable", "java-lang-String"

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

getApplicationBanner

Required features: "android-content-pm-ApplicationInfo", "android-graphics-drawable-Drawable"

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

getApplicationBanner

Required features: "android-graphics-drawable-Drawable", "java-lang-String"

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

getActivityLogo

Required features: "android-content-ComponentName", "android-graphics-drawable-Drawable"

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

getActivityLogo

Required features: "android-content-Intent", "android-graphics-drawable-Drawable"

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

getApplicationLogo

Required features: "android-content-pm-ApplicationInfo", "android-graphics-drawable-Drawable"

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

getApplicationLogo

Required features: "android-graphics-drawable-Drawable", "java-lang-String"

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

getUserBadgedIcon

Required features: "android-graphics-drawable-Drawable", "android-os-UserHandle"

pub fn getUserBadgedDrawableForDensity<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Drawable>>,
    arg1: impl Into<Option<&'env UserHandle>>,
    arg2: impl Into<Option<&'env Rect>>,
    arg3: i32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]

getUserBadgedDrawableForDensity

Required features: "android-graphics-Rect", "android-graphics-drawable-Drawable", "android-os-UserHandle"

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

getUserBadgedLabel

Required features: "android-os-UserHandle", "java-lang-CharSequence"

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

getText

Required features: "android-content-pm-ApplicationInfo", "java-lang-CharSequence", "java-lang-String"

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

getXml

Required features: "android-content-pm-ApplicationInfo", "android-content-res-XmlResourceParser", "java-lang-String"

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

getApplicationLabel

Required features: "android-content-pm-ApplicationInfo", "java-lang-CharSequence"

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

getResourcesForActivity

Required features: "android-content-ComponentName", "android-content-res-Resources"

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

getResourcesForApplication

Required features: "android-content-pm-ApplicationInfo", "android-content-res-Resources"

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

getResourcesForApplication

Required features: "android-content-res-Resources", "java-lang-String"

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

getPackageArchiveInfo

Required features: "android-content-pm-PackageInfo", "java-lang-String"

pub fn verifyPendingInstall<'env>(
    &'env self,
    arg0: i32,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

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

setInstallerPackageName

Required features: "java-lang-String"

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

getInstallerPackageName

Required features: "java-lang-String"

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

Deprecated

addPackageToPreferred

Required features: "java-lang-String"

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

Deprecated

removePackageFromPreferred

Required features: "java-lang-String"

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

getPreferredPackages

Required features: "java-util-List"

pub fn addPreferredActivity<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntentFilter>>,
    arg1: i32,
    arg2: impl Into<Option<&'env ObjectArray<ComponentName, Throwable>>>,
    arg3: impl Into<Option<&'env ComponentName>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

addPreferredActivity

Required features: "android-content-ComponentName", "android-content-IntentFilter"

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

clearPackagePreferredActivities

Required features: "java-lang-String"

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

getPreferredActivities

Required features: "java-lang-String", "java-util-List"

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

setComponentEnabledSetting

Required features: "android-content-ComponentName"

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

getComponentEnabledSetting

Required features: "android-content-ComponentName"

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

setApplicationEnabledSetting

Required features: "java-lang-String"

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

getApplicationEnabledSetting

Required features: "java-lang-String"

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

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

pub fn getSuspendedPackageAppExtras<'env>(
    &'env self
) -> Result<Option<Local<'env, Bundle>>, Local<'env, Throwable>>
[src]

getSuspendedPackageAppExtras

Required features: "android-os-Bundle"

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

setApplicationCategoryHint

Required features: "java-lang-String"

pub fn getPackageInstaller<'env>(
    &'env self
) -> Result<Option<Local<'env, PackageInstaller>>, Local<'env, Throwable>>
[src]

getPackageInstaller

Required features: "android-content-pm-PackageInstaller"

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

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

hasSigningCertificate

Required features: "java-lang-String"

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

pub const CERT_INPUT_RAW_X509: i32[src]

public static final CERT_INPUT_RAW_X509

pub const CERT_INPUT_SHA256: i32[src]

public static final CERT_INPUT_SHA256

pub const COMPONENT_ENABLED_STATE_DEFAULT: i32[src]

public static final COMPONENT_ENABLED_STATE_DEFAULT

pub const COMPONENT_ENABLED_STATE_DISABLED: i32[src]

pub const COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED: i32[src]

pub const COMPONENT_ENABLED_STATE_DISABLED_USER: i32[src]

pub const COMPONENT_ENABLED_STATE_ENABLED: i32[src]

public static final COMPONENT_ENABLED_STATE_ENABLED

pub const DONT_KILL_APP: i32[src]

public static final DONT_KILL_APP

pub const EXTRA_VERIFICATION_ID: &'static str[src]

public static final EXTRA_VERIFICATION_ID

pub const EXTRA_VERIFICATION_RESULT: &'static str[src]

public static final EXTRA_VERIFICATION_RESULT

pub const FEATURE_ACTIVITIES_ON_SECONDARY_DISPLAYS: &'static str[src]

pub const FEATURE_APP_WIDGETS: &'static str[src]

public static final FEATURE_APP_WIDGETS

pub const FEATURE_AUDIO_LOW_LATENCY: &'static str[src]

public static final FEATURE_AUDIO_LOW_LATENCY

pub const FEATURE_AUDIO_OUTPUT: &'static str[src]

public static final FEATURE_AUDIO_OUTPUT

pub const FEATURE_AUDIO_PRO: &'static str[src]

public static final FEATURE_AUDIO_PRO

pub const FEATURE_AUTOFILL: &'static str[src]

public static final FEATURE_AUTOFILL

pub const FEATURE_AUTOMOTIVE: &'static str[src]

public static final FEATURE_AUTOMOTIVE

pub const FEATURE_BACKUP: &'static str[src]

public static final FEATURE_BACKUP

pub const FEATURE_BLUETOOTH: &'static str[src]

public static final FEATURE_BLUETOOTH

pub const FEATURE_BLUETOOTH_LE: &'static str[src]

public static final FEATURE_BLUETOOTH_LE

pub const FEATURE_CAMERA: &'static str[src]

public static final FEATURE_CAMERA

pub const FEATURE_CAMERA_ANY: &'static str[src]

public static final FEATURE_CAMERA_ANY

pub const FEATURE_CAMERA_AR: &'static str[src]

public static final FEATURE_CAMERA_AR

pub const FEATURE_CAMERA_AUTOFOCUS: &'static str[src]

public static final FEATURE_CAMERA_AUTOFOCUS

pub const FEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING: &'static str[src]

pub const FEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR: &'static str[src]

pub const FEATURE_CAMERA_CAPABILITY_RAW: &'static str[src]

public static final FEATURE_CAMERA_CAPABILITY_RAW

pub const FEATURE_CAMERA_EXTERNAL: &'static str[src]

public static final FEATURE_CAMERA_EXTERNAL

pub const FEATURE_CAMERA_FLASH: &'static str[src]

public static final FEATURE_CAMERA_FLASH

pub const FEATURE_CAMERA_FRONT: &'static str[src]

public static final FEATURE_CAMERA_FRONT

pub const FEATURE_CAMERA_LEVEL_FULL: &'static str[src]

public static final FEATURE_CAMERA_LEVEL_FULL

pub const FEATURE_CANT_SAVE_STATE: &'static str[src]

public static final FEATURE_CANT_SAVE_STATE

pub const FEATURE_COMPANION_DEVICE_SETUP: &'static str[src]

public static final FEATURE_COMPANION_DEVICE_SETUP

pub const FEATURE_CONNECTION_SERVICE: &'static str[src]

public static final FEATURE_CONNECTION_SERVICE

pub const FEATURE_CONSUMER_IR: &'static str[src]

public static final FEATURE_CONSUMER_IR

pub const FEATURE_DEVICE_ADMIN: &'static str[src]

public static final FEATURE_DEVICE_ADMIN

pub const FEATURE_EMBEDDED: &'static str[src]

public static final FEATURE_EMBEDDED

pub const FEATURE_ETHERNET: &'static str[src]

public static final FEATURE_ETHERNET

pub const FEATURE_FAKETOUCH: &'static str[src]

public static final FEATURE_FAKETOUCH

pub const FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT: &'static str[src]

pub const FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND: &'static str[src]

pub const FEATURE_FINGERPRINT: &'static str[src]

public static final FEATURE_FINGERPRINT

pub const FEATURE_FREEFORM_WINDOW_MANAGEMENT: &'static str[src]

pub const FEATURE_GAMEPAD: &'static str[src]

public static final FEATURE_GAMEPAD

pub const FEATURE_HIFI_SENSORS: &'static str[src]

public static final FEATURE_HIFI_SENSORS

pub const FEATURE_HOME_SCREEN: &'static str[src]

public static final FEATURE_HOME_SCREEN

pub const FEATURE_INPUT_METHODS: &'static str[src]

public static final FEATURE_INPUT_METHODS

pub const FEATURE_LEANBACK: &'static str[src]

public static final FEATURE_LEANBACK

pub const FEATURE_LEANBACK_ONLY: &'static str[src]

public static final FEATURE_LEANBACK_ONLY

pub const FEATURE_LIVE_TV: &'static str[src]

public static final FEATURE_LIVE_TV

pub const FEATURE_LIVE_WALLPAPER: &'static str[src]

public static final FEATURE_LIVE_WALLPAPER

pub const FEATURE_LOCATION: &'static str[src]

public static final FEATURE_LOCATION

pub const FEATURE_LOCATION_GPS: &'static str[src]

public static final FEATURE_LOCATION_GPS

pub const FEATURE_LOCATION_NETWORK: &'static str[src]

public static final FEATURE_LOCATION_NETWORK

pub const FEATURE_MANAGED_USERS: &'static str[src]

public static final FEATURE_MANAGED_USERS

pub const FEATURE_MICROPHONE: &'static str[src]

public static final FEATURE_MICROPHONE

pub const FEATURE_MIDI: &'static str[src]

public static final FEATURE_MIDI

pub const FEATURE_NFC: &'static str[src]

public static final FEATURE_NFC

pub const FEATURE_NFC_HOST_CARD_EMULATION: &'static str[src]

public static final FEATURE_NFC_HOST_CARD_EMULATION

pub const FEATURE_NFC_HOST_CARD_EMULATION_NFCF: &'static str[src]

pub const FEATURE_OPENGLES_EXTENSION_PACK: &'static str[src]

public static final FEATURE_OPENGLES_EXTENSION_PACK

pub const FEATURE_PC: &'static str[src]

public static final FEATURE_PC

pub const FEATURE_PICTURE_IN_PICTURE: &'static str[src]

public static final FEATURE_PICTURE_IN_PICTURE

pub const FEATURE_PRINTING: &'static str[src]

public static final FEATURE_PRINTING

pub const FEATURE_RAM_LOW: &'static str[src]

public static final FEATURE_RAM_LOW

pub const FEATURE_RAM_NORMAL: &'static str[src]

public static final FEATURE_RAM_NORMAL

pub const FEATURE_SCREEN_LANDSCAPE: &'static str[src]

public static final FEATURE_SCREEN_LANDSCAPE

pub const FEATURE_SCREEN_PORTRAIT: &'static str[src]

public static final FEATURE_SCREEN_PORTRAIT

pub const FEATURE_SECURELY_REMOVES_USERS: &'static str[src]

public static final FEATURE_SECURELY_REMOVES_USERS

pub const FEATURE_SENSOR_ACCELEROMETER: &'static str[src]

public static final FEATURE_SENSOR_ACCELEROMETER

pub const FEATURE_SENSOR_AMBIENT_TEMPERATURE: &'static str[src]

pub const FEATURE_SENSOR_BAROMETER: &'static str[src]

public static final FEATURE_SENSOR_BAROMETER

pub const FEATURE_SENSOR_COMPASS: &'static str[src]

public static final FEATURE_SENSOR_COMPASS

pub const FEATURE_SENSOR_GYROSCOPE: &'static str[src]

public static final FEATURE_SENSOR_GYROSCOPE

pub const FEATURE_SENSOR_HEART_RATE: &'static str[src]

public static final FEATURE_SENSOR_HEART_RATE

pub const FEATURE_SENSOR_HEART_RATE_ECG: &'static str[src]

public static final FEATURE_SENSOR_HEART_RATE_ECG

pub const FEATURE_SENSOR_LIGHT: &'static str[src]

public static final FEATURE_SENSOR_LIGHT

pub const FEATURE_SENSOR_PROXIMITY: &'static str[src]

public static final FEATURE_SENSOR_PROXIMITY

pub const FEATURE_SENSOR_RELATIVE_HUMIDITY: &'static str[src]

pub const FEATURE_SENSOR_STEP_COUNTER: &'static str[src]

public static final FEATURE_SENSOR_STEP_COUNTER

pub const FEATURE_SENSOR_STEP_DETECTOR: &'static str[src]

public static final FEATURE_SENSOR_STEP_DETECTOR

pub const FEATURE_SIP: &'static str[src]

public static final FEATURE_SIP

pub const FEATURE_SIP_VOIP: &'static str[src]

public static final FEATURE_SIP_VOIP

pub const FEATURE_STRONGBOX_KEYSTORE: &'static str[src]

public static final FEATURE_STRONGBOX_KEYSTORE

pub const FEATURE_TELEPHONY: &'static str[src]

public static final FEATURE_TELEPHONY

pub const FEATURE_TELEPHONY_CDMA: &'static str[src]

public static final FEATURE_TELEPHONY_CDMA

pub const FEATURE_TELEPHONY_EUICC: &'static str[src]

public static final FEATURE_TELEPHONY_EUICC

pub const FEATURE_TELEPHONY_GSM: &'static str[src]

public static final FEATURE_TELEPHONY_GSM

pub const FEATURE_TELEPHONY_MBMS: &'static str[src]

public static final FEATURE_TELEPHONY_MBMS

pub const FEATURE_TELEVISION: &'static str[src]

Deprecated

public static final FEATURE_TELEVISION

pub const FEATURE_TOUCHSCREEN: &'static str[src]

public static final FEATURE_TOUCHSCREEN

pub const FEATURE_TOUCHSCREEN_MULTITOUCH: &'static str[src]

public static final FEATURE_TOUCHSCREEN_MULTITOUCH

pub const FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT: &'static str[src]

pub const FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND: &'static str[src]

pub const FEATURE_USB_ACCESSORY: &'static str[src]

public static final FEATURE_USB_ACCESSORY

pub const FEATURE_USB_HOST: &'static str[src]

public static final FEATURE_USB_HOST

pub const FEATURE_VERIFIED_BOOT: &'static str[src]

public static final FEATURE_VERIFIED_BOOT

pub const FEATURE_VR_HEADTRACKING: &'static str[src]

public static final FEATURE_VR_HEADTRACKING

pub const FEATURE_VR_MODE: &'static str[src]

Deprecated

public static final FEATURE_VR_MODE

pub const FEATURE_VR_MODE_HIGH_PERFORMANCE: &'static str[src]

pub const FEATURE_VULKAN_HARDWARE_COMPUTE: &'static str[src]

public static final FEATURE_VULKAN_HARDWARE_COMPUTE

pub const FEATURE_VULKAN_HARDWARE_LEVEL: &'static str[src]

public static final FEATURE_VULKAN_HARDWARE_LEVEL

pub const FEATURE_VULKAN_HARDWARE_VERSION: &'static str[src]

public static final FEATURE_VULKAN_HARDWARE_VERSION

pub const FEATURE_WATCH: &'static str[src]

public static final FEATURE_WATCH

pub const FEATURE_WEBVIEW: &'static str[src]

public static final FEATURE_WEBVIEW

pub const FEATURE_WIFI: &'static str[src]

public static final FEATURE_WIFI

pub const FEATURE_WIFI_AWARE: &'static str[src]

public static final FEATURE_WIFI_AWARE

pub const FEATURE_WIFI_DIRECT: &'static str[src]

public static final FEATURE_WIFI_DIRECT

pub const FEATURE_WIFI_PASSPOINT: &'static str[src]

public static final FEATURE_WIFI_PASSPOINT

pub const FEATURE_WIFI_RTT: &'static str[src]

public static final FEATURE_WIFI_RTT

pub const GET_ACTIVITIES: i32[src]

public static final GET_ACTIVITIES

pub const GET_CONFIGURATIONS: i32[src]

public static final GET_CONFIGURATIONS

pub const GET_DISABLED_COMPONENTS: i32[src]

Deprecated

public static final GET_DISABLED_COMPONENTS

pub const GET_DISABLED_UNTIL_USED_COMPONENTS: i32[src]

Deprecated

pub const GET_GIDS: i32[src]

public static final GET_GIDS

pub const GET_INSTRUMENTATION: i32[src]

public static final GET_INSTRUMENTATION

pub const GET_INTENT_FILTERS: i32[src]

public static final GET_INTENT_FILTERS

pub const GET_META_DATA: i32[src]

public static final GET_META_DATA

pub const GET_PERMISSIONS: i32[src]

public static final GET_PERMISSIONS

pub const GET_PROVIDERS: i32[src]

public static final GET_PROVIDERS

pub const GET_RECEIVERS: i32[src]

public static final GET_RECEIVERS

pub const GET_RESOLVED_FILTER: i32[src]

public static final GET_RESOLVED_FILTER

pub const GET_SERVICES: i32[src]

public static final GET_SERVICES

pub const GET_SHARED_LIBRARY_FILES: i32[src]

public static final GET_SHARED_LIBRARY_FILES

pub const GET_SIGNATURES: i32[src]

Deprecated

public static final GET_SIGNATURES

pub const GET_SIGNING_CERTIFICATES: i32[src]

public static final GET_SIGNING_CERTIFICATES

pub const GET_UNINSTALLED_PACKAGES: i32[src]

Deprecated

public static final GET_UNINSTALLED_PACKAGES

pub const GET_URI_PERMISSION_PATTERNS: i32[src]

public static final GET_URI_PERMISSION_PATTERNS

pub const INSTALL_REASON_DEVICE_RESTORE: i32[src]

public static final INSTALL_REASON_DEVICE_RESTORE

pub const INSTALL_REASON_DEVICE_SETUP: i32[src]

public static final INSTALL_REASON_DEVICE_SETUP

pub const INSTALL_REASON_POLICY: i32[src]

public static final INSTALL_REASON_POLICY

pub const INSTALL_REASON_UNKNOWN: i32[src]

public static final INSTALL_REASON_UNKNOWN

pub const INSTALL_REASON_USER: i32[src]

public static final INSTALL_REASON_USER

pub const MATCH_ALL: i32[src]

public static final MATCH_ALL

pub const MATCH_DEFAULT_ONLY: i32[src]

public static final MATCH_DEFAULT_ONLY

pub const MATCH_DIRECT_BOOT_AWARE: i32[src]

public static final MATCH_DIRECT_BOOT_AWARE

pub const MATCH_DIRECT_BOOT_UNAWARE: i32[src]

public static final MATCH_DIRECT_BOOT_UNAWARE

pub const MATCH_DISABLED_COMPONENTS: i32[src]

public static final MATCH_DISABLED_COMPONENTS

pub const MATCH_DISABLED_UNTIL_USED_COMPONENTS: i32[src]

pub const MATCH_SYSTEM_ONLY: i32[src]

public static final MATCH_SYSTEM_ONLY

pub const MATCH_UNINSTALLED_PACKAGES: i32[src]

public static final MATCH_UNINSTALLED_PACKAGES

pub const MAXIMUM_VERIFICATION_TIMEOUT: i64[src]

public static final MAXIMUM_VERIFICATION_TIMEOUT

pub const PERMISSION_DENIED: i32[src]

public static final PERMISSION_DENIED

pub const PERMISSION_GRANTED: i32[src]

public static final PERMISSION_GRANTED

pub const SIGNATURE_FIRST_NOT_SIGNED: i32[src]

public static final SIGNATURE_FIRST_NOT_SIGNED

pub const SIGNATURE_MATCH: i32[src]

public static final SIGNATURE_MATCH

pub const SIGNATURE_NEITHER_SIGNED: i32[src]

public static final SIGNATURE_NEITHER_SIGNED

pub const SIGNATURE_NO_MATCH: i32[src]

public static final SIGNATURE_NO_MATCH

pub const SIGNATURE_SECOND_NOT_SIGNED: i32[src]

public static final SIGNATURE_SECOND_NOT_SIGNED

pub const SIGNATURE_UNKNOWN_PACKAGE: i32[src]

public static final SIGNATURE_UNKNOWN_PACKAGE

pub const VERIFICATION_ALLOW: i32[src]

public static final VERIFICATION_ALLOW

pub const VERIFICATION_REJECT: i32[src]

public static final VERIFICATION_REJECT

pub const VERSION_CODE_HIGHEST: i32[src]

public static final VERSION_CODE_HIGHEST

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 PackageManager

impl AsValidJObjectAndEnv for PackageManager

impl Deref for PackageManager

type Target = Object

The resulting type after dereferencing.

impl JniType for PackageManager

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.