Merge "Don't show unset score values for AccessPoints." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
32c65fccaf
@@ -335,6 +335,7 @@ public class AccessPoint implements Comparable<AccessPoint> {
|
||||
if (security != SECURITY_NONE) {
|
||||
builder.append(',').append(securityToString(security, pskType));
|
||||
}
|
||||
builder.append(",mRssi=").append(mRssi);
|
||||
builder.append(",level=").append(getLevel());
|
||||
if (mRankingScore != Integer.MIN_VALUE) {
|
||||
builder.append(",rankingScore=").append(mRankingScore);
|
||||
@@ -745,8 +746,12 @@ public class AccessPoint implements Comparable<AccessPoint> {
|
||||
visibility.append(" rssi=").append(mInfo.getRssi());
|
||||
visibility.append(" ");
|
||||
visibility.append(" score=").append(mInfo.score);
|
||||
visibility.append(" rankingScore=").append(getRankingScore());
|
||||
visibility.append(" badge=").append(getBadge());
|
||||
if (mRankingScore != Integer.MIN_VALUE) {
|
||||
visibility.append(" rankingScore=").append(getRankingScore());
|
||||
}
|
||||
if (mBadge != NetworkBadging.BADGING_NONE) {
|
||||
visibility.append(" badge=").append(getBadge());
|
||||
}
|
||||
visibility.append(String.format(" tx=%.1f,", mInfo.txSuccessRate));
|
||||
visibility.append(String.format("%.1f,", mInfo.txRetriesRate));
|
||||
visibility.append(String.format("%.1f ", mInfo.txBadRate));
|
||||
|
||||
Reference in New Issue
Block a user