summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorHai Shalom <haishalom@google.com>2020-02-25 16:48:59 -0800
committerHai Shalom <haishalom@google.com>2020-02-26 14:29:48 -0800
commit5d02e209b7597c589e828a8de323ce826bd36a88 (patch)
tree38140d83efef69979be63fa84017e013275d0c50 /service
parentb8ffc29faf34413e989bcbd85b687c361857ec8f (diff)
[Passpoint] Print Ant, Internet in dump log of ScanDetailCache
Print Ant, Internet in dump log of ScanDetailCache. Bug: 150246287 Test: Verify toString functionality Change-Id: I48d9ef9c1bc84554c30c3df58c518eb9853753f6
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/ScanDetailCache.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/ScanDetailCache.java b/service/java/com/android/server/wifi/ScanDetailCache.java
index f3cbc95ab..c8490a5bc 100644
--- a/service/java/com/android/server/wifi/ScanDetailCache.java
+++ b/service/java/com/android/server/wifi/ScanDetailCache.java
@@ -20,6 +20,8 @@ import android.annotation.NonNull;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiConfiguration;
+import com.android.server.wifi.hotspot2.NetworkDetail;
+
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@@ -196,6 +198,11 @@ public class ScanDetailCache {
sbuf.append(String.format(",%4d.%02d.%02d.%02d.%03dms", ageDay,
ageHour, ageMin, ageSec, ageMilli));
}
+ NetworkDetail networkDetail = scanDetail.getNetworkDetail();
+ if (networkDetail != null && networkDetail.isInterworking()) {
+ sbuf.append(",Ant=").append(networkDetail.getAnt()).append(",Internet=")
+ .append(networkDetail.isInternet());
+ }
sbuf.append("} ");
}
sbuf.append('\n');