public static boolean statusHasAnyFlag(@Status int status, @Status int flag) {
    return (status & flag) != 0;
  }
Checks whether the provided status contains any of the specified flags.
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/BaseConsumer.java