public class DeviceBandwidthSampler
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addFinalSample()
Resets previously read byte count after recording a sample, so that
we don't count bytes downloaded in between sampling sessions.
|
protected void |
addSample()
Method for polling for the change in total bytes since last update and
adding it to the BandwidthManager.
|
static DeviceBandwidthSampler |
getInstance()
Retrieval method for the DeviceBandwidthSampler singleton.
|
boolean |
isSampling() |
void |
startSampling()
Method call to start sampling for download bandwidth.
|
void |
stopSampling()
Finish sampling and prevent further changes to the
ConnectionClass until another timer is started.
|
public static DeviceBandwidthSampler getInstance()
public void startSampling()
public void stopSampling()
protected void addSample()
protected void addFinalSample()
public boolean isSampling()