示例#1
0
  protected void addPingHistory(int rtt, boolean re_base) {
    int x =
        (adapter.getCurrentDataUploadSpeed(SPEED_AVERAGE_PERIOD)
            + adapter.getCurrentProtocolUploadSpeed(SPEED_AVERAGE_PERIOD));
    int y =
        (adapter.getCurrentDataDownloadSpeed(SPEED_AVERAGE_PERIOD)
            + adapter.getCurrentProtocolDownloadSpeed(SPEED_AVERAGE_PERIOD));

    for (int i = 0; i < ping_mappers.length; i++) {

      ping_mappers[i].addPing(x, y, rtt, re_base);
    }

    Iterator it = transient_mappers.iterator();

    while (it.hasNext()) {

      ((SpeedManagerPingMapperImpl) it.next()).addPing(x, y, rtt, re_base);
    }
  }
示例#2
0
 public int getCurrentProtocolDownloadSpeed() {
   return (adapter.getCurrentProtocolDownloadSpeed(-1));
 }