shadows/framework/src/main/java/org/robolectric/shadows/ShadowMediaCodec.java
@Implementation(minSdk = LOLLIPOP)
  protected void native_queueInputBuffer(
      int index, int offset, int size, long presentationTimeUs, int flags) {
    // Check if this should be the last buffer cycle.
    if ((flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {
      reachedEos = true;
    }

    BufferInfo info = new BufferInfo();
    info.set(offset, size, presentationTimeUs, flags);

    makeOutputBufferAvailable(index, info);
  }
@Implementation(minSdk = LOLLIPOP)
  protected void native_queueInputBuffer(
      int index, int offset, int size, long presentationTimeUs, int flags) {
    // Check if this should be the last buffer cycle.
    if ((flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) {
      reachedEos = true;
    }

    BufferInfo info = new BufferInfo();
    info.set(offset, size, presentationTimeUs, flags);

    makeOutputBufferAvailable(index, info);
  }
Triggers presentation of the corresponding output buffer for the given input buffer, and passes
the given metadata as buffer info.