public class SenderPackageFilter extends Object
Modifier and Type | Field and Description |
---|---|
static FilterFactory |
FACTORY |
String |
mPackageName |
Constructor and Description |
---|
SenderPackageFilter(String packageName) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(IntentFirewall ifw,
ComponentName resolvedComponent,
Intent intent,
int callerUid,
int callerPid,
String resolvedType,
int receivingUid)
Does the given intent + context info match this filter?
|
public final String mPackageName
public static final FilterFactory FACTORY
public SenderPackageFilter(String packageName)
public boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent, int callerUid, int callerPid, String resolvedType, int receivingUid)
ifw
- The IntentFirewall instanceresolvedComponent
- The actual component that the intent was resolved tointent
- The intent being started/bound/broadcastcallerUid
- The uid of the callercallerPid
- The pid of the callerresolvedType
- The resolved mime type of the intentreceivingUid
- The uid of the component receiving the intent