1/* 2 * Copyright (C) 2023 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 permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19package android.os.statsd.corenetworking.connectivity; 20 21option java_package = "com.android.os.corenetworking.connectivity"; 22option java_multiple_files = true; 23 24import "frameworks/proto_logging/stats/atom_field_options.proto"; 25import "frameworks/proto_logging/stats/enums/corenetworking/connectivity/enums.proto"; 26 27/** 28 * Logs validation failure statistics for all <Rat, Signalstrength> pair on the system 29 * default network once a day. 30 * 31 * Logs from: 32 * packages/modules/Connectivity/service/src/com/android/server/ConnectivityService.java 33 */ 34message NetworkValidationFailureStatsDailyReported { 35 optional ValidationFailureStatsPerRatSignalPair validation_failure_stats_per_rat_signal_pair = 1 36 [(android.os.statsd.log_mode) = MODE_BYTES]; 37} 38 39/** 40 * Logs validation failure statistics on each list of <Rat, Signalstrength> pair. 41 * 42 * Logs from: 43 * packages/modules/Connectivity/service/src/com/android/server/ConnectivityService.java 44 */ 45message ValidationFailureStatsPerRatSignalPair{ 46 repeated ValidationFailureStatsForRatSignalPair validation_failure_stats_for_rat_signal_pair= 1; 47} 48 49/** 50 * Logs the validation failure statistics about a <Rat, Signalstrength> pair of the system 51 * default network. The statistics include: 1.Validation failure count. 2.Validation failure 52 * duration in milliseconds. 3.Total duration of connection in service in milliseconds. 53 * 54 * Logs from: 55 * packages/modules/Connectivity/service/src/com/android/server/ConnectivityService.java 56 */ 57message ValidationFailureStatsForRatSignalPair { 58 // Radio access type(2G, 3G, 4G, 5G, WIFI) of the system default network 59 optional android.corenetworking.connectivity.RatType rat_type = 1; 60 61 // The signal strength(Poor, moderate, good, great) of the default network when validation 62 // failed. This field is only meaningful in the mobile network, it is useless in the WIFI 63 // network. So the value will always be 'SIGNAL_STRENGTH_NONE_OR_UNKNOWN' in WIFI network. 64 optional android.corenetworking.connectivity.SignalStrength signal_strength= 2; 65 66 // The number of times the network transitioned from validation success to validation failure 67 optional int32 count_of_failures = 3; 68 69 // The duration of validation_failure in milliseconds 70 optional int32 validation_failure_duration_millis = 4; 71 72 // The duration of connection in service in milliseconds 73 optional int32 connection_in_service_duration_millis = 5; 74} 75 76 77 78