shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java
public void addIntentFilterForActivity(ComponentName componentName, IntentFilter filter)
      throws NameNotFoundException {
    addIntentFilterForComponent(componentName, filter, activityFilters);
  }
public void addIntentFilterForActivity(ComponentName componentName, IntentFilter filter)
      throws NameNotFoundException {
    addIntentFilterForComponent(componentName, filter, activityFilters);
  }
Add intent filter for given activity.

@throws NameNotFoundException if component with given name doesn't exist.