private synchronized void maybeUpdateCacheParams() {
    if (mLastCacheParamsCheck + mMemoryCacheParams.paramsCheckIntervalMs
        > SystemClock.uptimeMillis()) {
      return;
    }
    mLastCacheParamsCheck = SystemClock.uptimeMillis();
    mMemoryCacheParams =
        Preconditions.checkNotNull(
            mMemoryCacheParamsSupplier.get(), "mMemoryCacheParamsSupplier returned null");
  }
Updates the cache params (constraints) if enough time has passed since the last update.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/cache/AbstractAdaptiveCountingMemoryCache.java