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