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