1/* 2 * Copyright (C) 2018 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; 19 20option java_outer_classname = "TelephonyProtoEnums"; 21option java_multiple_files = true; 22 23// Data conn. power states, primarily used by android/telephony/DataConnectionRealTimeInfo.java. 24enum DataConnectionPowerStateEnum { 25 DATA_CONNECTION_POWER_STATE_LOW = 1; 26 DATA_CONNECTION_POWER_STATE_MEDIUM = 2; 27 DATA_CONNECTION_POWER_STATE_HIGH = 3; 28 DATA_CONNECTION_POWER_STATE_UNKNOWN = 2147483647; // Java Integer.MAX_VALUE; 29} 30 31// Network type enums, primarily used by android/telephony/TelephonyManager.java. 32// Do not add negative types. 33enum NetworkTypeEnum { 34 NETWORK_TYPE_UNKNOWN = 0; 35 NETWORK_TYPE_GPRS = 1; 36 NETWORK_TYPE_EDGE = 2; 37 NETWORK_TYPE_UMTS = 3; 38 NETWORK_TYPE_CDMA = 4; 39 NETWORK_TYPE_EVDO_0 = 5; 40 NETWORK_TYPE_EVDO_A = 6; 41 NETWORK_TYPE_1XRTT = 7; 42 NETWORK_TYPE_HSDPA = 8; 43 NETWORK_TYPE_HSUPA = 9; 44 NETWORK_TYPE_HSPA = 10; 45 NETWORK_TYPE_IDEN = 11; 46 NETWORK_TYPE_EVDO_B = 12; 47 NETWORK_TYPE_LTE = 13; 48 NETWORK_TYPE_EHRPD = 14; 49 NETWORK_TYPE_HSPAP = 15; 50 NETWORK_TYPE_GSM = 16; 51 NETWORK_TYPE_TD_SCDMA = 17; 52 NETWORK_TYPE_IWLAN = 18; 53 NETWORK_TYPE_LTE_CA = 19; 54} 55 56// Signal strength levels, primarily used by android/telephony/SignalStrength.java. 57enum SignalStrengthEnum { 58 SIGNAL_STRENGTH_NONE_OR_UNKNOWN = 0; 59 SIGNAL_STRENGTH_POOR = 1; 60 SIGNAL_STRENGTH_MODERATE = 2; 61 SIGNAL_STRENGTH_GOOD = 3; 62 SIGNAL_STRENGTH_GREAT = 4; 63} 64