1/*
2 * Copyright (C) 2022 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.qns;
19
20option java_outer_classname = "QnsProtoEnums";
21option java_multiple_files = true;
22
23// QNS NetCapability Supported types
24enum NetCapability {
25    NET_CAPABILITY_MMS = 0;
26    NET_CAPABILITY_IMS = 4;
27    NET_CAPABILITY_CBS = 5;
28    NET_CAPABILITY_XCAP = 9;
29    NET_CAPABILITY_EIMS = 10;
30}
31
32// QNS Access Network Type
33enum AccessNetworkType {
34    EMPTY = -1;
35    UNKNOWN = 0;
36    GERAN = 1;
37    UTRAN = 2;
38    EUTRAN = 3;
39    CDMA2000 = 4;
40    IWLAN = 5;
41    NGRAN = 6;
42}
43
44// QNS Transport Type
45enum TransportType {
46    TRANSPORT_TYPE_INVALID = -1;
47    TRANSPORT_TYPE_WWAN = 1;
48    TRANSPORT_TYPE_WLAN = 2;
49}
50
51// QNS IWLAN Network Type
52enum IwlanNetworkType {
53    IWLAN_NETWORK_TYPE_NONE = -1;
54    IWLAN_NETWORK_TYPE_WIFI = 1;
55    IWLAN_NETWORK_TYPE_CST = 2;
56}
57
58// QNS Wfc Mode
59enum WfcMode {
60    WFC_MODE_UNKNOWN = 0;
61    WIFI_ONLY = 1;
62    CELLULAR_PREFERRED = 2;
63    WIFI_PREFERRED = 3;
64}
65
66// QNS Restrict Type
67enum RestrictType {
68    RESTRICT_TYPE_NONE = 0; // 0
69    RESTRICT_TYPE_GUARDING = 0x0001; // 1 << 0
70    RESTRICT_TYPE_THROTTLING = 0x0002; // 1 << 1
71    RESTRICT_TYPE_HO_NOT_ALLOWED = 0x0004; // 1 << 2
72    RESTRICT_TYPE_NON_PREFERRED_TRANSPORT = 0x0008; // 1 << 3
73    RESTRICT_TYPE_RTP_LOW_QUALITY = 0x0010; // 1 << 4
74    RESTRICT_TYPE_RESTRICT_IWLAN_IN_CALL = 0x0020; // 1 << 5
75    RESTRICT_TYPE_RESTRICT_IWLAN_CS_CALL = 0x0040; // 1 << 6
76    RESTRICT_TYPE_FALLBACK_TO_WWAN_IMS_REGI_FAIL = 0x0080; // 1 << 7
77    RESTRICT_TYPE_FALLBACK_ON_DATA_CONNECTION_FAIL = 0x0100; // 1 << 8
78    RESTRICT_TYPE_FALLBACK_TO_WWAN_RTT_BACKHAUL_FAIL = 0x0200; // 1 << 9
79}
80