Searched refs:stringMap (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | singleton_container.cpp | 45 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 D | utils_all_test.cpp | 113 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 D | app_account_info.cpp | 751 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 D | singleton_container.h | 75 std::map<std::string, int32_t> stringMap; variable
|
/ohos5.0/base/account/os_account/frameworks/appaccount/native/include/ |
H A D | app_account_info.h | 104 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 D | app_account_info_test.cpp | 987 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 D | js_scene_utils.h | 154 …MapFromJs(napi_env env, napi_value value, std::unordered_map<std::string, std::string>& stringMap);
|
H A D | js_scene_utils.cpp | 732 …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()
|