MockPackageManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A mock android.content.pm.PackageManager
class.
[Android.Runtime.Register("android/test/mock/MockPackageManager", DoNotGenerateAcw=true)]
public class MockPackageManager : Android.Content.PM.PackageManager
[<Android.Runtime.Register("android/test/mock/MockPackageManager", DoNotGenerateAcw=true)>]
type MockPackageManager = class
inherit PackageManager
- Inheritance
- Attributes
Remarks
A mock android.content.pm.PackageManager
class. All methods are non-functional and throw java.lang.UnsupportedOperationException
. Override it to provide the operations that you need.
This member is deprecated. Use a mocking framework like Mockito. New tests should be written using the Android Testing Support Library.
Java documentation for android.test.mock.MockPackageManager
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
MockPackageManager() | |
MockPackageManager(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Fields
CertInputRawX509 |
Obsolete.
Certificate input bytes: the input bytes represent an encoded X. (Inherited from PackageManager) |
CertInputSha256 |
Obsolete.
Certificate input bytes: the input bytes represent the SHA256 output of an encoded X. (Inherited from PackageManager) |
DontKillApp |
Obsolete.
Flag parameter for
|
ExtraVerificationId |
Extra field name for the ID of a package pending verification. (Inherited from PackageManager) |
ExtraVerificationResult |
Extra field name for the result of a verification, either
|
FeatureActivitiesOnSecondaryDisplays |
Feature for |
FeatureAppWidgets |
Feature for |
FeatureAudioLowLatency |
Feature for |
FeatureAudioOutput |
Feature for |
FeatureAudioPro |
Feature for |
FeatureAutofill |
Feature for |
FeatureAutomotive |
Feature for |
FeatureBackup |
Feature for |
FeatureBluetooth |
Feature for |
FeatureBluetoothLe |
Feature for |
FeatureCamera |
Feature for |
FeatureCameraAny |
Feature for |
FeatureCameraAr |
Feature for |
FeatureCameraAutofocus |
Feature for |
FeatureCameraCapabilityManualPostProcessing |
Feature for |
FeatureCameraCapabilityManualSensor |
Feature for |
FeatureCameraCapabilityRaw |
Feature for |
FeatureCameraConcurrent |
Feature for |
FeatureCameraExternal |
Feature for |
FeatureCameraFlash |
Feature for |
FeatureCameraFront |
Feature for |
FeatureCameraLevelFull |
Feature for |
FeatureCantSaveState |
Feature for |
FeatureCompanionDeviceSetup |
Feature for |
FeatureConnectionService |
Feature for |
FeatureConsumerIr |
Feature for |
FeatureControls |
Feature for |
FeatureCredentials |
Feature for |
FeatureDeviceAdmin |
Feature for |
FeatureDeviceLock |
Feature for |
FeatureEmbedded |
Feature for |
FeatureEthernet |
Feature for |
FeatureExpandedPictureInPicture |
Feature for |
FeatureFace |
Feature for |
FeatureFaketouch |
Feature for |
FeatureFaketouchMultitouchDistinct |
Feature for |
FeatureFaketouchMultitouchJazzhand |
Feature for |
FeatureFingerprint |
Feature for |
FeatureFreeformWindowManagement |
As a guiding principle: (Inherited from PackageManager) |
FeatureGamepad |
Feature for |
FeatureHardwareKeystore |
Feature for |
FeatureHifiSensors |
Feature for |
FeatureHomeScreen |
Feature for |
FeatureIdentityCredentialHardware |
Feature for |
FeatureIdentityCredentialHardwareDirectAccess |
Feature for |
FeatureInputMethods |
Feature for |
FeatureIpsecTunnelMigration |
Feature for |
FeatureIpsecTunnels |
Feature for |
FeatureIris |
Feature for |
FeatureKeystoreAppAttestKey |
Feature for |
FeatureKeystoreLimitedUseKey |
Feature for |
FeatureKeystoreSingleUseKey |
Feature for |
FeatureLeanback |
Feature for |
FeatureLeanbackOnly |
Feature for |
FeatureLiveTv |
Feature for |
FeatureLiveWallpaper |
Feature for |
FeatureLocation |
Feature for |
FeatureLocationGps |
Feature for |
FeatureLocationNetwork |
Feature for |
FeatureManagedUsers |
Feature for |
FeatureMicrophone |
Feature for |
FeatureMidi |
Feature for |
FeatureNfc |
Feature for |
FeatureNfcBeam |
Feature for |
FeatureNfcHostCardEmulation |
Feature for |
FeatureNfcHostCardEmulationNfcf |
Feature for |
FeatureNfcOffHostCardEmulationEse |
Feature for |
FeatureNfcOffHostCardEmulationUicc |
Feature for |
FeatureOpenglesDeqpLevel |
Feature for |
FeatureOpenglesExtensionPack |
Feature for |
FeaturePc |
Feature for |
FeaturePictureInPicture |
Feature for |
FeaturePrinting |
Feature for |
FeatureRamLow |
Feature for |
FeatureRamNormal |
Feature for |
FeatureScreenLandscape |
Feature for |
FeatureScreenPortrait |
Feature for |
FeatureSecureLockScreen |
Feature for |
FeatureSecurelyRemovesUsers |
Feature for |
FeatureSecurityModelCompatible |
Feature for |
FeatureSensorAccelerometer |
Feature for |
FeatureSensorAccelerometerLimitedAxes |
Feature for |
FeatureSensorAccelerometerLimitedAxesUncalibrated |
Feature for |
FeatureSensorAmbientTemperature |
Feature for |
FeatureSensorBarometer |
Feature for |
FeatureSensorCompass |
Feature for |
FeatureSensorDynamicHeadTracker |
Feature for |
FeatureSensorGyroscope |
Feature for |
FeatureSensorGyroscopeLimitedAxes |
Feature for |
FeatureSensorGyroscopeLimitedAxesUncalibrated |
Feature for |
FeatureSensorHeading |
Feature for |
FeatureSensorHeartRate |
Feature for |
FeatureSensorHeartRateEcg |
Feature for |
FeatureSensorHingeAngle |
Feature for |
FeatureSensorLight |
Feature for |
FeatureSensorProximity |
Feature for |
FeatureSensorRelativeHumidity |
Feature for |
FeatureSensorStepCounter |
Feature for |
FeatureSensorStepDetector |
Feature for |
FeatureSeOmapiEse |
Feature for |
FeatureSeOmapiSd |
Feature for |
FeatureSeOmapiUicc |
Feature for |
FeatureSip |
Feature for |
FeatureSipVoip |
Feature for |
FeatureStrongboxKeystore |
Feature for |
FeatureTelecom |
Feature for |
FeatureTelephony |
Feature for |
FeatureTelephonyCalling |
Feature for |
FeatureTelephonyCdma |
Feature for |
FeatureTelephonyData |
Feature for |
FeatureTelephonyEuicc |
Feature for |
FeatureTelephonyEuiccMep |
Feature for |
FeatureTelephonyGsm |
Feature for |
FeatureTelephonyIms |
Feature for |
FeatureTelephonyMbms |
Feature for |
FeatureTelephonyMessaging |
Feature for |
FeatureTelephonyRadioAccess |
Feature for |
FeatureTelephonySubscription |
Feature for |
FeatureTelevision |
Obsolete.
Feature for |
FeatureTouchscreen |
Feature for |
FeatureTouchscreenMultitouch |
Feature for |
FeatureTouchscreenMultitouchDistinct |
Feature for |
FeatureTouchscreenMultitouchJazzhand |
Feature for |
FeatureUsbAccessory |
Feature for |
FeatureUsbHost |
Feature for |
FeatureUwb |
Feature for |
FeatureVerifiedBoot |
Feature for |
FeatureVrHeadtracking |
Feature for |
FeatureVrMode |
Feature for |
FeatureVrModeHighPerformance |
Feature for |
FeatureVulkanDeqpLevel |
Feature for |
FeatureVulkanHardwareCompute |
Feature for |
FeatureVulkanHardwareLevel |
Feature for |
FeatureVulkanHardwareVersion |
Feature for |
FeatureWalletLocationBasedSuggestions |
Feature for |
FeatureWatch |
Feature for |
FeatureWebview |
Feature for |
FeatureWifi |
Feature for |
FeatureWifiAware |
Feature for |
FeatureWifiDirect |
Feature for |
FeatureWifiPasspoint |
Feature for |
FeatureWifiRtt |
Feature for |
FeatureWindowMagnification |
Feature for |
FlagPermissionWhitelistInstaller |
Obsolete.
Permission whitelist flag: permissions whitelisted by the installer. (Inherited from PackageManager) |
FlagPermissionWhitelistSystem |
Obsolete.
Permission whitelist flag: permissions whitelisted by the system. (Inherited from PackageManager) |
FlagPermissionWhitelistUpgrade |
Obsolete.
Permission whitelist flag: permissions whitelisted by the system when upgrading from an OS version where the permission was not restricted to an OS version where the permission is restricted. (Inherited from PackageManager) |
GetAttributions |
This member is deprecated. (Inherited from PackageManager) |
GetAttributionsLong |
|
InstallScenarioBulk |
Obsolete.
Installation scenario indicating a bulk operation with the desired result of a fully optimized application. (Inherited from PackageManager) |
InstallScenarioBulkSecondary |
Obsolete.
Installation scenario indicating a bulk operation that prioritizes minimal system health impact over application optimization. (Inherited from PackageManager) |
InstallScenarioDefault |
Obsolete.
A value to indicate the lack of CUJ information, disabling all installation scenario logic. (Inherited from PackageManager) |
InstallScenarioFast |
Obsolete.
Installation scenario providing the fastest “install button to launch" experience possible. (Inherited from PackageManager) |
MatchApex |
|
MatchDirectBootAuto |
Querying flag: automatically match components based on their Direct Boot awareness and the current user state. (Inherited from PackageManager) |
MaximumVerificationTimeout |
Can be used as the |
PropertyCompatOverrideLandscapeToPortrait |
Application level |
PropertyMediaCapabilities |
<application> level
(Inherited from PackageManager)
|
PropertySelfCertifiedNetworkCapabilities |
<application> level |
PropertySpecialUseFgsSubtype |
<service> level |
Synchronous |
Obsolete.
Flag parameter for
|
VerificationAllow |
Obsolete.
Used as the |
VerificationReject |
Obsolete.
Used as the |
VersionCodeHighest |
Constant for specifying the highest installed package version code. (Inherited from PackageManager) |
Properties
BackgroundPermissionOptionLabel | (Inherited from PackageManager) |
BackgroundPermissionOptionLabelFormatted |
Gets the localized label that corresponds to the option in settings for granting background access. (Inherited from PackageManager) |
Class |
Returns the runtime class of this |
DefaultActivityIcon |
Return the generic icon for an activity that is used when no specific icon is defined. |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
InstantAppCookieMaxBytes | |
IsAutoRevokeWhitelisted |
<strong>Note: </strong>In retrospect it would have been preferred to use more inclusive terminology when naming this API. (Inherited from PackageManager) |
IsDeviceUpgrading |
Returns true if the device is upgrading, such as first boot after OTA. (Inherited from PackageManager) |
IsInstantApp | |
IsPackageSuspended |
Apps can query this to know if they have been suspended. (Inherited from PackageManager) |
IsSafeMode |
Return whether the device has been booted into safe mode. |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
PackageInstaller |
{ |
PeerReference | (Inherited from Object) |
SuspendedPackageAppExtras |
Returns a |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Methods
AddPackageToPreferred(String) | |
AddPermission(PermissionInfo) |
Add a new dynamic permission to the system. |
AddPermissionAsync(PermissionInfo) | |
AddPreferredActivity(IntentFilter, MatchResults, ComponentName[], ComponentName) | |
AddWhitelistedRestrictedPermission(String, String, FlagPermission) |
Adds a whitelisted restricted permission for an app. (Inherited from PackageManager) |
CanonicalToCurrentPackageNames(String[]) |
Map from a packages canonical name to the current name in use on the device. |
CanPackageQuery(String, String) |
Returns |
CanPackageQuery(String, String[]) |
Same as |
CanRequestPackageInstalls() | |
CheckPermission(String, String) |
Check whether a particular package has been granted a particular permission. |
CheckSignatures(Int32, Int32) |
Like CheckSignatures(String, String), but takes UIDs of the two packages to be checked. |
CheckSignatures(String, String) |
Compare the signatures of two packages to determine if the same signature appears in both of them. |
ClearInstantAppCookie() | |
ClearPackagePreferredActivities(String) | |
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
CurrentToCanonicalPackageNames(String[]) |
Map from the current package names in use on the device to whatever the current canonical name of that package is. |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
ExtendVerificationTimeout(Int32, PackageInstallVerification, Int64) |
Allows a package listening to the ActionPackageNeedsVerification to extend the default timeout for a response and declare what action to perform after the timeout occurs. |
GetActivityBanner(ComponentName) |
Retrieve the banner associated with an activity. |
GetActivityBanner(Intent) |
Retrieve the banner associated with an Intent. |
GetActivityIcon(ComponentName) |
Retrieve the icon associated with an activity. |
GetActivityIcon(Intent) |
Retrieve the icon associated with an Intent. |
GetActivityInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular activity class. |
GetActivityInfo(ComponentName, PackageManager+ComponentInfoFlags) | (Inherited from PackageManager) |
GetActivityLogo(ComponentName) |
Retrieve the logo associated with an activity. |
GetActivityLogo(Intent) |
Retrieve the logo associated with an Intent. |
GetAllIntentFilters(String) | |
GetAllPermissionGroups(PackageInfoFlags) |
Retrieve all of the known permission groups in the system. |
GetApplicationBanner(ApplicationInfo) |
Retrieve the banner associated with an application. |
GetApplicationBanner(String) |
Retrieve the banner associated with an application. |
GetApplicationEnabledSetting(String) |
Return the enabled setting for an application. |
GetApplicationIcon(ApplicationInfo) |
Retrieve the icon associated with an application. |
GetApplicationIcon(String) |
Retrieve the icon associated with an application. |
GetApplicationInfo(String, PackageInfoFlags) |
Retrieve all of the information we know about a particular package/application. |
GetApplicationInfo(String, PackageManager+ApplicationInfoFlags) | (Inherited from PackageManager) |
GetApplicationLabel(ApplicationInfo) | |
GetApplicationLabelFormatted(ApplicationInfo) |
Return the label to use for this application. |
GetApplicationLogo(ApplicationInfo) |
Retrieve the logo associated with an application. |
GetApplicationLogo(String) |
Retrieve the logo associated with an application. |
GetChangedPackages(Int32) | |
GetComponentEnabledSetting(ComponentName) |
Return the enabled setting for a package component (activity, receiver, service, provider). |
GetDefaultBrowserPackageName(Int32) |
{ |
GetDrawable(String, Int32, ApplicationInfo) |
Retrieve an image from a package. |
GetGroupOfPlatformPermission(String, IExecutor, IConsumer) |
Get the platform-defined permission group of a particular permission, if the permission is a platform-defined permission. (Inherited from PackageManager) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetInstalledApplications(PackageInfoFlags) |
Return a List of all application packages that are installed on the device. |
GetInstalledApplications(PackageManager+ApplicationInfoFlags) | (Inherited from PackageManager) |
GetInstalledModules(Int32) |
Return a List of all modules that are installed. (Inherited from PackageManager) |
GetInstalledPackages(PackageInfoFlags) |
Return a List of all packages that are installed on the device. |
GetInstalledPackages(PackageManager+PackageInfoFlags) | (Inherited from PackageManager) |
GetInstallerPackageName(String) |
Obsolete.
Retrieve the package name of the application that installed a package. |
GetInstallSourceInfo(String) |
Retrieves information about how a package was installed or updated. (Inherited from PackageManager) |
GetInstantAppCookie() | |
GetInstrumentationInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular instrumentation class. |
GetLaunchIntentForPackage(String) |
Returns a "good" intent to launch a front-door activity in a package. |
GetLaunchIntentSenderForPackage(String) |
Returns an |
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. |
GetMimeGroup(String) |
Gets all MIME types contained by MIME group. (Inherited from PackageManager) |
GetModuleInfo(String, Int32) |
Retrieve information for a particular module. (Inherited from PackageManager) |
GetNameForUid(Int32) |
Retrieve the official name associated with a user id. |
GetPackageArchiveInfo(String, PackageInfoFlags) |
Retrieve overall information about an application package defined in a package archive file
(Inherited from PackageManager)
|
GetPackageArchiveInfo(String, PackageManager+PackageInfoFlags) | (Inherited from PackageManager) |
GetPackageGids(String, PackageInfoFlags) | |
GetPackageGids(String, PackageManager+PackageInfoFlags) | (Inherited from PackageManager) |
GetPackageGids(String) |
Return an array of all of the secondary group-ids that have been assigned to a package. |
GetPackageInfo(String, PackageInfoFlags) |
Retrieve overall information about an application package that is installed on the system. |
GetPackageInfo(String, PackageManager+PackageInfoFlags) | (Inherited from PackageManager) |
GetPackageInfo(VersionedPackage, PackageInfoFlags) | |
GetPackageInfo(VersionedPackage, PackageManager+PackageInfoFlags) | (Inherited from PackageManager) |
GetPackagesForUid(Int32) |
Retrieve the names of all packages that are associated with a particular user id. |
GetPackagesHoldingPermissions(String[], PackageInfoFlags) |
Return a List of all installed packages that are currently holding any of the given permissions. |
GetPackagesHoldingPermissions(String[], PackageManager+PackageInfoFlags) | (Inherited from PackageManager) |
GetPackageUid(String, PackageInfoFlags) | |
GetPackageUid(String, PackageManager+PackageInfoFlags) | (Inherited from PackageManager) |
GetPermissionGroupInfo(String, PackageInfoFlags) |
Retrieve all of the information we know about a particular group of permissions. |
GetPermissionInfo(String, PackageInfoFlags) |
Retrieve all of the information we know about a particular permission. |
GetPlatformPermissionsForGroup(String, IExecutor, IConsumer) |
Get the platform-defined permissions which belong to a particular permission group. (Inherited from PackageManager) |
GetPreferredActivities(IList<IntentFilter>, IList<ComponentName>, String) | |
GetPreferredPackages(PackageInfoFlags) |
Obsolete.
Retrieve the list of all currently configured preferred packages. |
GetProperty(String, ComponentName) |
Returns the property defined in the given component declaration. (Inherited from PackageManager) |
GetProperty(String, String) |
Returns the property defined in the given component declaration. (Inherited from PackageManager) |
GetProviderInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular content provider class. |
GetProviderInfo(ComponentName, PackageManager+ComponentInfoFlags) | (Inherited from PackageManager) |
GetReceiverInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular receiver class. |
GetReceiverInfo(ComponentName, PackageManager+ComponentInfoFlags) | (Inherited from PackageManager) |
GetResourcesForActivity(ComponentName) |
Retrieve the resources associated with an activity. |
GetResourcesForApplication(ApplicationInfo, Configuration) |
Retrieve the resources for an application for the provided configuration. (Inherited from PackageManager) |
GetResourcesForApplication(ApplicationInfo) |
Retrieve the resources for an application. |
GetResourcesForApplication(String) |
Retrieve the resources associated with an application. |
GetServiceInfo(ComponentName, PackageInfoFlags) |
Retrieve all of the information we know about a particular service class. |
GetServiceInfo(ComponentName, PackageManager+ComponentInfoFlags) | (Inherited from PackageManager) |
GetSharedLibraries(PackageInstallReason) | |
GetSharedLibraries(PackageManager+PackageInfoFlags) | (Inherited from PackageManager) |
GetSyntheticAppDetailsActivityEnabled(String) |
Return whether a synthetic app details activity will be generated if the app has no enabled launcher activity. (Inherited from PackageManager) |
GetSystemAvailableFeatures() |
Get a list of features that are available on the system. |
GetSystemSharedLibraryNames() |
Get a list of shared libraries that are available on the system. |
GetTargetSdkVersion(String) | (Inherited from PackageManager) |
GetText(String, Int32, ApplicationInfo) | |
GetTextFormatted(String, Int32, ApplicationInfo) |
Retrieve text from a package. |
GetUserBadgedDrawableForDensity(Drawable, UserHandle, Rect, Int32) | |
GetUserBadgedIcon(Drawable, UserHandle) | |
GetUserBadgedLabel(String, UserHandle) | |
GetUserBadgedLabelFormatted(ICharSequence, 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. |
GetWhitelistedRestrictedPermissions(String, FlagPermission) |
Gets the restricted permissions that have been whitelisted and the app is allowed to have them granted in their full form. (Inherited from PackageManager) |
GetXml(String, Int32, ApplicationInfo) |
Retrieve an XML file from a package. |
HasSigningCertificate(Int32, Byte[], CertificateType) |
Searches the set of signing certificates by which the package(s) for the given uid has proven to have been signed. (Inherited from PackageManager) |
HasSigningCertificate(String, Byte[], CertificateType) |
Searches the set of signing certificates by which the given package has proven to have been signed. (Inherited from PackageManager) |
HasSystemFeature(String, Int32) | |
HasSystemFeature(String) |
Check whether the given feature name is one of the available features as returned by GetSystemAvailableFeatures(). |
InvokeIsAutoRevokeWhitelisted(String) |
Checks whether an application is exempt from having its permissions be automatically revoked when the app is unused for an extended period of time. (Inherited from PackageManager) |
InvokeIsInstantApp(String) | |
InvokeIsPackageSuspended(String) |
Query if an app is currently suspended. (Inherited from PackageManager) |
IsDefaultApplicationIcon(Drawable) |
Returns if the provided drawable represents the default activity icon provided by the system. (Inherited from PackageManager) |
IsPermissionRevokedByPolicy(String, String) | |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
QueryActivityProperty(String) |
Returns the property definition for all <activity> and <activity-alias> tags. (Inherited from PackageManager) |
QueryApplicationProperty(String) |
Returns the property definition for all <application> tags. (Inherited from PackageManager) |
QueryBroadcastReceivers(Intent, PackageInfoFlags) |
Retrieve all receivers that can handle a broadcast of the given intent. |
QueryBroadcastReceivers(Intent, PackageManager+ResolveInfoFlags) | (Inherited from PackageManager) |
QueryContentProviders(String, Int32, PackageInfoFlags) |
Retrieve content provider information. |
QueryContentProviders(String, Int32, PackageManager+ComponentInfoFlags) | (Inherited from PackageManager) |
QueryInstrumentation(String, PackageInfoFlags) |
Retrieve information about available instrumentation code. |
QueryIntentActivities(Intent, PackageInfoFlags) |
Retrieve all activities that can be performed for the given intent. |
QueryIntentActivities(Intent, PackageManager+ResolveInfoFlags) | (Inherited from PackageManager) |
QueryIntentActivityOptions(ComponentName, IList<Intent>, Intent, PackageInfoFlags) | (Inherited from PackageManager) |
QueryIntentActivityOptions(ComponentName, Intent[], Intent, PackageInfoFlags) |
Retrieve a set of activities that should be presented to the user as similar options. |
QueryIntentContentProviders(Intent, PackageInfoFlags) |
Retrieve all providers that can match the given intent. |
QueryIntentContentProviders(Intent, PackageManager+ResolveInfoFlags) | (Inherited from PackageManager) |
QueryIntentServices(Intent, PackageInfoFlags) |
Retrieve all services that can match the given intent. |
QueryIntentServices(Intent, PackageManager+ResolveInfoFlags) | (Inherited from PackageManager) |
QueryPermissionsByGroup(String, PackageInfoFlags) |
Query for all of the permissions associated with a particular group. |
QueryProviderProperty(String) |
Returns the property definition for all <provider> tags. (Inherited from PackageManager) |
QueryReceiverProperty(String) |
Returns the property definition for all <receiver> tags. (Inherited from PackageManager) |
QueryServiceProperty(String) |
Returns the property definition for all <service> tags. (Inherited from PackageManager) |
RelinquishUpdateOwnership(String) |
Attempt to relinquish the update ownership of the given package. (Inherited from PackageManager) |
RemovePackageFromPreferred(String) | |
RemovePermission(String) |
Removes a permission that was previously added with AddPermission(PermissionInfo). |
RemoveWhitelistedRestrictedPermission(String, String, FlagPermission) |
Removes a whitelisted restricted permission for an app. (Inherited from PackageManager) |
RequestChecksums(String, Boolean, Int32, IList<Certificate>, PackageManager+IOnChecksumsReadyListener) |
Requesting the checksums for APKs within a package. (Inherited from PackageManager) |
ResolveActivity(Intent, PackageInfoFlags) |
Determine the best action to perform for a given Intent. |
ResolveActivity(Intent, PackageManager+ResolveInfoFlags) | (Inherited from PackageManager) |
ResolveContentProvider(String, PackageInfoFlags) |
Find a single content provider by its base path name. |
ResolveContentProvider(String, PackageManager+ComponentInfoFlags) | (Inherited from PackageManager) |
ResolveService(Intent, PackageInfoFlags) |
Determine the best service to handle for a given Intent. |
ResolveService(Intent, PackageManager+ResolveInfoFlags) | (Inherited from PackageManager) |
SetApplicationCategoryHint(String, Int32) | |
SetApplicationEnabledSetting(String, ComponentEnabledState, 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. |
SetAutoRevokeWhitelisted(String, Boolean) |
Marks an application exempt from having its permissions be automatically revoked when the app is unused for an extended period of time. (Inherited from PackageManager) |
SetComponentEnabledSetting(ComponentName, ComponentEnabledState, ComponentEnableOption) |
Set the enabled setting for a package component (activity, receiver, service, provider). |
SetComponentEnabledSettings(IList<PackageManager.ComponentEnabledSetting>) |
Set the enabled settings for package components such as activities, receivers, services and providers. (Inherited from PackageManager) |
SetDefaultBrowserPackageName(String, Int32) |
{ |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetInstallerPackageName(String, String) |
Change the installer associated with a given package. |
SetMimeGroup(String, ICollection<String>) |
Sets MIME group's MIME types. (Inherited from PackageManager) |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
UpdateInstantAppCookie(Byte[]) | |
VerifyPendingInstall(Int32, PackageInstallVerification) |
Allows a package listening to the ActionPackageNeedsVerification to respond to the package manager. |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |