Home
last modified time | relevance | path

Searched refs:switchServiceMap (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/utils/
H A Dprofile_cache.cpp538 const std::unordered_map<std::string, SwitchFlag>& switchServiceMap, uint32_t& outSwitch) in SetSwitchByProfileBatch() argument
548 if (!IsSwitchValid(item, switchServiceMap, SWITCH_OPERATE_PUT)) { in SetSwitchByProfileBatch()
552 auto service = switchServiceMap.find(item.GetServiceName()); in SetSwitchByProfileBatch()
569 const std::unordered_map<std::string, SwitchFlag>& switchServiceMap, uint32_t& outSwitch) in SetSwitchByProfile() argument
572 if (!IsSwitchValid(charProfile, switchServiceMap, SWITCH_OPERATE_PUT)) { in SetSwitchByProfile()
576 auto service = switchServiceMap.find(charProfile.GetServiceName()); in SetSwitchByProfile()
595 if (charProfile.GetCharacteristicKey() != SWITCH_STATUS || switchServiceMap.empty()) { in IsSwitchValid()
608 if (switchServiceMap.find(charProfile.GetServiceName()) == switchServiceMap.end()) { in IsSwitchValid()
737 const std::unordered_map<std::string, SwitchFlag>& switchServiceMap, std::string& serviceName) in GetServiceNameByPos() argument
740 switchServiceMap.empty()) { in GetServiceNameByPos()
[all …]
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/include/utils/
H A Dprofile_cache.h75 const std::unordered_map<std::string, SwitchFlag>& switchServiceMap, uint32_t& outSwitch);
77 const std::unordered_map<std::string, SwitchFlag>& switchServiceMap, uint32_t& outSwitch);
79 … const std::unordered_map<std::string, SwitchFlag>& switchServiceMap, const std::string& operate);
85 …tServiceNameByPos(int32_t pos, const std::unordered_map<std::string, SwitchFlag>& switchServiceMap,