Bookatz | 1a1b046 | 2018-01-12 11:47:03 -0800 | [diff] [blame] | 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 | |
| 17 | syntax = "proto2"; |
| 18 | package android.telephony; |
| 19 | |
| 20 | option java_outer_classname = "TelephonyProtoEnums"; |
| 21 | option java_multiple_files = true; |
| 22 | |
| 23 | // Data conn. power states, primarily used by android/telephony/DataConnectionRealTimeInfo.java. |
| 24 | enum 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 | // Signal strength levels, primarily used by android/telephony/SignalStrength.java. |
| 32 | enum SignalStrengthEnum { |
| 33 | SIGNAL_STRENGTH_NONE_OR_UNKNOWN = 0; |
| 34 | SIGNAL_STRENGTH_POOR = 1; |
| 35 | SIGNAL_STRENGTH_MODERATE = 2; |
| 36 | SIGNAL_STRENGTH_GOOD = 3; |
| 37 | SIGNAL_STRENGTH_GREAT = 4; |
| 38 | } |