FileDocCategorySizeDatePackage
PreferredActivity.javaAPI DocAndroid 5.1 API2792Thu Mar 12 22:22:42 GMT 2015com.android.server.pm

PreferredActivity

public class PreferredActivity extends android.content.IntentFilter implements PreferredComponent.Callbacks

Fields Summary
private static final String
TAG
private static final boolean
DEBUG_FILTERS
final PreferredComponent
mPref
Constructors Summary
PreferredActivity(android.content.IntentFilter filter, int match, android.content.ComponentName[] set, android.content.ComponentName activity, boolean always)


           
              
        super(filter);
        mPref = new PreferredComponent(this, match, set, activity, always);
    
PreferredActivity(XmlPullParser parser)

        mPref = new PreferredComponent(this, parser);
    
Methods Summary
public booleanonReadTag(java.lang.String tagName, org.xmlpull.v1.XmlPullParser parser)

        if (tagName.equals("filter")) {
            if (DEBUG_FILTERS) {
                Log.i(TAG, "Starting to parse filter...");
            }
            readFromXml(parser);
            if (DEBUG_FILTERS) {
                Log.i(TAG, "Finished filter: depth=" + parser.getDepth() + " tag="
                        + parser.getName());
            }
        } else {
            PackageManagerService.reportSettingsProblem(Log.WARN,
                    "Unknown element under <preferred-activities>: " + parser.getName());
            XmlUtils.skipCurrentTag(parser);
        }
        return true;
    
public java.lang.StringtoString()

        return "PreferredActivity{0x" + Integer.toHexString(System.identityHashCode(this))
                + " " + mPref.mComponent.flattenToShortString() + "}";
    
public voidwriteToXml(org.xmlpull.v1.XmlSerializer serializer, boolean full)

        mPref.writeToXml(serializer, full);
        serializer.startTag(null, "filter");
            super.writeToXml(serializer);
        serializer.endTag(null, "filter");