• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef LOCATIONHUB_IPC_INTERFACE_CODE_H
17 #define LOCATIONHUB_IPC_INTERFACE_CODE_H
18 
19 /* SAID: 2801 */
20 /* SAID: 2802 */
21 /* SAID: 2803 */
22 /* SAID: 2804 */
23 /* SAID: 2805 */
24 namespace OHOS {
25 namespace Location {
26 enum class LocatorInterfaceCode {
27     GET_SWITCH_STATE = 1,
28     REG_SWITCH_CALLBACK = 2,
29     START_LOCATING = 3,
30     STOP_LOCATING = 4,
31     GET_CACHE_LOCATION = 5,
32     ENABLE_ABILITY = 9,
33     UPDATE_SA_ABILITY = 10,
34     GEO_IS_AVAILABLE = 11,
35     GET_FROM_COORDINATE = 12,
36     GET_FROM_LOCATION_NAME = 13,
37     UNREG_SWITCH_CALLBACK = 15,
38     REG_GNSS_STATUS_CALLBACK = 16,
39     UNREG_GNSS_STATUS_CALLBACK = 17,
40     REG_NMEA_CALLBACK = 18,
41     UNREG_NMEA_CALLBACK = 19,
42     IS_PRIVACY_COMFIRMED = 20,
43     SET_PRIVACY_COMFIRM_STATUS = 21,
44     REG_CACHED_CALLBACK = 22,
45     UNREG_CACHED_CALLBACK = 23,
46     GET_CACHED_LOCATION_SIZE = 24,
47     FLUSH_CACHED_LOCATIONS = 25,
48     SEND_COMMAND = 26,
49     ADD_FENCE = 27,
50     REMOVE_FENCE = 28,
51     GET_ISO_COUNTRY_CODE = 29,
52     ENABLE_LOCATION_MOCK = 30,
53     DISABLE_LOCATION_MOCK = 31,
54     SET_MOCKED_LOCATIONS = 32,
55     ENABLE_REVERSE_GEOCODE_MOCK = 33,
56     DISABLE_REVERSE_GEOCODE_MOCK = 34,
57     SET_REVERSE_GEOCODE_MOCKINFO = 35,
58     REG_COUNTRY_CODE_CALLBACK = 36,
59     UNREG_COUNTRY_CODE_CALLBACK = 37,
60     PROXY_UID_FOR_FREEZE = 38,
61     RESET_ALL_PROXY = 39,
62     REG_NMEA_CALLBACK_v9 = 40,
63     UNREG_NMEA_CALLBACK_v9 = 41,
64     REPORT_LOCATION = 42,
65     REG_LOCATING_REQUIRED_DATA_CALLBACK = 43,
66     UNREG_LOCATING_REQUIRED_DATA_CALLBACK = 44,
67 };
68 
69 enum class GeoConvertInterfaceCode {
70     IS_AVAILABLE = 11,
71     GET_FROM_COORDINATE = 12,
72     GET_FROM_LOCATION_NAME_BY_BOUNDARY = 13,
73     ENABLE_REVERSE_GEOCODE_MOCK = 33,
74     DISABLE_REVERSE_GEOCODE_MOCK = 34,
75     SET_REVERSE_GEOCODE_MOCKINFO = 35,
76 };
77 
78 enum class GnssInterfaceCode {
79     SEND_LOCATION_REQUEST = 1,
80     GET_CACHED_LOCATION = 2,
81     SET_ENABLE = 3,
82     SELF_REQUEST = 4,
83     HANDLE_REMOTE_REQUEST = 5,
84     REFRESH_REQUESTS = 6,
85     REG_GNSS_STATUS = 7,
86     UNREG_GNSS_STATUS = 8,
87     REG_NMEA = 9,
88     UNREG_NMEA = 10,
89     REG_CACHED = 11,
90     UNREG_CACHED = 12,
91     GET_CACHED_SIZE = 13,
92     FLUSH_CACHED = 14,
93     SEND_COMMANDS = 15,
94     ADD_FENCE_INFO = 16,
95     REMOVE_FENCE_INFO = 17,
96     REPORT_GNSS_SESSION_STATUS = 18,
97     REPORT_SV = 19,
98     REPORT_NMEA = 20,
99     GET_ISO_COUNTRY_CODE = 21,
100     ENABLE_LOCATION_MOCK = 22,
101     DISABLE_LOCATION_MOCK = 23,
102     SET_MOCKED_LOCATIONS = 24,
103     ENABLE_REV_GEOCODE_MOCK = 25,
104     DISABLE_REV_GEOCODE_MOCK = 26,
105 };
106 
107 enum class NetworkInterfaceCode {
108     SEND_LOCATION_REQUEST = 1,
109     GET_CACHED_LOCATION = 2,
110     SET_ENABLE = 3,
111     SELF_REQUEST = 4,
112     HANDLE_REMOTE_REQUEST = 5,
113     REFRESH_REQUESTS = 6,
114     REG_GNSS_STATUS = 7,
115     UNREG_GNSS_STATUS = 8,
116     REG_NMEA = 9,
117     UNREG_NMEA = 10,
118     REG_CACHED = 11,
119     UNREG_CACHED = 12,
120     GET_CACHED_SIZE = 13,
121     FLUSH_CACHED = 14,
122     SEND_COMMANDS = 15,
123     ADD_FENCE_INFO = 16,
124     REMOVE_FENCE_INFO = 17,
125     REPORT_GNSS_SESSION_STATUS = 18,
126     REPORT_SV = 19,
127     REPORT_NMEA = 20,
128     GET_ISO_COUNTRY_CODE = 21,
129     ENABLE_LOCATION_MOCK = 22,
130     DISABLE_LOCATION_MOCK = 23,
131     SET_MOCKED_LOCATIONS = 24,
132     ENABLE_REV_GEOCODE_MOCK = 25,
133     DISABLE_REV_GEOCODE_MOCK = 26,
134 };
135 
136 enum class PassiveInterfaceCode {
137     SEND_LOCATION_REQUEST = 1,
138     GET_CACHED_LOCATION = 2,
139     SET_ENABLE = 3,
140     SELF_REQUEST = 4,
141     HANDLE_REMOTE_REQUEST = 5,
142     REFRESH_REQUESTS = 6,
143     REG_GNSS_STATUS = 7,
144     UNREG_GNSS_STATUS = 8,
145     REG_NMEA = 9,
146     UNREG_NMEA = 10,
147     REG_CACHED = 11,
148     UNREG_CACHED = 12,
149     GET_CACHED_SIZE = 13,
150     FLUSH_CACHED = 14,
151     SEND_COMMANDS = 15,
152     ADD_FENCE_INFO = 16,
153     REMOVE_FENCE_INFO = 17,
154     REPORT_GNSS_SESSION_STATUS = 18,
155     REPORT_SV = 19,
156     REPORT_NMEA = 20,
157     GET_ISO_COUNTRY_CODE = 21,
158     ENABLE_LOCATION_MOCK = 22,
159     DISABLE_LOCATION_MOCK = 23,
160     SET_MOCKED_LOCATIONS = 24,
161     ENABLE_REV_GEOCODE_MOCK = 25,
162     DISABLE_REV_GEOCODE_MOCK = 26,
163 };
164 } // namespace Location
165 } // namespace OHOS
166 #endif // LOCATIONHUB_IPC_INTERFACE_CODE_H