Hi, Checking out 1.0.1 release branch.
In DeviceBandwidthSampler.java line 92
long newBytes = TrafficStats.getTotalRxBytes();
This method returns number of bytes received since device boot. Counts packets across all network interfaces, and always increases monotonically since device boot.
It is not app specific as there might be another background task or sync service running/started by another app at the same time.
@xardox69 I think this is done on purpose. Using getUidRxBytes() will indeed return the value for a specific uid, but what you really want is to monitor the "system wide" network quality.
Hi, Checking out 1.0.1 release branch. In DeviceBandwidthSampler.java line 92 long newBytes = TrafficStats.getTotalRxBytes();
This method returns number of bytes received since device boot. Counts packets across all network interfaces, and always increases monotonically since device boot.
It is not app specific as there might be another background task or sync service running/started by another app at the same time.