1/*
2 * Copyright (C) 2017 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
17package android.telephony;
18
19/**
20 * Contains radio access network related constants.
21 * @hide
22 */
23public final class RadioNetworkConstants {
24
25    public static final class RadioAccessNetworks {
26        public static final int GERAN = 1;
27        public static final int UTRAN = 2;
28        public static final int EUTRAN = 3;
29        /** @hide */
30        public static final int CDMA2000 = 4;
31    }
32
33    /**
34     * Frenquency bands for GERAN.
35     * http://www.etsi.org/deliver/etsi_ts/145000_145099/145005/14.00.00_60/ts_145005v140000p.pdf
36     */
37    public static final class GeranBands {
38        public static final int BAND_T380 = 1;
39        public static final int BAND_T410 = 2;
40        public static final int BAND_450 = 3;
41        public static final int BAND_480 = 4;
42        public static final int BAND_710 = 5;
43        public static final int BAND_750 = 6;
44        public static final int BAND_T810 = 7;
45        public static final int BAND_850 = 8;
46        public static final int BAND_P900 = 9;
47        public static final int BAND_E900 = 10;
48        public static final int BAND_R900 = 11;
49        public static final int BAND_DCS1800 = 12;
50        public static final int BAND_PCS1900 = 13;
51        public static final int BAND_ER900 = 14;
52    }
53
54    /**
55     * Frenquency bands for UTRAN.
56     * http://www.etsi.org/deliver/etsi_ts/125100_125199/125104/13.03.00_60/ts_125104v130p.pdf
57     */
58    public static final class UtranBands {
59        public static final int BAND_1 = 1;
60        public static final int BAND_2 = 2;
61        public static final int BAND_3 = 3;
62        public static final int BAND_4 = 4;
63        public static final int BAND_5 = 5;
64        public static final int BAND_6 = 6;
65        public static final int BAND_7 = 7;
66        public static final int BAND_8 = 8;
67        public static final int BAND_9 = 9;
68        public static final int BAND_10 = 10;
69        public static final int BAND_11 = 11;
70        public static final int BAND_12 = 12;
71        public static final int BAND_13 = 13;
72        public static final int BAND_14 = 14;
73        /** band 15, 16, 17, 18 are reserved */
74        public static final int BAND_19 = 19;
75        public static final int BAND_20 = 20;
76        public static final int BAND_21 = 21;
77        public static final int BAND_22 = 22;
78        /** band 23, 24 are reserved */
79        public static final int BAND_25 = 25;
80        public static final int BAND_26 = 26;
81    }
82
83    /**
84     * Frenquency bands for EUTRAN.
85     * http://www.etsi.org/deliver/etsi_ts/136100_136199/136101/14.03.00_60/ts_136101v140p.pdf
86     */
87    public static final class EutranBands {
88        public static final int BAND_1 = 1;
89        public static final int BAND_2 = 2;
90        public static final int BAND_3 = 3;
91        public static final int BAND_4 = 4;
92        public static final int BAND_5 = 5;
93        public static final int BAND_6 = 6;
94        public static final int BAND_7 = 7;
95        public static final int BAND_8 = 8;
96        public static final int BAND_9 = 9;
97        public static final int BAND_10 = 10;
98        public static final int BAND_11 = 11;
99        public static final int BAND_12 = 12;
100        public static final int BAND_13 = 13;
101        public static final int BAND_14 = 14;
102        public static final int BAND_17 = 17;
103        public static final int BAND_18 = 18;
104        public static final int BAND_19 = 19;
105        public static final int BAND_20 = 20;
106        public static final int BAND_21 = 21;
107        public static final int BAND_22 = 22;
108        public static final int BAND_23 = 23;
109        public static final int BAND_24 = 24;
110        public static final int BAND_25 = 25;
111        public static final int BAND_26 = 26;
112        public static final int BAND_27 = 27;
113        public static final int BAND_28 = 28;
114        public static final int BAND_30 = 30;
115        public static final int BAND_31 = 31;
116        public static final int BAND_33 = 33;
117        public static final int BAND_34 = 34;
118        public static final int BAND_35 = 35;
119        public static final int BAND_36 = 36;
120        public static final int BAND_37 = 37;
121        public static final int BAND_38 = 38;
122        public static final int BAND_39 = 39;
123        public static final int BAND_40 = 40;
124        public static final int BAND_41 = 41;
125        public static final int BAND_42 = 42;
126        public static final int BAND_43 = 43;
127        public static final int BAND_44 = 44;
128        public static final int BAND_45 = 45;
129        public static final int BAND_46 = 46;
130        public static final int BAND_47 = 47;
131        public static final int BAND_48 = 48;
132        public static final int BAND_65 = 65;
133        public static final int BAND_66 = 66;
134        public static final int BAND_68 = 68;
135        public static final int BAND_70 = 70;
136    }
137
138    /**
139     * Frenquency bands for CDMA2000.
140     * http://www.3gpp2.org/Public_html/Specs/C.S0057-E_v1.0_Bandclass_Specification.pdf
141     * @hide
142     *
143     * TODO(yinxu): Check with the nexus team about the definition of CDMA bands.
144     */
145    public static final class CdmaBands {
146        public static final int BAND_0 = 1;
147        public static final int BAND_1 = 2;
148        public static final int BAND_2 = 3;
149        public static final int BAND_3 = 4;
150        public static final int BAND_4 = 5;
151        public static final int BAND_5 = 6;
152        public static final int BAND_6 = 7;
153        public static final int BAND_7 = 8;
154        public static final int BAND_8 = 9;
155        public static final int BAND_9 = 10;
156        public static final int BAND_10 = 11;
157        public static final int BAND_11 = 12;
158        public static final int BAND_12 = 13;
159        public static final int BAND_13 = 14;
160        public static final int BAND_14 = 15;
161        public static final int BAND_15 = 16;
162        public static final int BAND_16 = 17;
163        public static final int BAND_17 = 18;
164        public static final int BAND_18 = 19;
165        public static final int BAND_19 = 20;
166        public static final int BAND_20 = 21;
167        public static final int BAND_21 = 22;
168    }
169}
170