am d44c2f2c: am 1270e2e2: Merge change I96ddd6e2 into eclair-mr2

Merge commit 'd44c2f2c85c8720763837b89a8988b6e5cc248bf'

* commit 'd44c2f2c85c8720763837b89a8988b6e5cc248bf':
  Migration to TrafficStats.
This commit is contained in:
Ken Shirriff
2009-12-10 07:06:25 -08:00
committed by Android Git Automerger
7 changed files with 49 additions and 297 deletions

View File

@@ -17,8 +17,8 @@
package com.android.server;
import android.content.Context;
import android.net.TrafficStats;
import android.os.INetStatService;
import android.os.NetStat;
public class NetStatService extends INetStatService.Stub {
@@ -27,34 +27,34 @@ public class NetStatService extends INetStatService.Stub {
}
public long getMobileTxPackets() {
return NetStat.getMobileTxPkts();
return TrafficStats.getMobileTxPkts();
}
public long getMobileRxPackets() {
return NetStat.getMobileRxPkts();
return TrafficStats.getMobileRxPkts();
}
public long getMobileTxBytes() {
return NetStat.getMobileTxBytes();
return TrafficStats.getMobileTxBytes();
}
public long getMobileRxBytes() {
return NetStat.getMobileRxBytes();
return TrafficStats.getMobileRxBytes();
}
public long getTotalTxPackets() {
return NetStat.getTotalTxPkts();
return TrafficStats.getTotalTxPkts();
}
public long getTotalRxPackets() {
return NetStat.getTotalRxPkts();
return TrafficStats.getTotalRxPkts();
}
public long getTotalTxBytes() {
return NetStat.getTotalTxBytes();
return TrafficStats.getTotalTxBytes();
}
public long getTotalRxBytes() {
return NetStat.getTotalRxBytes();
return TrafficStats.getTotalRxBytes();
}
}