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

View File

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