1 /** 2 * Copyright (c) 2020, The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing perNmissions and 14 * limitations under the License. 15 */ 16 17 package android.net; 18 19 @JavaDerive(toString=true) 20 parcelable DataStallReportParcelable { 21 /** 22 * Timestamp of the report, relative to SystemClock.elapsedRealtime(). 23 */ 24 long timestampMillis = 0; 25 26 /** 27 * Detection method of the data stall, one of DataStallReport.DETECTION_METHOD_*. 28 */ 29 int detectionMethod = 1; 30 31 /** 32 * @see android.net.ConnectivityDiagnosticsManager.DataStallReport.KEY_TCP_PACKET_FAIL_RATE. 33 * Only set if the detection method is TCP, otherwise 0. 34 */ 35 int tcpPacketFailRate = 2; 36 37 /** 38 * @see android.net.ConnectivityDiagnosticsManager.DataStallReport 39 * .KEY_TCP_METRICS_COLLECTION_PERIOD_MILLIS. 40 * Only set if the detection method is TCP, otherwise 0. 41 */ 42 int tcpMetricsCollectionPeriodMillis = 3; 43 44 /** 45 * @see android.net.ConnectivityDiagnosticsManager.DataStallReport.KEY_DNS_CONSECUTIVE_TIMEOUTS. 46 * Only set if the detection method is DNS, otherwise 0. 47 */ 48 int dnsConsecutiveTimeouts = 4; 49 } 50