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