private void reportProgress(State state,InnerState innerState){
  long now=System.currentTimeMillis();
  if (innerState.mBytesSoFar - innerState.mBytesNotified > Constants.MIN_PROGRESS_STEP && now - innerState.mTimeLastNotification > Constants.MIN_PROGRESS_TIME) {
    mInfo.mCurrentBytes=innerState.mBytesSoFar;
    mDB.updateDownloadCurrentBytes(mInfo);
    innerState.mBytesNotified=innerState.mBytesSoFar;
    innerState.mTimeLastNotification=now;
    long totalBytesSoFar=innerState.mBytesThisSession + mService.mBytesSoFar;
    if (Constants.LOGVV) {
      Log.v(Constants.TAG,"downloaded " + mInfo.mCurrentBytes + " out of "+ mInfo.mTotalBytes);
      Log.v(Constants.TAG,"     total " + totalBytesSoFar + " out of "+ mService.mTotalLength);
    }
    mService.notifyUpdateBytes(totalBytesSoFar);
  }
}

private void reportProgress ( State state , InnerState innerState ) { long now = System . currentTimeMillis ( ) ; if ( innerState . mBytesSoFar - innerState . mBytesNotified > Constants . MIN_PROGRESS_STEP && now - innerState . mTimeLastNotification > Constants . MIN_PROGRESS_TIME ) { mInfo . mCurrentBytes = innerState . mBytesSoFar ; mDB . updateDownloadCurrentBytes ( mInfo ) ; innerState . mBytesNotified = innerState . mBytesSoFar ; innerState . mTimeLastNotification = now ; long totalBytesSoFar = innerState . mBytesThisSession + mService . mBytesSoFar ; if ( Constants . LOGVV ) { Log . v ( Constants . TAG , "downloaded " + mInfo . mCurrentBytes + " out of " + mInfo . mTotalBytes ) ; Log . v ( Constants . TAG , "     total " + totalBytesSoFar + " out of " + mService . mTotalLength ) ; } mService . notifyUpdateBytes ( totalBytesSoFar ) ; } }
report download progress through the database if necessary .
