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

SenderPermissionFilter

public class SenderPermissionFilter extends Object implements Filter

Fields Summary
private static final String
ATTR_NAME
private final String
mPermission
public static final FilterFactory
FACTORY
Constructors Summary
private SenderPermissionFilter(String permission)


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

        // We assume the component is exported here. If the component is not exported, then
        // ActivityManager would only resolve to this component for callers from the same uid.
        // In this case, it doesn't matter whether the component is exported or not.
        return ifw.checkComponentPermission(mPermission, callerPid, callerUid, receivingUid,
                true);