private void addFragInternal(int i, long l)
 {
     Log.d("smali", "Lcom/samsung/sec/mtv/ui/common/MtvUiFragHandler;->addFragInternal(IJ)V");
     if(i >= 0 && i <= 17)
     {
         MtvUtilDebug.Low("MtvUiFragHandler", (new StringBuilder()).append("addFragInternal!!! FragType:").append(i).toString());
         fragHashMap.put(Integer.valueOf(i), Long.valueOf(l));
     } else
     {
         MtvUtilDebug.Low("MtvUiFragHandler", (new StringBuilder()).append("addFragInternal!!! Invalid FragType:").append(i).toString());
     }
 }
示例#2
0
  @Override
  public void onDownloadProgress(DownloadProgressInfo progress) {
    mAverageSpeed.setText(
        getString(
            com.godot.game.R.string.kilobytes_per_second,
            Helpers.getSpeedString(progress.mCurrentSpeed)));
    mTimeRemaining.setText(
        getString(
            com.godot.game.R.string.time_remaining,
            Helpers.getTimeRemaining(progress.mTimeRemaining)));

    progress.mOverallTotal = progress.mOverallTotal;
    mPB.setMax((int) (progress.mOverallTotal >> 8));
    mPB.setProgress((int) (progress.mOverallProgress >> 8));
    mProgressPercent.setText(
        Long.toString(progress.mOverallProgress * 100 / progress.mOverallTotal) + "%");
    mProgressFraction.setText(
        Helpers.getDownloadProgressString(progress.mOverallProgress, progress.mOverallTotal));
  }