@Override
  public int getDurationMsForFrame(int frameNumber) {
    return mFrameDurations[frameNumber];
  }
Implementation of {@link AnimatedDrawableBackend} for unit tests.
animated-base/src/test/java/com/facebook/imagepipeline/animated/testing/TestAnimatedDrawableBackend.java