Sarah Chin | 4e5a846 | 2021-06-14 11:26:00 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 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.hardware.radio; |
| 18 | |
| 19 | import android.hardware.radio.RadioTechnology; |
| 20 | |
| 21 | @VintfStability |
| 22 | @Backing(type="int") |
Sarah Chin | da10904 | 2022-03-17 18:44:20 -0700 | [diff] [blame] | 23 | @JavaDerive(toString=true) |
Sarah Chin | 4e5a846 | 2021-06-14 11:26:00 -0700 | [diff] [blame] | 24 | enum RadioAccessFamily { |
| 25 | UNKNOWN = 1 << RadioTechnology.UNKNOWN, |
| 26 | GPRS = 1 << RadioTechnology.GPRS, |
| 27 | EDGE = 1 << RadioTechnology.EDGE, |
| 28 | UMTS = 1 << RadioTechnology.UMTS, |
| 29 | IS95A = 1 << RadioTechnology.IS95A, |
| 30 | IS95B = 1 << RadioTechnology.IS95B, |
| 31 | ONE_X_RTT = 1 << RadioTechnology.ONE_X_RTT, |
| 32 | EVDO_0 = 1 << RadioTechnology.EVDO_0, |
| 33 | EVDO_A = 1 << RadioTechnology.EVDO_A, |
| 34 | HSDPA = 1 << RadioTechnology.HSDPA, |
| 35 | HSUPA = 1 << RadioTechnology.HSUPA, |
| 36 | HSPA = 1 << RadioTechnology.HSPA, |
| 37 | EVDO_B = 1 << RadioTechnology.EVDO_B, |
| 38 | EHRPD = 1 << RadioTechnology.EHRPD, |
| 39 | LTE = 1 << RadioTechnology.LTE, |
| 40 | HSPAP = 1 << RadioTechnology.HSPAP, |
| 41 | GSM = 1 << RadioTechnology.GSM, |
| 42 | TD_SCDMA = 1 << RadioTechnology.TD_SCDMA, |
Sarah Chin | 1f6aff8 | 2021-11-10 15:19:43 -0800 | [diff] [blame] | 43 | IWLAN = 1 << RadioTechnology.IWLAN, |
Sarah Chin | ef437d9 | 2022-11-17 09:41:48 -0800 | [diff] [blame] | 44 | /** @deprecated use LTE instead. */ |
Sarah Chin | 4e5a846 | 2021-06-14 11:26:00 -0700 | [diff] [blame] | 45 | LTE_CA = 1 << RadioTechnology.LTE_CA, |
| 46 | /** |
| 47 | * 5G NR. This is only use in 5G Standalone mode. |
| 48 | */ |
| 49 | NR = 1 << RadioTechnology.NR, |
| 50 | } |