shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java
@Deprecated
  public void setResolveInfosForIntent(Intent intent, List<ResolveInfo> info) {
    resolveInfoForIntent.remove(intent);
    for (ResolveInfo resolveInfo : info) {
      addResolveInfoForIntent(intent, resolveInfo);
    }
  }
@Deprecated
  public void setResolveInfosForIntent(Intent intent, List<ResolveInfo> info) {
    resolveInfoForIntent.remove(intent);
    for (ResolveInfo resolveInfo : info) {
      addResolveInfoForIntent(intent, resolveInfo);
    }
  }
Sets extra resolve infos for an intent.

Those entries are added to whatever might be in the manifest already.

Note that all resolve infos will have {@link ResolveInfo#isDefault} field set to {@code
true} to allow their resolution for implicit intents. If this is not what you want, then you
still have the reference to those ResolveInfos, and you can set the field back to {@code
false}.

@deprecated see the note on {@link #addResolveInfoForIntent(Intent, ResolveInfo)}.