FileDocCategorySizeDatePackage
CategoryFilter.javaAPI DocAndroid 5.1 API2010Thu Mar 12 22:22:42 GMT 2015com.android.server.firewall

CategoryFilter

public class CategoryFilter extends Object implements Filter

Fields Summary
private static final String
ATTR_NAME
private final String
mCategoryName
public static final FilterFactory
FACTORY
Constructors Summary
private CategoryFilter(String categoryName)


       
        mCategoryName = categoryName;
    
Methods Summary
public booleanmatches(IntentFirewall ifw, android.content.ComponentName resolvedComponent, android.content.Intent intent, int callerUid, int callerPid, java.lang.String resolvedType, int receivingUid)

        Set<String> categories = intent.getCategories();
        if (categories == null) {
            return false;
        }
        return categories.contains(mCategoryName);