shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaMetadataRetriever.java
public static void addFrame(Context context, Uri uri, long time, Bitmap bitmap) {
    addFrame(toDataSource(context, uri), time, bitmap);
  }
public static void addFrame(Context context, Uri uri, long time, Bitmap bitmap) {
    addFrame(toDataSource(context, uri), time, bitmap);
  }
Adds the given bitmap at the given time for the given data source.
Uses <tt>path</tt> to call {@link org.robolectric.shadows.util.DataSource#toDataSource(Context, Uri)} and
then calls {@link #addFrame(DataSource, long, Bitmap)}. This
method is retained mostly for backwards compatibility;
you can call {@link #addFrame(DataSource, long, Bitmap)} directly.

@param context the Context object to match on the data source.
@param uri the Uri of the data source.
@param time the playback time at which the specified bitmap
should be retrieved.
@param bitmap the bitmap to retrieve.