blob: 60f8d8d78545a97252e66917294ef96d7de07081 [file] [log] [blame]
Bookatz1a1b0462018-01-12 11:47:03 -08001/*
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// Signal strength levels, primarily used by android/telephony/SignalStrength.java.
32enum 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}