Build 1.0_r1(from source)

android.content.pm
Class ProviderInfo

java.lang.Object
  extended by android.content.pm.PackageItemInfo
      extended by android.content.pm.ComponentInfo
          extended by android.content.pm.ProviderInfo
All Implemented Interfaces:
Parcelable

public final class ProviderInfo
extends ComponentInfo
implements Parcelable

Holds information about a specific content provider. This is returned by PackageManager.resolveContentProvider().


Nested Class Summary
 
Nested classes/interfaces inherited from class android.content.pm.PackageItemInfo
PackageItemInfo.DisplayNameComparator
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
 String authority
          The name provider is published under content://
static Parcelable.Creator<ProviderInfo> CREATOR
           
 boolean grantUriPermissions
          If true, additional permissions to specific Uris in this content provider can be granted, as per the grantUriPermissions attribute.
 int initOrder
          Used to control initialization order of single-process providers running in the same process.
 boolean isSyncable
          Whether or not this provider is syncable.
 boolean multiprocess
          If true, this content provider allows multiple instances of itself to run in different process.
 String readPermission
          Optional permission required for read-only access this content provider.
 PatternMatcher[] uriPermissionPatterns
          If non-null, these are the patterns that are allowed for granting URI permissions.
 String writePermission
          Optional permission required for read/write access this content provider.
 
Fields inherited from class android.content.pm.ComponentInfo
applicationInfo, enabled, exported, processName
 
Fields inherited from class android.content.pm.PackageItemInfo
icon, labelRes, metaData, name, nonLocalizedLabel, packageName
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
ProviderInfo()
           
ProviderInfo(ProviderInfo orig)
           
 
Method Summary
 int describeContents()
          Describe the kinds of special objects contained in this Parcelable's marshalled representation.
 String toString()
          Returns a string containing a concise, human-readable description of the receiver.
 void writeToParcel(Parcel out, int parcelableFlags)
          Flatten this object in to a Parcel.
 
Methods inherited from class android.content.pm.ComponentInfo
dumpBack, dumpFront, getIconResource, loadIcon, loadLabel
 
Methods inherited from class android.content.pm.PackageItemInfo
loadXmlMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

authority

public String authority
The name provider is published under content://


readPermission

public String readPermission
Optional permission required for read-only access this content provider.


writePermission

public String writePermission
Optional permission required for read/write access this content provider.


grantUriPermissions

public boolean grantUriPermissions
If true, additional permissions to specific Uris in this content provider can be granted, as per the grantUriPermissions attribute.


uriPermissionPatterns

public PatternMatcher[] uriPermissionPatterns
If non-null, these are the patterns that are allowed for granting URI permissions. Any URI that does not match one of these patterns will not allowed to be granted. If null, all URIs are allowed. The PackageManager.GET_URI_PERMISSION_PATTERNS flag must be specified for this field to be filled in.


multiprocess

public boolean multiprocess
If true, this content provider allows multiple instances of itself to run in different process. If false, a single instances is always run in ComponentInfo.processName.


initOrder

public int initOrder
Used to control initialization order of single-process providers running in the same process. Higher goes first.


isSyncable

public boolean isSyncable
Whether or not this provider is syncable.


CREATOR

public static final Parcelable.Creator<ProviderInfo> CREATOR
Constructor Detail

ProviderInfo

public ProviderInfo()

ProviderInfo

public ProviderInfo(ProviderInfo orig)
Method Detail

describeContents

public int describeContents()
Description copied from interface: Parcelable
Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Specified by:
describeContents in interface Parcelable
Returns:
a bitmask indicating the set of special object types marshalled by the Parcelable.

writeToParcel

public void writeToParcel(Parcel out,
                          int parcelableFlags)
Description copied from interface: Parcelable
Flatten this object in to a Parcel.

Specified by:
writeToParcel in interface Parcelable
Overrides:
writeToParcel in class ComponentInfo
Parameters:
out - The Parcel in which the object should be written.
parcelableFlags - Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.

toString

public String toString()
Description copied from class: Object
Returns a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Object
Returns:
String a printable representation for the receiver.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature