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 BLUETOOTH_SERVICE_IPC_INTERFACE_CODE_H
17 #define BLUETOOTH_SERVICE_IPC_INTERFACE_CODE_H
18 
19 #include "bluetooth_service_profile_interface_code.h"
20 #include "ipc_types.h"
21 
22 /* SAID: 1130 */
23 namespace OHOS {
24 namespace Bluetooth {
25 enum BluetoothBleAdvertiseCallbackInterfaceCode {
26     BT_BLE_ADVERTISE_CALLBACK_AUTO_STOP_EVENT = 0,
27     BT_BLE_ADVERTISE_CALLBACK_START_RESULT_EVENT,
28     BT_BLE_ADVERTISE_CALLBACK_ENABLE_RESULT_EVENT,
29     BT_BLE_ADVERTISE_CALLBACK_DISABLE_RESULT_EVENT,
30     BT_BLE_ADVERTISE_CALLBACK_STOP_RESULT_EVENT,
31     BT_BLE_ADVERTISE_CALLBACK_SET_ADV_DATA,
32     // The last code, if you want to add a new code, please add it before this
33     BT_BLE_ADVERTISE_CALLBACK_BUTT
34 };
35 
36 enum BluetoothBleAdvertiserInterfaceCode {
37     BLE_REGISTER_BLE_ADVERTISER_CALLBACK = 0,
38     BLE_DE_REGISTER_BLE_ADVERTISER_CALLBACK,
39     BLE_START_ADVERTISING,
40     BLE_START_ADVERTISING_WITH_RAWDATA,
41     BLE_STOP_ADVERTISING,
42     BLE_CLOSE,
43     BLE_GET_ADVERTISER_HANDLE,
44     BLE_SET_ADVERTISING_DATA,
45     BLE_ENABLE_ADVERTISING,
46     BLE_DISABLE_ADVERTISING,
47     // The last code, if you want to add a new code, please add it before this
48     BLE_ADVERTISER_BUTT
49 };
50 
51 enum BluetoothBleCentralManagerCallbackInterfaceCode {
52     BT_BLE_CENTRAL_MANAGER_CALLBACK = 0,
53     BT_BLE_CENTRAL_MANAGER_BLE_BATCH_CALLBACK,
54     BT_BLE_CENTRAL_MANAGER_CALLBACK_SCAN_FAILED,
55     BT_BLE_LPDEVICE_CALLBACK_NOTIFY_MSG_REPORT,
56     // The last code, if you want to add a new code, please add it before this
57     BT_BLE_CENTRAL_MANAGER_CALLBACK_BUTT
58 };
59 
60 enum BluetoothBleCentralManagerInterfaceCode {
61     BLE_REGISTER_BLE_CENTRAL_MANAGER_CALLBACK = 0,
62     BLE_DE_REGISTER_BLE_CENTRAL_MANAGER_CALLBACK,
63     BLE_START_SCAN,
64     BLE_START_SCAN_WITH_SETTINGS, // Deprecated
65     BLE_STOP_SCAN,
66     BLE_CONFIG_SCAN_FILTER, // Deprecated
67     BLE_REMOVE_SCAN_FILTER,
68     BLE_FREEZE_BY_RSS,
69     BLE_RESET_ALL_PROXY,
70     BLE_SET_LPDEVICE_ADV_PARAM,
71     BLE_SET_SCAN_REPORT_CHANNEL_TO_LPDEVICE,
72     BLE_ENABLE_SYNC_DATA_TO_LPDEVICE,
73     BLE_DISABLE_SYNC_DATA_TO_LPDEVICE,
74     BLE_SEND_PARAMS_TO_LPDEVICE,
75     BLE_IS_LPDEVICE_AVAILABLE,
76     BLE_SET_LPDEVICE_PARAM,
77     BLE_REMOVE_LPDEVICE_PARAM,
78     // The last code, if you want to add a new code, please add it before this
79     BLE_CENTRAL_MANAGER_BUTT
80 };
81 
82 enum BluetoothBlePeripheralObserverInterfaceCode {
83     BLE_ON_READ_REMOTE_RSSI_EVENT = 0,
84     BLE_PAIR_STATUS_CHANGED,
85     BLE_ACL_STATE_CHANGED,
86     // The last code, if you want to add a new code, please add it before this
87     BLE_PERIPHERAL_OBSERVER_BUTT
88 };
89 
90 enum BluetoothGattClientCallbackInterfaceCode {
91     BT_GATT_CLIENT_CALLBACK_CONNECT_STATE_CHANGE = 0,
92     BT_GATT_CLIENT_CALLBACK_CHARACTER_CHANGE,
93     BT_GATT_CLIENT_CALLBACK_CHARACTER_READ,
94     BT_GATT_CLIENT_CALLBACK_CHARACTER_WRITE,
95     BT_GATT_CLIENT_CALLBACK_DESCRIPTOR_READ,
96     BT_GATT_CLIENT_CALLBACK_DESCRIPTOR_WRITE,
97     BT_GATT_CLIENT_CALLBACK_MTU_UPDATE,
98     BT_GATT_CLIENT_CALLBACK_SERVICES_DISCOVER,
99     BT_GATT_CLIENT_CALLBACK_CONNECTION_PARA_CHANGE,
100     BT_GATT_CLIENT_CALLBACK_SERVICES_CHANGED,
101     BT_GATT_CLIENT_CALLBACK_READ_REMOTE_RSSI_VALUE,
102     // The last code, if you want to add a new code, please add it before this
103     BT_GATT_CLIENT_CALLBACK_BUTT
104 };
105 
106 enum BluetoothGattClientInterfaceCode {
107     BT_GATT_CLIENT_REGISTER_APP = 0,
108     BT_GATT_CLIENT_DEREGISTER_APP,
109     BT_GATT_CLIENT_CONNECT,
110     BT_GATT_CLIENT_DIS_CONNECT,
111     BT_GATT_CLIENT_DISCOVERY_SERVICES,
112     BT_GATT_CLIENT_READ_CHARACTERISTIC,
113     BT_GATT_CLIENT_WRITE_CHARACTERISTIC,
114     BT_GATT_CLIENT_SIGNED_WRITE_CHARACTERISTIC,
115     BT_GATT_CLIENT_READ_DESCRIPTOR,
116     BT_GATT_CLIENT_WRITE_DESCRIPTOR,
117     BT_GATT_CLIENT_REQUEST_EXCHANGE_MTU,
118     BT_GATT_CLIENT_GET_ALL_DEVICE,
119     BT_GATT_CLIENT_REQUEST_CONNECTION_PRIORITY,
120     BT_GATT_CLIENT_GET_SERVICES,
121     BT_GATT_CLIENT_REQUEST_FASTEST_CONNECTION,
122     BT_GATT_CLIENT_READ_REMOTE_RSSI_VALUE,
123     BT_GATT_CLIENT_REQUEST_NOTIFICATION,
124     // The last code, if you want to add a new code, please add it before this
125     BT_GATT_CLIENT_BUTT
126 };
127 
128 enum BluetoothGattServerCallbackInterfaceCode {
129     GATT_SERVER_CALLBACK_CHARACTERISTIC_READREQUEST = 0,
130     GATT_SERVER_CALLBACK_CONNECTIONSTATE_CHANGED,
131     GATT_SERVER_CALLBACK_ADD_SERVICE,
132     GATT_SERVER_CALLBACK_CHARACTERISTIC_READ_REQUEST,
133     GATT_SERVER_CALLBACK_CHARACTERISTIC_WRITE_REQUEST,
134     GATT_SERVER_CALLBACK_DESCRIPTOR_READ_REQUEST,
135     GATT_SERVER_CALLBACK_DESCRIPTOR_WRITE_REQUEST,
136     GATT_SERVER_CALLBACK_MTU_CHANGED,
137     GATT_SERVER_CALLBACK_NOTIFY_CONFIRM,
138     GATT_SERVER_CALLBACK_CONNECTION_PARAMETER_CHANGED,
139     // The last code, if you want to add a new code, please add it before this
140     GATT_SERVER_CALLBACK_BUTT
141 };
142 
143 enum BluetoothGattServerInterfaceCode {
144     GATT_SERVER_CLEAR_SERVICES = 0,
145     GATT_SERVER_ADD_SERVICE,
146     GATT_SERVER_REGISTER,
147     GATT_SERVER_DEREGISTER,
148     GATT_SERVER_CANCEL_CONNECTION,
149     GATT_SERVER_NOTIFY_CLIENT,
150     GATT_SERVER_REMOVE_SERVICE,
151     GATT_SERVER_RESPOND_CHARACTERISTIC_READ,
152     GATT_SERVER_RESPOND_CHARACTERISTIC_WRITE,
153     GATT_SERVER_RESPOND_DESCRIPTOR_READ,
154     GATT_SERVER_RESPOND_DESCRIPTOR_WRITE,
155     GATT_SERVER_CONNECT,
156     // The last code, if you want to add a new code, please add it before this
157     GATT_SERVER_BUTT
158 };
159 
160 enum class BluetoothHidHostObserverInterfaceCode {
161     COMMAND_ON_CONNECTION_STATE_CHANGED = MIN_TRANSACTION_ID + 0,
162     // The last code, if you want to add a new code, please add it before this
163     COMMAND_HID_HOST_OBSERVER_BUTT
164 };
165 
166 enum class BluetoothHidHostInterfaceCode {
167     COMMAND_CONNECT = MIN_TRANSACTION_ID + 0,
168     COMMAND_DISCONNECT,
169     COMMAND_GET_DEVICE_STATE,
170     COMMAND_GET_DEVICES_BY_STATES,
171     COMMAND_REGISTER_OBSERVER,
172     COMMAND_DEREGISTER_OBSERVER,
173     COMMAND_VCUN_PLUG,
174     COMMAND_SEND_DATA,
175     COMMAND_SET_REPORT,
176     COMMAND_GET_REPORT,
177     COMMAND_SET_CONNECT_STRATEGY,
178     COMMAND_GET_CONNECT_STRATEGY,
179     // The last code, if you want to add a new code, please add it before this
180     COMMAND_HID_HOST_BUTT
181 };
182 
183 enum BluetoothHostObserverInterfaceCode {
184     BT_HOST_OBSERVER_STATE_CHANGE = 0,
185     // ON_DIS_STA_CHANGE_CODE
186     BT_HOST_OBSERVER_DISCOVERY_STATE_CHANGE,
187     BT_HOST_OBSERVER_DISCOVERY_RESULT,
188     BT_HOST_OBSERVER_PAIR_REQUESTED,
189     BT_HOST_OBSERVER_PAIR_CONFIRMED,
190     BT_HOST_OBSERVER_SCAN_MODE_CHANGED,
191     BT_HOST_OBSERVER_DEVICE_NAME_CHANGED,
192     BT_HOST_OBSERVER_DEVICE_ADDR_CHANGED,
193     BT_HOST_OBSERVER_STATE_CHANGE_V2,
194     // The last code, if you want to add a new code, please add it before this
195     BT_HOST_OBSERVER_BUTT
196 };
197 
198 enum BluetoothHostInterfaceCode {
199     BT_REGISTER_OBSERVER = 0,
200     BT_DEREGISTER_OBSERVER,
201     BT_ENABLE,
202     BT_DISABLE,
203     BT_GETSTATE,
204     BT_GETPROFILE,
205     BT_GET_BLE,
206     BT_FACTORY_RESET,
207     BT_DISABLE_BLE,
208     BT_ENABLE_BLE,
209     DEPRECATED_CODE_3,  // BT_IS_BR_ENABLED
210     DEPRECATED_CODE_4,  // BT_IS_BLE_ENABLED
211     BT_GET_PROFILE_LIST,
212     BT_GET_MAXNUM_CONNECTED_AUDIODEVICES,
213     BT_GET_BT_STATE,
214     BT_GET_BT_PROFILE_CONNSTATE,
215     BT_GET_LOCAL_DEVICE_CLASS,
216     BT_SET_LOCAL_DEVICE_CLASS,
217     BT_GET_LOCAL_ADDRESS,
218     BT_GET_LOCAL_NAME,
219     BT_SET_LOCAL_NAME,
220     BT_GET_BT_SCAN_MODE,
221     BT_SET_BT_SCAN_MODE,
222     BT_GET_BONDABLE_MODE,
223     BT_SET_BONDABLE_MODE,
224     BT_START_BT_DISCOVERY,
225     BT_CANCEL_BT_DISCOVERY,
226     BT_IS_BT_DISCOVERING,
227     BT_GET_BT_DISCOVERY_END_MILLIS,
228     BT_GET_PAIRED_DEVICES,
229     BT_REMOVE_PAIR,
230     BT_REMOVE_ALL_PAIRS,
231     BT_REGISTER_REMOTE_DEVICE_OBSERVER,
232     BT_DEREGISTER_REMOTE_DEVICE_OBSERVER,
233     BT_GET_BLE_MAX_ADVERTISING_DATALENGTH,
234     GET_DEVICE_TYPE,
235     GET_PHONEBOOK_PERMISSION,
236     SET_PHONEBOOK_PERMISSION,
237     GET_MESSAGE_PERMISSION,
238     SET_MESSAGE_PERMISSION,
239     GET_POWER_MODE,
240     GET_DEVICE_NAME,
241     GET_DEVICE_ALIAS,
242     SET_DEVICE_ALIAS,
243     GET_DEVICE_BATTERY_INFO,
244     GET_PAIR_STATE,
245     START_PAIR,
246     CANCEL_PAIRING,
247     IS_BONDED_FROM_LOCAL,
248     IS_ACL_CONNECTED,
249     IS_ACL_ENCRYPTED,
250     GET_DEVICE_CLASS,
251     SET_DEVICE_PIN,
252     SET_DEVICE_PAIRING_CONFIRMATION,
253     SET_DEVICE_PASSKEY,
254     PAIR_REQUEST_PEPLY,
255     READ_REMOTE_RSSI_VALUE,
256     GET_LOCAL_SUPPORTED_UUIDS,
257     GET_DEVICE_UUIDS,
258     BT_REGISTER_BLE_ADAPTER_OBSERVER,
259     BT_DEREGISTER_BLE_ADAPTER_OBSERVER,
260     BT_REGISTER_BLE_PERIPHERAL_OBSERVER,
261     BT_DEREGISTER_BLE_PERIPHERAL_OBSERVER,
262     GET_LOCAL_PROFILE_UUIDS,
263     BT_SET_FAST_SCAN,
264     GET_RANDOM_ADDRESS,
265     SYNC_RANDOM_ADDRESS,
266     START_CREDIBLE_PAIR,
267     DEPRECATED_CODE_1,  // BT_COUNT_ENABLE_TIMES
268     CONNECT_ALLOWED_PROFILES,
269     DISCONNECT_ALLOWED_PROFILES,
270     SET_CUSTOM_TYPE,
271     GET_DEVICE_INFO_ID,
272     DEPRECATED_CODE_2,  // RESTRICT_BLUETOOTH
273     SATELLITE_CONTROL,
274     BT_REGISTER_RESOURCE_MANAGER_OBSERVER,
275     BT_DEREGISTER_RESOURCE_MANAGER_OBSERVER,
276     GET_VIRTUAL_AUTO_CONN_SWITCH,
277     SET_VIRTUAL_AUTO_CONN_TYPE,
278     SET_FAST_SCAN_LEVEL,
279     UPDATE_VIRTUAL_DEVICE,
280     BT_ENABLE_BLUETOOTH_TO_RESTRICT_MODE,
281     // The last code, if you want to add a new code, please add it before this
282     BT_HOST_BUTT
283 };
284 
285 enum BluetoothMapMceObserverInterfaceCode {
286     MCE_ON_ACTION_COMPLETED = 0,
287     MCE_ON_CONNECTION_STATE_CHANGED,
288     MCE_ON_EVENT_REPORTED,
289     MCE_ON_BMESSAGE_COMPLETED,
290     MCE_ON_MESSAGE_LIST_COMPLETED,
291     MCE_ON_CONVERSATION_LIST_COMPLETED,
292     // The last code, if you want to add a new code, please add it before this
293     MCE_OBSERVER_BUTT
294 };
295 
296 enum BluetoothMapMceInterfaceCode {
297     MCE_REGISTER_OBSERVER = 0,
298     MCE_DE_REGISTER_OBSERVER,
299     MCE_CONNECT,
300     MCE_DISCONNECT,
301     MCE_ISCONNECTED,
302     MCE_GET_CONNECT_DEVICES,
303     MCE_GET_DEVICES_BY_STATES,
304     MCE_GET_CONNECTION_STATE,
305     MCE_SET_CONNECTION_STRATEGY,
306     MCE_GET_CONNECTION_STRATEGY,
307     MCE_GET_UNREAD_MESSAGES,
308     MCE_GET_SUPPORTED_FEATURES,
309     MCE_SEND_MESSAGE,
310     MCE_SET_NOTIFICATION_FILTER,
311     MCE_GET_MESSAGES_LISTING,
312     MCE_GET_MESSAGE,
313     MCE_UPDATE_INBOX,
314     MCE_GET_CONVERSATION_LISTING,
315     MCE_SET_MESSAGE_STATUS,
316     MCE_SET_OWNER_STATUS,
317     MCE_GET_OWNER_STATUS,
318     MCE_GET_MAS_INSTANCE_INFO,
319     // The last code, if you want to add a new code, please add it before this
320     MCE_BUTT
321 };
322 
323 enum BluetoothMapMseObserverInterfaceCode {
324     MSE_ON_CONNECTION_STATE_CHANGED = 0,
325     MSE_ON_PERMISSION,
326     // The last code, if you want to add a new code, please add it before this
327     MSE_OBSERVER_BUTT
328 };
329 
330 enum BluetoothMapMseInterfaceCode {
331     MSE_REGISTER_OBSERVER = 0,
332     MSE_DEREGISTER_OBSERVER,
333     MSE_GET_DEVICE_STATE,
334     MSE_DISCONNECT,
335     MSE_GET_DEVICES_BY_STATES,
336     MSE_SET_CONNECTION_STRATEGY,
337     MSE_GET_CONNECTION_STRATEGY,
338     MSE_SET_ACCESS_AUTHORIZATION,
339     MSE_GET_ACCESS_AUTHORIZATION,
340     // The last code, if you want to add a new code, please add it before this
341     MSE_BUTT
342 };
343 
344 enum BluetoothOppObserverInterfaceCode {
345     OPP_ON_RECEIVE_INCOMING_FILE_CHANGED = MIN_TRANSACTION_ID + 0,
346     OPP_ON_TRANSFER_STATE_CHANGED,
347     // The last code, if you want to add a new code, please add it before this
348     OPP_OBSERVER_BUTT
349 };
350 
351 enum BluetoothOppInterfaceCode {
352     COMMAND_SEND_FILE = MIN_TRANSACTION_ID + 0,
353     COMMAND_SET_INCOMING_FILE_CONFIRMATION,
354     COMMAND_GET_CURRENT_TRANSFER_INFORMATION,
355     COMMAND_CANCEL_TRANSFER,
356     COMMAND_REGISTER_OBSERVER,
357     COMMAND_DEREGISTER_OBSERVER,
358     COMMAND_GET_DEVICE_STATE,
359     COMMAND_GET_DEVICES_BY_STATES,
360     // The last code, if you want to add a new code, please add it before this
361     COMMAND_OPP_BUTT
362 };
363 
364 enum class BluetoothPanObserverInterfaceCode {
365     COMMAND_ON_CONNECTION_STATE_CHANGED = MIN_TRANSACTION_ID + 0,
366     // The last code, if you want to add a new code, please add it before this
367     COMMAND_PAN_OBSERVER_BUTT
368 };
369 
370 enum class BluetoothPanInterfaceCode {
371     COMMAND_DISCONNECT = MIN_TRANSACTION_ID + 0,
372     COMMAND_GET_DEVICE_STATE,
373     COMMAND_GET_DEVICES_BY_STATES,
374     COMMAND_REGISTER_OBSERVER,
375     COMMAND_DEREGISTER_OBSERVER,
376     COMMAND_SET_TETHERING,
377     COMMAND_IS_TETHERING_ON,
378     // The last code, if you want to add a new code, please add it before this
379     COMMAND_PAN_BUTT
380 };
381 
382 
383 enum BluetoothPbapPceObserverInterfaceCode {
384     PBAP_PCE_ON_SERVICE_CONNECTION_STATE_CHANGED = 0,
385     PBAP_PCE_ON_SERVICE_PASSWORD_REQUIRED,
386     PBAP_PCE_ON_ACTION_COMPLETED,
387     // The last code, if you want to add a new code, please add it before this
388     PBAP_PCE_OBSERVER_BUTT
389 };
390 
391 enum BluetoothPbapPceInterfaceCode {
392     PBAP_PCE_GET_DEVICE_STATE = 0,
393     PBAP_PCE_CONNECT,
394     PBAP_PCE_PULL_PHONEBOOK,
395     PBAP_PCE_SET_PHONEBOOK,
396     PBAP_PCE_PULL_VCARD_LISTING,
397     PBAP_PCE_PULL_VCARD_ENTRY,
398     PBAP_PCE_PULL_ISDOWNLOAGING,
399     PBAP_PCE_ABORT_DOWNLOADING,
400     PBAP_PCE_SET_DEVICE_PASSWORD,
401     PBAP_PCE_DISCONNECT,
402     PBAP_PCE_SET_CONNECT_STRATEGY,
403     PBAP_PCE_GET_CONNECT_STRATEGY,
404     PBAP_PCE_GET_DEVICES_BY_STATE,
405     PBAP_PCE_REGISTER_OBSERVER,
406     PBAP_PCE_DEREGISTER_OBSERVER,
407     // The last code, if you want to add a new code, please add it before this
408     PBAP_PCE_BUTT
409 };
410 
411 enum BluetoothPbapPseObserverInterfaceCode {
412     PBAP_PSE_ON_CONNECTION_STATE_CHANGE = 0,
413     // The last code, if you want to add a new code, please add it before this
414     PBAP_PSE_OBSERVER_BUTT
415 };
416 
417 enum BluetoothPbapPseInterfaceCode {
418     PBAP_PSE_GET_DEVICE_STATE = 0,
419     PBAP_PSE_GET_DEVICES_BY_STATES,
420     PBAP_PSE_DISCONNECT,
421     PBAP_PSE_SET_CONNECTION_STRATEGY,
422     PBAP_PSE_GET_CONNECTION_STRATEGY,
423     PBAP_PSE_REGISTER_OBSERVER,
424     PBAP_PSE_DEREGISTER_OBSERVER,
425     PBAP_PSE_SET_SHARE_TYPE,
426     PBAP_PSE_GET_SHARE_TYPE,
427     PBAP_PSE_SET_ACCESS_AUTHORIZATION,
428     PBAP_PSE_GET_ACCESS_AUTHORIZATION,
429     // The last code, if you want to add a new code, please add it before this
430     PBAP_PSE_BUTT
431 };
432 
433 enum BluetoothRemoteDeviceObserverInterfaceCode {
434     BT_REMOTE_DEVICE_OBSERVER_ACL_STATE = 0,
435     BT_REMOTE_DEVICE_OBSERVER_PAIR_STATUS,
436     BT_REMOTE_DEVICE_OBSERVER_REMOTE_UUID,
437     BT_REMOTE_DEVICE_OBSERVER_REMOTE_NAME,
438     BT_REMOTE_DEVICE_OBSERVER_REMOTE_ALIAS,
439     BT_REMOTE_DEVICE_OBSERVER_REMOTE_COD,
440     BT_REMOTE_DEVICE_OBSERVER_REMOTE_BATTERY_LEVEL,
441     BT_REMOTE_DEVICE_OBSERVER_REMOTE_BATTERY_INFO_REPORT,
442     // The last code, if you want to add a new code, please add it before this
443     BT_REMOTE_DEVICE_OBSERVER_BUTT
444 };
445 
446 enum BluetoothSocketInterfaceCode {
447     SOCKET_CONNECT = 0,
448     SOCKET_LISTEN,
449     DEREGISTER_SERVER_OBSERVER,
450     SOCKET_UPDATE_COC_PARAMS,
451     REGISTER_CLIENT_OBSERVER,
452     DEREGISTER_CLIENT_OBSERVER,
453     // The last code, if you want to add a new code, please add it before this
454     SOCKET_BUTT
455 };
456 
457 enum BluetoothSocketObserverInterfaceCode {
458     BT_SOCKET_OBSERVER_CONNECTION_STATE_CHANGED = 0,
459     // The last code, if you want to add a new code, please add it before this
460     BT_SOCKET_OBSERVER_BUTT
461 };
462 
463 enum BluetoothAudioManagerInterfaceCode {
464     WEAR_DETECTION_ENABLE = 0,
465     WEAR_DETECTION_DISABLE,
466     IS_WEAR_DETECTION_ENABLED,
467     BT_IS_WEAR_DETECTION_SUPPORTED,
468     BT_SEND_DEVICE_SELECTION,
469     IS_DEVICE_WEARING,
470     // The last code, if you want to add a new code, please add it before this
471     WEAR_DETECTION_BUTT
472 };
473 
474 enum BluetoothResourceManagerObserverInterfaceCode {
475     SENSING_STATE_CHANGED = 0,
476     BLUETOOTH_RESOURCE_DECISION,
477     // The last code, if you want to add a new code, please add it before this
478     BT_RESOURCE_MANAGER_OBSERVER_BUTT
479 };
480 
481 }  // namespace Bluetooth
482 }  // namespace OHOS
483 #endif  // BLUETOOTH_SERVICE_IPC_INTERFACE_CODE_H