Fields Summary |
---|
public static final int | UNKNOWN_INTRepresents a value that you can use to test if an integer field is set to a good value |
public static final long | UNKNOWN_LONGRepresents a value that you can use to test if a long field is set to a good value |
public static final int | NORMALIZED_MIN_SIGNAL_STRENGTH |
public static final int | NORMALIZED_MAX_SIGNAL_STRENGTH |
public static final int | NORMALIZED_SIGNAL_STRENGTH_RANGE |
private int | mNetworkType |
private int | mNormalizedSignalStrength |
private long | mPacketCount |
private long | mPacketErrorCount |
private int | mTheoreticalTxBandwidth |
private int | mTheoreticalRxBandwidth |
private int | mTheoreticalLatency |
private long | mLastDataSampleTime |
private int | mDataSampleDuration |
protected static final int | OBJECT_TYPE_LINK_QUALITY_INFOImplement the Parcelable interface. |
protected static final int | OBJECT_TYPE_WIFI_LINK_QUALITY_INFO |
protected static final int | OBJECT_TYPE_MOBILE_LINK_QUALITY_INFO |
public static final Creator | CREATOR |
Methods Summary |
---|
public int | describeContents()Implement the Parcelable interface
return 0;
|
public int | getDataSampleDuration()returns the sample duration used
return mDataSampleDuration;
|
public long | getLastDataSampleTime()returns the time stamp of the last sample
return mLastDataSampleTime;
|
public int | getNetworkType()returns the type of network this link is connected to
return mNetworkType;
|
public int | getNormalizedSignalStrength()returns the signal strength normalized across multiple types of networks
return mNormalizedSignalStrength;
|
public long | getPacketCount()returns the total number of packets sent or received in sample duration
return mPacketCount;
|
public long | getPacketErrorCount()returns the total number of packets errors encountered in sample duration
return mPacketErrorCount;
|
public int | getTheoreticalLatency()returns the theoretical latency of this network
return mTheoreticalLatency;
|
public int | getTheoreticalRxBandwidth()returns the theoretical download bandwidth of this network
return mTheoreticalRxBandwidth;
|
public int | getTheoreticalTxBandwidth()returns the theoretical upload bandwidth of this network
return mTheoreticalTxBandwidth;
|
protected void | initializeFromParcel(android.os.Parcel in)
mNetworkType = in.readInt();
mNormalizedSignalStrength = in.readInt();
mPacketCount = in.readLong();
mPacketErrorCount = in.readLong();
mTheoreticalTxBandwidth = in.readInt();
mTheoreticalRxBandwidth = in.readInt();
mTheoreticalLatency = in.readInt();
mLastDataSampleTime = in.readLong();
mDataSampleDuration = in.readInt();
|
public void | setDataSampleDuration(int dataSampleDuration)
mDataSampleDuration = dataSampleDuration;
|
public void | setLastDataSampleTime(long lastDataSampleTime)
mLastDataSampleTime = lastDataSampleTime;
|
public void | setNetworkType(int networkType)
mNetworkType = networkType;
|
public void | setNormalizedSignalStrength(int normalizedSignalStrength)
mNormalizedSignalStrength = normalizedSignalStrength;
|
public void | setPacketCount(long packetCount)
mPacketCount = packetCount;
|
public void | setPacketErrorCount(long packetErrorCount)
mPacketErrorCount = packetErrorCount;
|
public void | setTheoreticalLatency(int theoreticalLatency)
mTheoreticalLatency = theoreticalLatency;
|
public void | setTheoreticalRxBandwidth(int theoreticalRxBandwidth)
mTheoreticalRxBandwidth = theoreticalRxBandwidth;
|
public void | setTheoreticalTxBandwidth(int theoreticalTxBandwidth)
mTheoreticalTxBandwidth = theoreticalTxBandwidth;
|
public void | writeToParcel(android.os.Parcel dest, int flags)
writeToParcel(dest, flags, OBJECT_TYPE_LINK_QUALITY_INFO);
|
public void | writeToParcel(android.os.Parcel dest, int flags, int objectType)
dest.writeInt(objectType);
dest.writeInt(mNetworkType);
dest.writeInt(mNormalizedSignalStrength);
dest.writeLong(mPacketCount);
dest.writeLong(mPacketErrorCount);
dest.writeInt(mTheoreticalTxBandwidth);
dest.writeInt(mTheoreticalRxBandwidth);
dest.writeInt(mTheoreticalLatency);
dest.writeLong(mLastDataSampleTime);
dest.writeInt(mDataSampleDuration);
|