private void maybeUpdateStats(){
  if (lock.tryLock()) {
    try {
      if ((SystemClock.uptimeMillis() - mLastRestatTime) > RESTAT_INTERVAL_MS) {
        updateStats();
      }
    }
  finally {
      lock.unlock();
    }
  }
}

private void maybeUpdateStats ( ) { if ( lock . tryLock ( ) ) { try { if ( ( SystemClock . uptimeMillis ( ) - mLastRestatTime ) > RESTAT_INTERVAL_MS ) { updateStats ( ) ; } } finally { lock . unlock ( ) ; } } }
thread - safe call to update disk stats . update occurs if the thread is able to acquire the lock ( i . e . , no other thread is updating it at the same time ) , and it has been at least restat_interval_ms since the last update . assumes that initialization has been completed before this method is called .
