OSDN Git Service

prettify debug informations
authorvandwalle <vandwalle@google.com>
Sun, 26 Oct 2014 21:15:33 +0000 (14:15 -0700)
committervandwalle <vandwalle@google.com>
Sun, 26 Oct 2014 21:15:33 +0000 (14:15 -0700)
Change-Id: I8e5c982f882a333e3f5ffdde6418447572547ea5

src/com/android/settings/wifi/AccessPoint.java

index 8e71819..9afab4b 100644 (file)
@@ -444,8 +444,9 @@ class AccessPoint extends Preference {
             if (bssid != null) {
                 visibility.append(" ").append(bssid);
             }
-            visibility.append(" score=").append(mInfo.score);
+            visibility.append(" rssi=").append(mInfo.getRssi());
             visibility.append(" ");
+            visibility.append(" score=").append(mInfo.score);
             visibility.append(String.format("tx=%.1f,", mInfo.txSuccessRate));
             visibility.append(String.format("%.1f,", mInfo.txRetriesRate));
             visibility.append(String.format("%.1f ", mInfo.txBadRate));
@@ -490,7 +491,7 @@ class AccessPoint extends Preference {
                     }
                     if (n5 < 4) {
                         if (scans5GHz == null) scans5GHz = new StringBuilder();
-                        scans5GHz.append(" {").append(result.BSSID);
+                        scans5GHz.append(" \n{").append(result.BSSID);
                         if (bssid != null && result.BSSID.equals(bssid)) scans5GHz.append("*");
                         scans5GHz.append("=").append(result.frequency);
                         scans5GHz.append(",").append(result.level);
@@ -510,7 +511,7 @@ class AccessPoint extends Preference {
                     }
                     if (n24 < 4) {
                         if (scans24GHz == null) scans24GHz = new StringBuilder();
-                        scans24GHz.append(" {").append(result.BSSID);
+                        scans24GHz.append(" \n{").append(result.BSSID);
                         if (bssid != null && result.BSSID.equals(bssid)) scans24GHz.append("*");
                         scans24GHz.append("=").append(result.frequency);
                         scans24GHz.append(",").append(result.level);