Android.Test.Mock.MockPackageManager Members

The members of Android.Test.Mock.MockPackageManager are listed below.

See Also: Inherited members from Android.Content.PM.PackageManager

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
override
DefaultActivityIconAndroid.Graphics.Drawables.Drawable. Return the generic icon for an activity that is used when no specific icon is defined.
[read-only]
override
IsSafeModebool. Return whether the device has been booted into safe mode.
[read-only]
override
PackageInstallerAndroid.Content.PM.PackageInstaller. Documentation for this section has not yet been entered.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

override
AddPackageToPreferred(string)
override
AddPermission(Android.Content.PM.PermissionInfo) : bool
Add a new dynamic permission to the system.
override
AddPermissionAsync(Android.Content.PM.PermissionInfo) : bool
Like Android.Content.PM.PackageManager.AddPermission(Android.Content.PM.PermissionInfo) but asynchronously persists the package manager state after returning from the call, allowing it to return quicker and batch a series of adds at the expense of no guarantee the added permission will be retained if the device is rebooted before it is written.
override
AddPreferredActivity(Android.Content.IntentFilter, Android.Content.MatchResults, Android.Content.ComponentName[], Android.Content.ComponentName)
override
CanonicalToCurrentPackageNames(string[]) : string[]
Map from a packages canonical name to the current name in use on the device.
override
CheckPermission(string, string) : Android.Content.PM.Permission
Check whether a particular package has been granted a particular permission.
override
CheckSignatures(int, int) : Android.Content.PM.SignatureResult
Like Android.Content.PM.PackageManager.CheckSignatures(string, System.String), but takes UIDs of the two packages to be checked.
override
CheckSignatures(string, string) : Android.Content.PM.SignatureResult
Compare the signatures of two packages to determine if the same signature appears in both of them.
override
ClearPackagePreferredActivities(string)
Remove all preferred activity mappings, previously added with Android.Content.PM.PackageManager.AddPreferredActivity(Android.Content.IntentFilter, Android.Content.MatchResults, Android.Content.MatchResults, Android.Content.MatchResults), from the system whose activities are implemented in the given package name.
override
CurrentToCanonicalPackageNames(string[]) : string[]
Map from the current package names in use on the device to whatever the current canonical name of that package is.
override
ExtendVerificationTimeout(int, Android.Content.PM.PackageInstallVerification, long)
Allows a package listening to the Android.Content.Intent.ActionPackageNeedsVerification to extend the default timeout for a response and declare what action to perform after the timeout occurs.
override
GetActivityBanner(Android.Content.ComponentName) : Android.Graphics.Drawables.Drawable
Retrieve the banner associated with an activity.
override
GetActivityBanner(Android.Content.Intent) : Android.Graphics.Drawables.Drawable
Retrieve the banner associated with an Intent.
override
GetActivityIcon(Android.Content.ComponentName) : Android.Graphics.Drawables.Drawable
Retrieve the icon associated with an activity.
override
GetActivityIcon(Android.Content.Intent) : Android.Graphics.Drawables.Drawable
Retrieve the icon associated with an Intent.
override
GetActivityInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.ActivityInfo
Retrieve all of the information we know about a particular activity class.
override
GetActivityLogo(Android.Content.ComponentName) : Android.Graphics.Drawables.Drawable
Retrieve the logo associated with an activity.
override
GetActivityLogo(Android.Content.Intent) : Android.Graphics.Drawables.Drawable
Retrieve the logo associated with an Intent.
override
GetAllPermissionGroups(Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.PermissionGroupInfo>
Retrieve all of the known permission groups in the system.
override
GetApplicationBanner(Android.Content.PM.ApplicationInfo) : Android.Graphics.Drawables.Drawable
Retrieve the banner associated with an application.
override
GetApplicationBanner(string) : Android.Graphics.Drawables.Drawable
Retrieve the banner associated with an application.
override
GetApplicationEnabledSetting(string) : Android.Content.PM.ComponentEnabledState
Return the enabled setting for an application.
override
GetApplicationIcon(Android.Content.PM.ApplicationInfo) : Android.Graphics.Drawables.Drawable
Retrieve the icon associated with an application.
override
GetApplicationIcon(string) : Android.Graphics.Drawables.Drawable
Retrieve the icon associated with an application.
override
GetApplicationInfo(string, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.ApplicationInfo
Retrieve all of the information we know about a particular package/application.
GetApplicationLabel(Android.Content.PM.ApplicationInfo) : string
Documentation for this section has not yet been entered.
override
GetApplicationLabelFormatted(Android.Content.PM.ApplicationInfo) : Java.Lang.ICharSequence
Return the label to use for this application.
override
GetApplicationLogo(Android.Content.PM.ApplicationInfo) : Android.Graphics.Drawables.Drawable
Retrieve the logo associated with an application.
override
GetApplicationLogo(string) : Android.Graphics.Drawables.Drawable
Retrieve the logo associated with an application.
override
GetComponentEnabledSetting(Android.Content.ComponentName) : Android.Content.PM.ComponentEnabledState
Return the enabled setting for a package component (activity, receiver, service, provider).
override
GetDrawable(string, int, Android.Content.PM.ApplicationInfo) : Android.Graphics.Drawables.Drawable
Retrieve an image from a package.
override
GetInstalledApplications(Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.ApplicationInfo>
Return a List of all application packages that are installed on the device.
override
GetInstalledPackages(Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.PackageInfo>
Return a List of all packages that are installed on the device.
override
GetInstallerPackageName(string) : string
Retrieve the package name of the application that installed a package.
override
GetInstrumentationInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.InstrumentationInfo
Retrieve all of the information we know about a particular instrumentation class.
override
GetLaunchIntentForPackage(string) : Android.Content.Intent
Returns a "good" intent to launch a front-door activity in a package.
override
GetLeanbackLaunchIntentForPackage(string) : Android.Content.Intent
Return a "good" intent to launch a front-door Leanback activity in a package, for use for example to implement an "open" button when browsing through packages.
override
GetNameForUid(int) : string
Retrieve the official name associated with a user id.
override
GetPackageGids(string) : int[]
Return an array of all of the secondary group-ids that have been assigned to a package.
override
GetPackageInfo(string, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.PackageInfo
Retrieve overall information about an application package that is installed on the system.
override
GetPackagesForUid(int) : string[]
Retrieve the names of all packages that are associated with a particular user id.
override
GetPackagesHoldingPermissions(string[], Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.PackageInfo>
Return a List of all installed packages that are currently holding any of the given permissions.
override
GetPermissionGroupInfo(string, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.PermissionGroupInfo
Retrieve all of the information we know about a particular group of permissions.
override
GetPermissionInfo(string, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.PermissionInfo
Retrieve all of the information we know about a particular permission.
override
GetPreferredActivities(IList<Android.Content.IntentFilter>, IList<Android.Content.ComponentName>, string) : int
Documentation for this section has not yet been entered.
override
GetPreferredPackages(Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.PackageInfo>
Retrieve the list of all currently configured preferred packages.
override
GetProviderInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.ProviderInfo
Retrieve all of the information we know about a particular content provider class.
override
GetReceiverInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.ActivityInfo
Retrieve all of the information we know about a particular receiver class.
override
GetResourcesForActivity(Android.Content.ComponentName) : Android.Content.Res.Resources
Retrieve the resources associated with an activity.
override
GetResourcesForApplication(Android.Content.PM.ApplicationInfo) : Android.Content.Res.Resources
Retrieve the resources for an application.
override
GetResourcesForApplication(string) : Android.Content.Res.Resources
Retrieve the resources associated with an application.
override
GetServiceInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.ServiceInfo
Retrieve all of the information we know about a particular service class.
override
GetSystemAvailableFeatures() : Android.Content.PM.FeatureInfo[]
Get a list of features that are available on the system.
override
GetSystemSharedLibraryNames() : string[]
Get a list of shared libraries that are available on the system.
GetText(string, int, Android.Content.PM.ApplicationInfo) : string
Documentation for this section has not yet been entered.
override
GetTextFormatted(string, int, Android.Content.PM.ApplicationInfo) : Java.Lang.ICharSequence
Retrieve text from a package.
override
GetUserBadgedDrawableForDensity(Android.Graphics.Drawables.Drawable, Android.OS.UserHandle, Android.Graphics.Rect, int) : Android.Graphics.Drawables.Drawable
If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a badged copy of the given drawable allowing the user to distinguish it from the original drawable.
override
GetUserBadgedIcon(Android.Graphics.Drawables.Drawable, Android.OS.UserHandle) : Android.Graphics.Drawables.Drawable
If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a badged copy of the given icon to be able to distinguish it from the original icon.
GetUserBadgedLabel(string, Android.OS.UserHandle) : string
Documentation for this section has not yet been entered.
override
GetUserBadgedLabelFormatted(Java.Lang.ICharSequence, Android.OS.UserHandle) : Java.Lang.ICharSequence
If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a copy of the label with badging for accessibility services like talkback.
override
GetXml(string, int, Android.Content.PM.ApplicationInfo) : System.Xml.XmlReader
Retrieve an XML file from a package.
override
HasSystemFeature(string) : bool
Check whether the given feature name is one of the available features as returned by Android.Content.PM.PackageManager.GetSystemAvailableFeatures.
override
QueryBroadcastReceivers(Android.Content.Intent, Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.ResolveInfo>
Retrieve all receivers that can handle a broadcast of the given intent.
override
QueryContentProviders(string, int, Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.ProviderInfo>
Retrieve content provider information.
override
QueryInstrumentation(string, Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.InstrumentationInfo>
Retrieve information about available instrumentation code.
override
QueryIntentActivities(Android.Content.Intent, Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.ResolveInfo>
Retrieve all activities that can be performed for the given intent.
override
QueryIntentActivityOptions(Android.Content.ComponentName, Android.Content.Intent[], Android.Content.Intent, Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.ResolveInfo>
Retrieve a set of activities that should be presented to the user as similar options.
override
QueryIntentContentProviders(Android.Content.Intent, Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.ResolveInfo>
Retrieve all providers that can match the given intent.
override
QueryIntentServices(Android.Content.Intent, Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.ResolveInfo>
Retrieve all services that can match the given intent.
override
QueryPermissionsByGroup(string, Android.Content.PM.PackageInfoFlags) : IList<Android.Content.PM.PermissionInfo>
Query for all of the permissions associated with a particular group.
override
RemovePackageFromPreferred(string)
override
RemovePermission(string)
Removes a permission that was previously added with Android.Content.PM.PackageManager.AddPermission(Android.Content.PM.PermissionInfo).
override
ResolveActivity(Android.Content.Intent, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.ResolveInfo
Determine the best action to perform for a given Intent.
override
ResolveContentProvider(string, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.ProviderInfo
Find a single content provider by its base path name.
override
ResolveService(Android.Content.Intent, Android.Content.PM.PackageInfoFlags) : Android.Content.PM.ResolveInfo
Determine the best service to handle for a given Intent.
override
SetApplicationEnabledSetting(string, Android.Content.PM.ComponentEnabledState, Android.Content.PM.ComponentEnableOption)
Set the enabled setting for an application This setting will override any enabled state which may have been set by the application in its manifest.
override
SetComponentEnabledSetting(Android.Content.ComponentName, Android.Content.PM.ComponentEnabledState, Android.Content.PM.ComponentEnableOption)
Set the enabled setting for a package component (activity, receiver, service, provider).
override
SetInstallerPackageName(string, string)
Change the installer associated with a given package.
override
VerifyPendingInstall(int, Android.Content.PM.PackageInstallVerification)
Allows a package listening to the Android.Content.Intent.ActionPackageNeedsVerification to respond to the package manager.