Merge "Support partial connectivity probe result option"
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user