FileDocCategorySizeDatePackage
MockPackageManager.javaAPI DocAndroid 1.5 API12367Wed May 06 22:42:02 BST 2009android.test.mock

MockPackageManager

public class MockPackageManager extends android.content.pm.PackageManager
A mock {@link android.content.pm.PackageManager} class. All methods are non-functional and throw {@link java.lang.UnsupportedOperationException}. Override it to provide the operations that you need.

Fields Summary
Constructors Summary
Methods Summary
public voidaddPackageToPreferred(java.lang.String packageName)

        throw new UnsupportedOperationException();
    
public booleanaddPermission(android.content.pm.PermissionInfo info)

        throw new UnsupportedOperationException();
    
public voidaddPreferredActivity(android.content.IntentFilter filter, int match, android.content.ComponentName[] set, android.content.ComponentName activity)

        throw new UnsupportedOperationException();
    
public intcheckPermission(java.lang.String permName, java.lang.String pkgName)

        throw new UnsupportedOperationException();
    
public intcheckSignatures(java.lang.String pkg1, java.lang.String pkg2)

        throw new UnsupportedOperationException();
    
public voidclearApplicationUserData(java.lang.String packageName, android.content.pm.IPackageDataObserver observer)

hide
- to match hiding in superclass

        throw new UnsupportedOperationException();
    
public voidclearPackagePreferredActivities(java.lang.String packageName)

        throw new UnsupportedOperationException();
    
public voiddeleteApplicationCacheFiles(java.lang.String packageName, android.content.pm.IPackageDataObserver observer)

hide
- to match hiding in superclass

        throw new UnsupportedOperationException();
    
public voiddeletePackage(java.lang.String packageName, android.content.pm.IPackageDeleteObserver observer, int flags)

hide
- to match hiding in superclass

        throw new UnsupportedOperationException();
    
public voidfreeStorage(long idealStorageSize, android.app.PendingIntent onFinishedIntent)

hide
- to match hiding in superclass

        throw new UnsupportedOperationException();
    
public voidfreeStorageAndNotify(long idealStorageSize, android.content.pm.IPackageDataObserver observer)

hide
- to match hiding in superclass

        throw new UnsupportedOperationException();
    
public android.graphics.drawable.DrawablegetActivityIcon(android.content.ComponentName activityName)

        throw new UnsupportedOperationException();
    
public android.graphics.drawable.DrawablegetActivityIcon(android.content.Intent intent)

        throw new UnsupportedOperationException();
    
public android.content.pm.ActivityInfogetActivityInfo(android.content.ComponentName className, int flags)

        throw new UnsupportedOperationException();
    
public java.util.ListgetAllPermissionGroups(int flags)

        throw new UnsupportedOperationException();
    
public intgetApplicationEnabledSetting(java.lang.String packageName)

        throw new UnsupportedOperationException();
    
public android.graphics.drawable.DrawablegetApplicationIcon(android.content.pm.ApplicationInfo info)

        throw new UnsupportedOperationException();
    
public android.graphics.drawable.DrawablegetApplicationIcon(java.lang.String packageName)

        throw new UnsupportedOperationException();
    
public android.content.pm.ApplicationInfogetApplicationInfo(java.lang.String packageName, int flags)

        throw new UnsupportedOperationException();
    
public java.lang.CharSequencegetApplicationLabel(android.content.pm.ApplicationInfo info)

        throw new UnsupportedOperationException();
    
public intgetComponentEnabledSetting(android.content.ComponentName componentName)

        throw new UnsupportedOperationException();
    
public android.graphics.drawable.DrawablegetDefaultActivityIcon()

        throw new UnsupportedOperationException();
    
public android.graphics.drawable.DrawablegetDrawable(java.lang.String packageName, int resid, android.content.pm.ApplicationInfo appInfo)

        throw new UnsupportedOperationException();
    
public java.util.ListgetInstalledApplications(int flags)

        throw new UnsupportedOperationException();
    
public java.util.ListgetInstalledPackages(int flags)

        throw new UnsupportedOperationException();
    
public android.content.pm.InstrumentationInfogetInstrumentationInfo(android.content.ComponentName className, int flags)

        throw new UnsupportedOperationException();
    
public android.content.IntentgetLaunchIntentForPackage(java.lang.String packageName)

        throw new UnsupportedOperationException();
    
public java.lang.StringgetNameForUid(int uid)

        throw new UnsupportedOperationException();
    
public android.content.pm.PackageInfogetPackageArchiveInfo(java.lang.String archiveFilePath, int flags)

        throw new UnsupportedOperationException();
    
public int[]getPackageGids(java.lang.String packageName)

        throw new UnsupportedOperationException();
    
public android.content.pm.PackageInfogetPackageInfo(java.lang.String packageName, int flags)

        throw new UnsupportedOperationException();
    
public voidgetPackageSizeInfo(java.lang.String packageName, android.content.pm.IPackageStatsObserver observer)

hide
- to match hiding in superclass

        throw new UnsupportedOperationException();
    
public java.lang.String[]getPackagesForUid(int uid)

        throw new UnsupportedOperationException();
    
public android.content.pm.PermissionGroupInfogetPermissionGroupInfo(java.lang.String name, int flags)

        throw new UnsupportedOperationException();
    
public android.content.pm.PermissionInfogetPermissionInfo(java.lang.String name, int flags)

        throw new UnsupportedOperationException();
    
public intgetPreferredActivities(java.util.List outFilters, java.util.List outActivities, java.lang.String packageName)

        throw new UnsupportedOperationException();
    
public java.util.ListgetPreferredPackages(int flags)

        throw new UnsupportedOperationException();
    
public android.content.pm.ActivityInfogetReceiverInfo(android.content.ComponentName className, int flags)

        throw new UnsupportedOperationException();
    
public android.content.res.ResourcesgetResourcesForActivity(android.content.ComponentName activityName)

        throw new UnsupportedOperationException();
    
public android.content.res.ResourcesgetResourcesForApplication(android.content.pm.ApplicationInfo app)

        throw new UnsupportedOperationException();
    
public android.content.res.ResourcesgetResourcesForApplication(java.lang.String appPackageName)

        throw new UnsupportedOperationException();
    
public android.content.pm.ServiceInfogetServiceInfo(android.content.ComponentName className, int flags)

        throw new UnsupportedOperationException();
    
public java.lang.String[]getSystemSharedLibraryNames()

        throw new UnsupportedOperationException();
    
public java.lang.CharSequencegetText(java.lang.String packageName, int resid, android.content.pm.ApplicationInfo appInfo)

        throw new UnsupportedOperationException();
    
public intgetUidForSharedUser(java.lang.String sharedUserName)

hide
- to match hiding in superclass

        throw new UnsupportedOperationException();
    
public android.content.res.XmlResourceParsergetXml(java.lang.String packageName, int resid, android.content.pm.ApplicationInfo appInfo)

        throw new UnsupportedOperationException();
    
public voidinstallPackage(android.net.Uri packageURI, android.content.pm.IPackageInstallObserver observer, int flags)

        throw new UnsupportedOperationException();
    
public voidinstallPackage(android.net.Uri packageURI)

        throw new UnsupportedOperationException();
    
public booleanisSafeMode()

        throw new UnsupportedOperationException();
    
public java.util.ListqueryBroadcastReceivers(android.content.Intent intent, int flags)

        throw new UnsupportedOperationException();
    
public java.util.ListqueryContentProviders(java.lang.String processName, int uid, int flags)

        throw new UnsupportedOperationException();
    
public java.util.ListqueryInstrumentation(java.lang.String targetPackage, int flags)

        throw new UnsupportedOperationException();
    
public java.util.ListqueryIntentActivities(android.content.Intent intent, int flags)

        throw new UnsupportedOperationException();
    
public java.util.ListqueryIntentActivityOptions(android.content.ComponentName caller, android.content.Intent[] specifics, android.content.Intent intent, int flags)

        throw new UnsupportedOperationException();
    
public java.util.ListqueryIntentServices(android.content.Intent intent, int flags)

        throw new UnsupportedOperationException();
    
public java.util.ListqueryPermissionsByGroup(java.lang.String group, int flags)

        throw new UnsupportedOperationException();
    
public voidremovePackageFromPreferred(java.lang.String packageName)

        throw new UnsupportedOperationException();
    
public voidremovePermission(java.lang.String name)

        throw new UnsupportedOperationException();
    
public android.content.pm.ResolveInforesolveActivity(android.content.Intent intent, int flags)

        throw new UnsupportedOperationException();
    
public android.content.pm.ProviderInforesolveContentProvider(java.lang.String name, int flags)

        throw new UnsupportedOperationException();
    
public android.content.pm.ResolveInforesolveService(android.content.Intent intent, int flags)

        throw new UnsupportedOperationException();
    
public voidsetApplicationEnabledSetting(java.lang.String packageName, int newState, int flags)

        throw new UnsupportedOperationException();
    
public voidsetComponentEnabledSetting(android.content.ComponentName componentName, int newState, int flags)

        throw new UnsupportedOperationException();