From 0cb2b4366536171bd75d25400b1d6fcbf158c1e6 Mon Sep 17 00:00:00 2001 From: Bruin06 <419738327@qq.com> Date: Sat, 13 Sep 2025 11:16:56 +0800 Subject: [PATCH] Add Api Signed-off-by: Bruin06 <419738327@qq.com> --- services/bluetooth/ipc/include/bluetooth_host_stub.h | 1 + services/bluetooth/ipc/src/bluetooth_host_stub.cpp | 8 ++++++++ services/bluetooth/server/include/bluetooth_host_server.h | 1 + services/bluetooth/server/src/bluetooth_host_server.cpp | 5 +++++ 4 files changed, 15 insertions(+) diff --git a/services/bluetooth/ipc/include/bluetooth_host_stub.h b/services/bluetooth/ipc/include/bluetooth_host_stub.h index c54e616e..778dd2dd 100644 --- a/services/bluetooth/ipc/include/bluetooth_host_stub.h +++ b/services/bluetooth/ipc/include/bluetooth_host_stub.h @@ -120,6 +120,7 @@ private: int32_t GetCarKeyDfxDataInner(MessageParcel &data, MessageParcel &reply); int32_t SetCarKeyCardDataInner(MessageParcel &data, MessageParcel &reply); int32_t NotifyDialogResultInner(MessageParcel &data, MessageParcel &reply); + ErrCode IsFirstConnectedAfterPairedInner(MessageParcel &data, MessageParcel &reply); static const std::map> memberFuncMap_; diff --git a/services/bluetooth/ipc/src/bluetooth_host_stub.cpp b/services/bluetooth/ipc/src/bluetooth_host_stub.cpp index 3f0c327d..6c1bae78 100644 --- a/services/bluetooth/ipc/src/bluetooth_host_stub.cpp +++ b/services/bluetooth/ipc/src/bluetooth_host_stub.cpp @@ -282,6 +282,9 @@ const std::map instance; static std::mutex instanceLock; diff --git a/services/bluetooth/server/src/bluetooth_host_server.cpp b/services/bluetooth/server/src/bluetooth_host_server.cpp index 205d9e58..e697a7b5 100644 --- a/services/bluetooth/server/src/bluetooth_host_server.cpp +++ b/services/bluetooth/server/src/bluetooth_host_server.cpp @@ -1978,5 +1978,10 @@ int32_t BluetoothHostServer::NotifyDialogResult(uint32_t dialogType, bool dialog void BluetoothHostServer::SetCallingPackageName(const std::string &address, const std::string &packageName) {} + +bool BluetoothHostServer::IsFirstConnectedAfterPaired(int32_t transport, const std::string &address) +{ + return false; +} } // namespace Bluetooth } // namespace OHOS -- Gitee