1/* 2 * Copyright (C) 2024 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"; 18package android.telephony.iwlan; 19 20option java_package = "com.android.os.telephony.iwlan"; 21option java_outer_classname = "IwlanProtoEnums"; 22option java_multiple_files = true; 23 24// Events which trigger underlying network validation 25enum UnderlyingNetworkValidationEvent { 26 // Unspecified event 27 NETWORK_VALIDATION_EVENT_UNSPECIFIED = 0; 28 29 // Trigger network validation when making a call. 30 NETWORK_VALIDATION_EVENT_MAKING_CALL = 1; 31 32 // Trigger network validation when screen on. 33 NETWORK_VALIDATION_EVENT_SCREEN_ON = 2; 34 35 // Trigger network validation when no response on network. 36 NETWORK_VALIDATION_EVENT_NO_RESPONSE = 3; 37} 38 39// Results for underlying network validation 40enum UnderlyingNetworkValidationResult { 41 // Unspecified validation result 42 NETWORK_VALIDATION_RESULT_UNSPECIFIED = 0; 43 44 // The overall status of the network is that it is invalid; it neither provides connectivity nor 45 // has been exempted from validation. 46 NETWORK_VALIDATION_RESULT_INVALID = 1; 47 48 // The overall status of the network is that it is valid, this may be because it provides full 49 // Internet access (all probes succeeded), or because other properties of the network caused 50 // probes not to be run. 51 NETWORK_VALIDATION_RESULT_VALID = 2; 52 53 // The overall status of the network is that it provides partial connectivity; some probed 54 // services succeeded but others failed. 55 NETWORK_VALIDATION_RESULT_PARTIALLY_VALID = 3; 56 57 // Due to the properties of the network, validation was not performed. 58 NETWORK_VALIDATION_RESULT_SKIPPED = 4; 59} 60 61// Transport types for the underlying network 62enum TransportType { 63 // Unspecified transport type 64 TRANSPORT_TYPE_UNSPECIFIED = 0; 65 66 // Indicates the network uses a Cellular transport. 67 TRANSPORT_TYPE_CELLULAR = 1; 68 69 // Indicates the network uses a Wi-Fi transport. 70 TRANSPORT_TYPE_WIFI = 2; 71}