Home
last modified time | relevance | path

Searched refs:stringMap (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/window/window_manager/utils/src/
H A Dsingleton_container.cpp45 for (const auto &[k, v] : stringMap) { in WM_IMPLEMENT_SINGLE_INSTANCE()
58 if (stringMap.find(name) == stringMap.end()) { in AddSingleton()
63 stringMap[name] = nextId++; in AddSingleton()
71 if (stringMap.find(name) == stringMap.end()) { in SetSingleton()
75 singletonMap[stringMap[name]].value = instance; in SetSingleton()
81 if (stringMap.find(name) == stringMap.end()) { in GetSingleton()
85 if (singletonMap.find(stringMap[name]) == singletonMap.end()) { in GetSingleton()
89 return singletonMap[stringMap[name]].value; in GetSingleton()
94 auto& instanceDependencySet = dependencySetMap[stringMap[instance]]; in DependOn()
97 instanceDependencySet.insert(stringMap[name]); in DependOn()
[all …]
/ohos5.0/foundation/window/window_manager/utils/test/unittest/
H A Dutils_all_test.cpp113 auto testId = singletonContainer.stringMap["test"];
115 ASSERT_EQ(testId, singletonContainer.stringMap["test"]);
117 ASSERT_EQ(testId + 1, singletonContainer.stringMap["test2"]);
119 auto testId2 = singletonContainer.stringMap["test2"];
122 singletonContainer.stringMap.erase("test");
123 singletonContainer.stringMap.erase("test2");
138 auto testId = singletonContainer.stringMap["test"];
151 singletonContainer.stringMap.erase("test");
167 auto id = singletonContainer.stringMap["test"];
172 id = singletonContainer.stringMap["test"];
[all …]
/ohos5.0/base/account/os_account/frameworks/appaccount/native/src/
H A Dapp_account_info.cpp751 bool AppAccountInfo::WriteStringMap(const std::map<std::string, std::string> &stringMap, Parcel &da… in WriteStringMap() argument
753 if (!data.WriteInt32(stringMap.size())) { in WriteStringMap()
758 for (auto& it : stringMap) { in WriteStringMap()
795 bool AppAccountInfo::ReadStringMap(std::map<std::string, std::string> &stringMap, Parcel &data) in ReadStringMap() argument
806 stringMap.clear(); in ReadStringMap()
818 stringMap.emplace(key, value); in ReadStringMap()
/ohos5.0/foundation/window/window_manager/utils/include/
H A Dsingleton_container.h75 std::map<std::string, int32_t> stringMap; variable
/ohos5.0/base/account/os_account/frameworks/appaccount/native/include/
H A Dapp_account_info.h104 bool ReadStringMap(std::map<std::string, std::string> &stringMap, Parcel &data);
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/app_account/
H A Dapp_account_info_test.cpp987 std::map<std::string, std::string> stringMap; variable
990 EXPECT_EQ(testInfo.ReadStringMap(stringMap, data), true);
991 EXPECT_EQ(stringMap["testkey"], "testvalue");
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/kits/napi/scene_session_manager/
H A Djs_scene_utils.h154 …MapFromJs(napi_env env, napi_value value, std::unordered_map<std::string, std::string>& stringMap);
H A Djs_scene_utils.cpp732 …gMapFromJs(napi_env env, napi_value value, std::unordered_map<std::string, std::string>& stringMap) in ConvertStringMapFromJs() argument
768 stringMap.emplace(propName, valName); in ConvertStringMapFromJs()