修改codex问题

Signed-off-by: qinlong0101 <qinlong15@huawei.com>
This commit is contained in:
qinlong0101
2022-06-07 11:54:36 +08:00
parent 05e4a594c2
commit cb6846432f
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ vector<sptr<Screen>> QueryRemoteScreenInfo()
}
cout << endl;
cout << "--------screen id " << screen->GetId() << "---------" << endl;
cout << "screen name: " << screen->GetName() << endl;
cout << "screen name: " << GetAnonyString(screen->GetName()).c_str() << endl;
cout << "width: " << screen->GetWidth() << endl;
cout << "height: " << screen->GetHeight() << endl;
cout << "-------------------------------------------" << endl;
@@ -221,7 +221,7 @@ static void PrintNodeProperty(NodeBasicInfo *nodeInfo)
}
printf("DeviceName = %s\n", nodeInfo->deviceName);
printf("NetworkId = %s\n", nodeInfo->networkId);
printf("NetworkId = %s\n", GetAnonyString(nodeInfo->networkId).c_str());
NodeDeviceInfoKey key = NODE_KEY_UDID;
unsigned char udid[UDID_BUF_LEN] = {0};
if (GetNodeKeyInfo(g_pkgName, nodeInfo->networkId, key, udid, UDID_BUF_LEN) != 0) {
@@ -25,6 +25,7 @@
#include "dscreen_constants.h"
#include "dscreen_errcode.h"
#include "dscreen_log.h"
#include "dscreen_util.h"
namespace OHOS {
namespace DistributedHardware {
@@ -40,7 +41,7 @@ uint64_t ScreenMgrAdapter::CreateVirtualScreen(const std::string &devId, const s
{
DHLOGI("CreateVirtualScreen, width: %u, height: %u", videoParam->GetScreenWidth(),
videoParam->GetScreenHeight());
std::string screenName = DSCREEN_PREFIX + SEPERATOR + devId + SEPERATOR + dhId;
std::string screenName = DSCREEN_PREFIX + SEPERATOR + GetAnonyString(devId) + SEPERATOR + GetAnonyString(dhId);
auto iter = screenIdMap_.find(screenName);
if (iter != screenIdMap_.end()) {
DHLOGI("remove an exist virtual screen.");