@Override
  public void setImageBitmap(final Bitmap bm) {
    // bm == null in couple of situations like
    // - detaching from window
    // - cleaning up previous request
    if (bm != null) {
      mInstrumentation.onSuccess();
    }
    super.setImageBitmap(bm);
  }
{@link NetworkImageView} that notifies its instance of {@link Instrumentation} whenever an image
request lifecycle event happens.
samples/comparison/src/main/java/com/facebook/samples/comparison/instrumentation/InstrumentedNetworkImageView.java