Merge "Support partial connectivity probe result option"

This commit is contained in:
Chiachang Wang
2019-03-13 06:49:03 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ enum ProbeResult {
VALID = 1;
INVALID = 2;
PORTAL = 3;
PARTIAL = 4;
}
enum ApBand {
@@ -86,4 +87,4 @@ message DnsEvent {
repeated int32 dns_return_code = 1;
// Indicate the timestamp of the dns event.
repeated int64 dns_time = 2;
}
}

View File

@@ -46,6 +46,8 @@ public class DataStallStatsUtils {
return DataStallEventProto.VALID;
} else if (result.isPortal()) {
return DataStallEventProto.PORTAL;
} else if (result.isPartialConnectivity()) {
return DataStallEventProto.PARTIAL;
} else {
return DataStallEventProto.INVALID;
}