Home
last modified time | relevance | path

Searched refs:ValidationProbeEvent (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/net/metrics/
DValidationProbeEvent.java38 public final class ValidationProbeEvent implements IpConnectivityLog.Event { class
70 private ValidationProbeEvent(long durationMs, int probeType, int returnCode) { in ValidationProbeEvent() method in ValidationProbeEvent
76 private ValidationProbeEvent(Parcel in) { in ValidationProbeEvent() method in ValidationProbeEvent
121 public ValidationProbeEvent build() { in build()
122 return new ValidationProbeEvent(mDurationMs, mProbeType, mReturnCode); in build()
141 public static final @android.annotation.NonNull Parcelable.Creator<ValidationProbeEvent> CREATOR
142 = new Parcelable.Creator<ValidationProbeEvent>() {
143 public ValidationProbeEvent createFromParcel(Parcel in) {
144 return new ValidationProbeEvent(in);
147 public ValidationProbeEvent[] newArray(int size) {
[all …]
/frameworks/base/tests/net/common/java/android/net/metrics/
DValidationProbeEventTest.kt45 var validationProbeEvent = ValidationProbeEvent.Builder() in hasType()
46 .setProbeType(ValidationProbeEvent.PROBE_DNS, false).build() in hasType()
50 validationProbeEvent = ValidationProbeEvent.Builder() in hasType()
52 .setProbeType(ValidationProbeEvent.PROBE_DNS, true) in hasType()
53 .setReturnCode(ValidationProbeEvent.DNS_SUCCESS) in hasType()
57 assertTrue(validationProbeEvent.probeType hasType ValidationProbeEvent.PROBE_DNS) in hasType()
59 assertEquals(ValidationProbeEvent.DNS_SUCCESS, validationProbeEvent.returnCode) in hasType()
66 val probeFields = ValidationProbeEvent::class.java.declaredFields.filter { in testGetProbeName()
74 val stringValue = ValidationProbeEvent.getProbeName(intValue) in testGetProbeName()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java41 import android.net.metrics.ValidationProbeEvent;
195 if (in instanceof ValidationProbeEvent) { in setEvent()
196 setValidationProbeEvent(out, (ValidationProbeEvent) in); in setEvent()
254 private static void setValidationProbeEvent(IpConnectivityEvent out, ValidationProbeEvent in) { in setValidationProbeEvent()
255 IpConnectivityLogClass.ValidationProbeEvent validationProbeEvent = in setValidationProbeEvent()
256 new IpConnectivityLogClass.ValidationProbeEvent(); in setValidationProbeEvent()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java45 import android.net.metrics.ValidationProbeEvent;
271 final ValidationProbeEvent validationEv = new ValidationProbeEvent.Builder() in testEndToEndLogging()
273 .setProbeType(ValidationProbeEvent.PROBE_HTTP, true) in testEndToEndLogging()
DIpConnectivityEventBuilderTest.java43 import android.net.metrics.ValidationProbeEvent;
356 aType(ValidationProbeEvent.class), in testValidationProbeEventSerialization()
358 anInt(ValidationProbeEvent.PROBE_HTTP), in testValidationProbeEventSerialization()
/frameworks/base/proto/src/
Dipconnectivity.proto165 // This message is associated to android.net.metrics.ValidationProbeEvent.
167 message ValidationProbeEvent { message
176 // android.net.metrics.ValidationProbeEvent.
601 ValidationProbeEvent validation_probe_event = 8;
/frameworks/base/api/
Dtest-current.txt1626 public final class ValidationProbeEvent implements android.net.metrics.IpConnectivityLog.Event {
1638 public static final class ValidationProbeEvent.Builder {
1639 ctor public ValidationProbeEvent.Builder();
1640 method @NonNull public android.net.metrics.ValidationProbeEvent build();
1641 method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setDurationMs(long);
1642 …method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setProbeType(int, boolean);
1643 method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setReturnCode(int);
Dsystem-current.txt4404 public final class ValidationProbeEvent implements android.net.metrics.IpConnectivityLog.Event {
4416 public static final class ValidationProbeEvent.Builder {
4417 ctor public ValidationProbeEvent.Builder();
4418 method @NonNull public android.net.metrics.ValidationProbeEvent build();
4419 method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setDurationMs(long);
4420 …method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setProbeType(int, boolean);
4421 method @NonNull public android.net.metrics.ValidationProbeEvent.Builder setReturnCode(int);