mirror of
https://gitee.com/openharmony/deviceprofile_device_info_manager
synced 2024-11-27 01:31:01 +00:00
剪切板开关
Signed-off-by: guoyi <guoyi39@huawei.com>
This commit is contained in:
parent
076690c4ec
commit
74845b20e7
@ -143,7 +143,7 @@ constexpr int32_t NUM_2 = 2;
|
||||
constexpr int32_t NUM_3 = 3;
|
||||
constexpr uint32_t NUM_1U = 1;
|
||||
constexpr uint32_t NUM_8U = 8;
|
||||
constexpr uint16_t CUR_SWITCH_LEN = 1;
|
||||
constexpr uint16_t CUR_SWITCH_LEN = 2;
|
||||
const std::string DP_PKG_NAME = "deviceprofile";
|
||||
const std::string IS_NUMSTRING_RULES = "^[-+]?[0-9]+$";
|
||||
/* rdb constants */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2023 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2023-2024 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
|
||||
@ -146,10 +146,12 @@ enum StaticCapabilityFlag {
|
||||
enum class SwitchFlag : int32_t {
|
||||
SWITCH_FLAG_MIN = -1,
|
||||
SWITCH_FLAG_KEY_MOUSE_EDGE_CROSSING = 0,
|
||||
SWITCH_FLAG_MAX = 1
|
||||
SWITCH_FLAG_KEY_DISTRIBUTED_PASTEBOARD = 1,
|
||||
SWITCH_FLAG_MAX = 2
|
||||
};
|
||||
const std::unordered_map<std::string, SwitchFlag> SWITCH_SERVICE_MAP = {
|
||||
{ "SwitchStatus_Key_Mouse_Edge_Crossing", SwitchFlag::SWITCH_FLAG_KEY_MOUSE_EDGE_CROSSING }
|
||||
{ "SwitchStatus_Key_Mouse_Edge_Crossing", SwitchFlag::SWITCH_FLAG_KEY_MOUSE_EDGE_CROSSING },
|
||||
{ "SwitchStatus_Key_Distributed_Pasteboard", SwitchFlag::SWITCH_FLAG_KEY_DISTRIBUTED_PASTEBOARD }
|
||||
};
|
||||
const std::unordered_map<std::string, StaticCapabilityFlag> CAPABILITY_FLAG_MAP = {
|
||||
{ "dmsfwk_svr_id", StaticCapabilityFlag::CAPABILITY_FLAG_DMS },
|
||||
|
@ -533,7 +533,7 @@ int32_t KVAdapter::SyncOnDemand(const std::string& udid, const std::string& keyP
|
||||
kvStorePtr_->GetEntries(kvKeyPrefix, networkId, call);
|
||||
}
|
||||
std::unique_lock<std::mutex> lck(syncOnDemandMtx_);
|
||||
syncOnDemandCond_.wait_for(lck, std::chrono::seconds(ASYNC_GET_WAIT_SECONDS), [& isExeced] {return isExeced;});
|
||||
syncOnDemandCond_.wait_for(lck, std::chrono::seconds(ASYNC_GET_WAIT_SECONDS), [&isExeced] {return isExeced;});
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user