The methods of Android.Test.Mock.MockPackageManager are listed below. For a list of all members, see the MockPackageManager Members list.
See Also: Inherited members from Android.Content.PM.PackageManager
override | AddPackageToPreferred(string) | |
override | AddPermission(Android.Content.PM.PermissionInfo)Add a new dynamic permission to the system. | |
override | AddPermissionAsync(Android.Content.PM.PermissionInfo)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[])Map from a packages canonical name to the current name in use on the device. | |
override | CheckPermission(string, string)Check whether a particular package has been granted a particular permission. | |
override | CheckSignatures(int, int)Like Android.Content.PM.PackageManager.CheckSignatures(string, System.String), but takes UIDs of the two packages to be checked. | |
override | CheckSignatures(string, string)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[])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)Retrieve the banner associated with an activity. | |
override | GetActivityBanner(Android.Content.Intent)Retrieve the banner associated with an Intent. | |
override | GetActivityIcon(Android.Content.ComponentName)Retrieve the icon associated with an activity. | |
override | GetActivityIcon(Android.Content.Intent)Retrieve the icon associated with an Intent. | |
override | GetActivityInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags)Retrieve all of the information we know about a particular activity class. | |
override | GetActivityLogo(Android.Content.ComponentName)Retrieve the logo associated with an activity. | |
override | GetActivityLogo(Android.Content.Intent)Retrieve the logo associated with an Intent. | |
override | GetAllPermissionGroups(Android.Content.PM.PackageInfoFlags)Retrieve all of the known permission groups in the system. | |
override | GetApplicationBanner(Android.Content.PM.ApplicationInfo)Retrieve the banner associated with an application. | |
override | GetApplicationBanner(string)Retrieve the banner associated with an application. | |
override | GetApplicationEnabledSetting(string)Return the enabled setting for an application. | |
override | GetApplicationIcon(Android.Content.PM.ApplicationInfo)Retrieve the icon associated with an application. | |
override | GetApplicationIcon(string)Retrieve the icon associated with an application. | |
override | GetApplicationInfo(string, Android.Content.PM.PackageInfoFlags)Retrieve all of the information we know about a particular package/application. | |
GetApplicationLabel(Android.Content.PM.ApplicationInfo)Documentation for this section has not yet been entered. | ||
override | GetApplicationLabelFormatted(Android.Content.PM.ApplicationInfo)Return the label to use for this application. | |
override | GetApplicationLogo(Android.Content.PM.ApplicationInfo)Retrieve the logo associated with an application. | |
override | GetApplicationLogo(string)Retrieve the logo associated with an application. | |
override | GetComponentEnabledSetting(Android.Content.ComponentName)Return the enabled setting for a package component (activity, receiver, service, provider). | |
override | GetDrawable(string, int, Android.Content.PM.ApplicationInfo)Retrieve an image from a package. | |
override | GetInstalledApplications(Android.Content.PM.PackageInfoFlags)Return a List of all application packages that are installed on the device. | |
override | GetInstalledPackages(Android.Content.PM.PackageInfoFlags)Return a List of all packages that are installed on the device. | |
override | GetInstallerPackageName(string)Retrieve the package name of the application that installed a package. | |
override | GetInstrumentationInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags)Retrieve all of the information we know about a particular instrumentation class. | |
override | GetLaunchIntentForPackage(string)Returns a "good" intent to launch a front-door activity in a package. | |
override | GetLeanbackLaunchIntentForPackage(string)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)Retrieve the official name associated with a user id. | |
override | GetPackageGids(string)Return an array of all of the secondary group-ids that have been assigned to a package. | |
override | GetPackageInfo(string, Android.Content.PM.PackageInfoFlags)Retrieve overall information about an application package that is installed on the system. | |
override | GetPackagesForUid(int)Retrieve the names of all packages that are associated with a particular user id. | |
override | GetPackagesHoldingPermissions(string[], Android.Content.PM.PackageInfoFlags)Return a List of all installed packages that are currently holding any of the given permissions. | |
override | GetPermissionGroupInfo(string, Android.Content.PM.PackageInfoFlags)Retrieve all of the information we know about a particular group of permissions. | |
override | GetPermissionInfo(string, Android.Content.PM.PackageInfoFlags)Retrieve all of the information we know about a particular permission. | |
override | GetPreferredActivities(IList<Android.Content.IntentFilter>, IList<Android.Content.ComponentName>, string)Documentation for this section has not yet been entered. | |
override | GetPreferredPackages(Android.Content.PM.PackageInfoFlags)Retrieve the list of all currently configured preferred packages. | |
override | GetProviderInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags)Retrieve all of the information we know about a particular content provider class. | |
override | GetReceiverInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags)Retrieve all of the information we know about a particular receiver class. | |
override | GetResourcesForActivity(Android.Content.ComponentName)Retrieve the resources associated with an activity. | |
override | GetResourcesForApplication(Android.Content.PM.ApplicationInfo)Retrieve the resources for an application. | |
override | GetResourcesForApplication(string)Retrieve the resources associated with an application. | |
override | GetServiceInfo(Android.Content.ComponentName, Android.Content.PM.PackageInfoFlags)Retrieve all of the information we know about a particular service class. | |
override | GetSystemAvailableFeatures()Get a list of features that are available on the system. | |
override | GetSystemSharedLibraryNames()Get a list of shared libraries that are available on the system. | |
GetText(string, int, Android.Content.PM.ApplicationInfo)Documentation for this section has not yet been entered. | ||
override | GetTextFormatted(string, int, Android.Content.PM.ApplicationInfo)Retrieve text from a package. | |
override | GetUserBadgedDrawableForDensity(Android.Graphics.Drawables.Drawable, Android.OS.UserHandle, Android.Graphics.Rect, int)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)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)Documentation for this section has not yet been entered. | ||
override | GetUserBadgedLabelFormatted(Java.Lang.ICharSequence, Android.OS.UserHandle)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)Retrieve an XML file from a package. | |
override | HasSystemFeature(string)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)Retrieve all receivers that can handle a broadcast of the given intent. | |
override | QueryContentProviders(string, int, Android.Content.PM.PackageInfoFlags)Retrieve content provider information. | |
override | QueryInstrumentation(string, Android.Content.PM.PackageInfoFlags)Retrieve information about available instrumentation code. | |
override | QueryIntentActivities(Android.Content.Intent, Android.Content.PM.PackageInfoFlags)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)Retrieve a set of activities that should be presented to the user as similar options. | |
override | QueryIntentContentProviders(Android.Content.Intent, Android.Content.PM.PackageInfoFlags)Retrieve all providers that can match the given intent. | |
override | QueryIntentServices(Android.Content.Intent, Android.Content.PM.PackageInfoFlags)Retrieve all services that can match the given intent. | |
override | QueryPermissionsByGroup(string, Android.Content.PM.PackageInfoFlags)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)Determine the best action to perform for a given Intent. | |
override | ResolveContentProvider(string, Android.Content.PM.PackageInfoFlags)Find a single content provider by its base path name. | |
override | ResolveService(Android.Content.Intent, Android.Content.PM.PackageInfoFlags)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. |