public boolean contains(int frameIndex) {
    return mBackingCache.contains(keyFor(frameIndex));
  }
Check whether the cache contains an image for the given frame index.
animated-base/src/main/java/com/facebook/imagepipeline/animated/impl/AnimatedFrameCache.java