From 6e360ec8f0bf7322c0483634c041d6867db1ea18 Mon Sep 17 00:00:00 2001 From: li-tiangang4 Date: Sun, 26 Jan 2025 13:55:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=BE=E5=A4=87=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li-tiangang4 --- .../src/distributed_hardware_manager_factory.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/services/distributedhardwarefwkservice/src/distributed_hardware_manager_factory.cpp b/services/distributedhardwarefwkservice/src/distributed_hardware_manager_factory.cpp index 61761b36..e3ba5839 100644 --- a/services/distributedhardwarefwkservice/src/distributed_hardware_manager_factory.cpp +++ b/services/distributedhardwarefwkservice/src/distributed_hardware_manager_factory.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021-2024 Huawei Device Co., Ltd. + * Copyright (c) 2021-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -44,7 +44,8 @@ namespace OHOS { namespace DistributedHardware { namespace { - constexpr int32_t DOUBLE_FRAME_DEVICE_TYPE = -1; + constexpr int32_t OLD_HO_DEVICE_TYPE = -1; + constexpr int32_t NEW_HO_DEVICE_TYPE = 11; } #undef DH_LOG_TAG #define DH_LOG_TAG "DistributedHardwareManagerFactory" @@ -187,7 +188,7 @@ int32_t DistributedHardwareManagerFactory::SendOnLineEvent(const std::string &ne MetaInfoManager::GetInstance()->SyncDataByNetworkId(networkId); } - if (osType == DOUBLE_FRAME_DEVICE_TYPE) { + if (osType == OLD_HO_DEVICE_TYPE || osType == NEW_HO_DEVICE_TYPE) { DHLOGE("double frame device, networkId = %{public}s, uuid = %{public}s, udid = %{public}s, need clear data.", GetAnonyString(networkId).c_str(), GetAnonyString(uuid).c_str(), GetAnonyString(udid).c_str()); ClearRemoteDeviceMetaInfoData(udid, uuid); -- Gitee