FileDocCategorySizeDatePackage
NetworkStatsEntity.javaAPI DocAndroid 1.5 API2706Wed May 06 22:41:56 BST 2009com.google.android.net

NetworkStatsEntity

public class NetworkStatsEntity extends HttpEntityWrapper

Fields Summary
private static final int
HTTP_STATS_EVENT
private final String
mUa
private final int
mUid
private final long
mStartTx
private final long
mStartRx
private final long
mResponseLatency
private final long
mProcessingStartTime
Constructors Summary
public NetworkStatsEntity(HttpEntity orig, String ua, int uid, long startTx, long startRx, long responseLatency, long processingStartTime)

        super(orig);
        this.mUa = ua;
        this.mUid = uid;
        this.mStartTx = startTx;
        this.mStartRx = startRx;
        this.mResponseLatency = responseLatency;
        this.mProcessingStartTime = processingStartTime;
    
Methods Summary
public java.io.InputStreamgetContent()

        InputStream orig = super.getContent();
        return new NetworkStatsInputStream(orig);
    
public static booleanshouldLogNetworkStats()

      return "1".equals(SystemProperties.get("googlehttpclient.logstats"));