Home
last modified time | relevance | path

Searched refs:ResType (Results 1 - 25 of 46) sorted by relevance

12

/base/web/webview/ohos_adapter/res_sched_adapter/src/
H A Dres_sched_client_adapter_impl.cpp40 { ResSchedTypeAdapter::RES_TYPE_KEY_THREAD, ResType::RES_TYPE_REPORT_KEY_THREAD },
41 { ResSchedTypeAdapter::RES_TYPE_WEB_STATUS_CHANGE, ResType::RES_TYPE_REPORT_WINDOW_STATE },
42 { ResSchedTypeAdapter::RES_TYPE_WEB_SCENE, ResType::RES_TYPE_REPORT_SCENE_SCHED },
43 { ResSchedTypeAdapter::RES_TYPE_WEBVIEW_AUDIO_STATUS_CHANGE, ResType::RES_TYPE_WEBVIEW_AUDIO_STATUS_CHANGE },
44 { ResSchedTypeAdapter::RES_TYPE_WEBVIEW_SCREEN_CAPTURE, ResType::RES_TYPE_WEBVIEW_SCREEN_CAPTURE },
45 { ResSchedTypeAdapter::RES_TYPE_WEBVIEW_VIDEO_STATUS_CHANGE, ResType::RES_TYPE_WEBVIEW_VIDEO_STATUS_CHANGE },
49 { ResSchedStatusAdapter::THREAD_CREATED, ResType::ReportChangeStatus::CREATE },
50 { ResSchedStatusAdapter::THREAD_DESTROYED, ResType::ReportChangeStatus::REMOVE },
51 { ResSchedStatusAdapter::WEB_ACTIVE, ResType::WindowStates::ACTIVE },
52 { ResSchedStatusAdapter::WEB_INACTIVE, ResType
[all...]
/base/global/resource_management/frameworks/resmgr/include/
H A Dres_desc.h57 static bool IsArrayOfType(ResType type) in IsArrayOfType()
59 if (type == ResType::STRINGARRAY || type == ResType::INTARRAY || type == ResType::THEME || in IsArrayOfType()
60 type == ResType::PLURALS || type == ResType::PATTERN) { in IsArrayOfType()
77 static std::map<ResType, std::string> resTypeStrList;
83 * @param resType when return true, set resType. as sample : ResType:STRING
87 static bool IsRef(const std::string &value, ResType &resType, int &id);
101 ResType GetItemResTyp
[all...]
H A Dtheme_pack_resource.h36 ResType resType;
40 ThemeKey(std::string bundle, std::string module, ResType type, std::string name, std::string ability = "") in ThemeKey()
117 const ResType &resType, const std::string &name);
166 std::vector<std::tuple<ResType, std::string, std::shared_ptr<ThemeValue>> > themeValueVec_;
H A Dhap_resource.h294 const std::shared_ptr<IdValues> GetIdValuesByName(const std::string name, const ResType resType) const;
302 int GetIdByName(const char *name, const ResType resType) const;
316 std::unordered_map<std::string, std::unordered_map<ResType, uint32_t>> BuildNameTypeIdMapping() const;
341 void UpdateOverlayInfo(std::unordered_map<std::string, std::unordered_map<ResType, uint32_t>> &nameTypeId);
H A Dhap_manager.h137 const char *name, const ResType resType, bool isGetOverrideResource = false);
156 const ResType resType, bool isGetOverrideResource = false, uint32_t density = 0);
260 RState GetFilePath(const std::shared_ptr<HapResource::ValueUnderQualifierDir> qd, const ResType resType,
389 const ResType resType) const;
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
H A Dres_desc.h56 static bool IsArrayOfType(ResType type) in IsArrayOfType()
58 if (type == ResType::STRINGARRAY || type == ResType::INTARRAY || type == ResType::THEME || in IsArrayOfType()
59 type == ResType::PLURALS || type == ResType::PATTERN) { in IsArrayOfType()
76 static std::map<ResType, std::string> resTypeStrList;
82 * @param resType when return true, set resType. as sample : ResType:STRING
86 static bool IsRef(const std::string &value, ResType &resType, int &id);
91 ResType resType
[all...]
H A Dhap_manager.h75 const IdItem *FindResourceByName(const char *name, const ResType resType);
90 const HapResource::ValueUnderQualifierDir *FindQualifierValueByName(const char *name, const ResType resType);
106 const HapResource::IdValues *GetResourceListByName(const char *name, const ResType resType) const;
H A Dglobal_utils.h40 typedef enum ResType { enum
65 } ResType; typedef
90 ResType resType;
H A Dres_common.h58 typedef enum ResType { enum
84 } ResType; typedef
H A Dhap_resource.h158 const IdValues *GetIdValuesByName(const std::string name, const ResType resType) const;
166 int GetIdByName(const char *name, const ResType resType) const;
/base/web/webview/ohos_adapter/soc_perf_adapter/src/
H A Dsoc_perf_client_adapter_impl.cpp37 { SOC_PERF_WEB_GESTURE_ID, ResourceSchedule::ResType::RES_TYPE_WEB_GESTURE }, in SocPerfClientAdapterImpl()
38 { SOC_PERF_WEB_GESTURE_MOVE_ID, ResourceSchedule::ResType::RES_TYPE_WEB_GESTURE_MOVE }, in SocPerfClientAdapterImpl()
39 { SOC_PERF_SLIDE_NORMAL_ID, ResourceSchedule::ResType::RES_TYPE_WEB_SLIDE_NORMAL }, in SocPerfClientAdapterImpl()
40 { SOC_PERF_LOAD_URL_ID, ResourceSchedule::ResType::RES_TYPE_LOAD_URL }, in SocPerfClientAdapterImpl()
41 { SOC_PERF_MOUSEWHEEL_ID, ResourceSchedule::ResType::RES_TYPE_MOUSEWHEEL }, in SocPerfClientAdapterImpl()
42 { SOC_PERF_WEB_DRAG_RESIZE_ID, ResourceSchedule::ResType::RES_TYPE_WEB_DRAG_RESIZE }, in SocPerfClientAdapterImpl()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dresource_manager_impl.cpp79 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRING); in GetStringByName()
100 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRING); in GetStringFormatByName()
116 if (idItem == nullptr || idItem->resType_ != ResType::STRING) { in GetString()
134 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::STRINGARRAY); in GetStringArrayByName()
141 if (idItem == nullptr || idItem->resType_ != ResType::STRINGARRAY) { in GetStringArray()
166 const IdItem *idItem = hapManager_->FindResourceByName(name, ResType::PATTERN); in GetPatternByName()
173 if (idItem == nullptr || idItem->resType_ != ResType::PATTERN) { in GetPattern()
188 hapManager_->FindQualifierValueByName(name, ResType::PLURALS); in GetPluralStringByName()
212 hapManager_->FindQualifierValueByName(name, ResType::PLURALS); in GetPluralStringByNameFormat()
235 if (idItem == nullptr || idItem->resType_ != ResType in GetPluralString()
[all...]
H A Dres_desc.cpp126 std::map<ResType, std::string> IdItem::resTypeStrList;
132 resTypeStrList.insert(make_pair(ResType::STRING, std::string("string"))); in Init()
133 resTypeStrList.insert(make_pair(ResType::BOOLEAN, std::string("boolean"))); in Init()
134 resTypeStrList.insert(make_pair(ResType::COLOR, std::string("color"))); in Init()
135 resTypeStrList.insert(make_pair(ResType::FLOAT, std::string("float"))); in Init()
136 resTypeStrList.insert(make_pair(ResType::INTEGER, std::string("integer"))); in Init()
137 resTypeStrList.insert(make_pair(ResType::PATTERN, std::string("pattern"))); in Init()
138 resTypeStrList.insert(make_pair(ResType::THEME, std::string("theme"))); in Init()
139 resTypeStrList.insert(make_pair(ResType::MEDIA, std::string("media"))); in Init()
153 bool IdItem::IsRef(const std::string &value, ResType
[all...]
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dres_desc_test.cpp70 ResType resType; in HWTEST_F()
88 EXPECT_EQ(ResType::STRING, resType); in HWTEST_F()
92 EXPECT_EQ(ResType::BOOLEAN, resType); in HWTEST_F()
96 EXPECT_EQ(ResType::COLOR, resType); in HWTEST_F()
100 EXPECT_EQ(ResType::FLOAT, resType); in HWTEST_F()
104 EXPECT_EQ(ResType::INTEGER, resType); in HWTEST_F()
108 EXPECT_EQ(ResType::PATTERN, resType); in HWTEST_F()
112 EXPECT_EQ(ResType::THEME, resType); in HWTEST_F()
H A Dhap_resource_test.cpp70 auto idValues = pResource->GetIdValuesByName(name, ResType::STRING); in TestGetIdValuesByName()
115 int id = pResource->GetIdByName("app_name", ResType::STRING); in HWTEST_F()
148 auto idValues = pResource->GetIdValuesByName(name, ResType::STRING); in GetIdValuesByNameFuncTest002()
191 int id = pResource->GetIdByName("app_name", ResType::STRING); in HWTEST_F()
234 auto idv = pResource->GetIdValuesByName(std::string("integer_ref"), ResType::INTEGER); in HWTEST_F()
237 idv = pResource->GetIdValuesByName(std::string("string_ref"), ResType::STRING); in HWTEST_F()
241 idv = pResource->GetIdValuesByName(std::string("string_ref2"), ResType::STRING); in HWTEST_F()
244 idv = pResource->GetIdValuesByName(std::string("boolean_ref"), ResType::BOOLEAN); in HWTEST_F()
247 idv = pResource->GetIdValuesByName(std::string("color_ref"), ResType::COLOR); in HWTEST_F()
250 idv = pResource->GetIdValuesByName(std::string("float_ref"), ResType in HWTEST_F()
[all...]
H A Dresource_manager_test_common.cpp53 int ResourceManagerTestCommon::GetResId(const std::string &name, ResType resType) in GetResId()
79 int id = GetResId(name, ResType::STRING); in TestStringById()
140 int id = GetResId("eat_apple", ResType::PLURALS); in TestPluralStringById()
205 int id = GetResId("test_profile", ResType::PROF); in TestGetProfileById()
231 int id = GetResId("icon1", ResType::MEDIA); in TestGetMediaById()
257 int id = GetResId("icon", ResType::MEDIA); in TestGetMediaWithDensityById()
303 int id = GetResId("icon1", ResType::MEDIA); in TestGetDrawableInfoById()
328 int id = GetResId("icon", ResType::MEDIA); in TestGetDrawableInfoWithDensityById()
384 int id = GetResId(name, ResType::STRING); in TestGetStringFormatById()
403 int id = GetResId(name, ResType in TestGetStringArrayById()
[all...]
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dres_desc_test.cpp70 ResType resType; in HWTEST_F()
88 EXPECT_EQ(ResType::STRING, resType); in HWTEST_F()
92 EXPECT_EQ(ResType::BOOLEAN, resType); in HWTEST_F()
96 EXPECT_EQ(ResType::COLOR, resType); in HWTEST_F()
100 EXPECT_EQ(ResType::FLOAT, resType); in HWTEST_F()
104 EXPECT_EQ(ResType::INTEGER, resType); in HWTEST_F()
108 EXPECT_EQ(ResType::PATTERN, resType); in HWTEST_F()
112 EXPECT_EQ(ResType::THEME, resType); in HWTEST_F()
H A Dhap_resource_test.cpp84 int id = pResource->GetIdByName("app_name", ResType::STRING); in HWTEST_F()
112 auto idValues2 = pResource->GetIdValuesByName(name, ResType::STRING); in HWTEST_F()
165 int id = pResource->GetIdByName("app_name", ResType::STRING); in HWTEST_F()
189 auto idValues2 = pResource->GetIdValuesByName(name, ResType::STRING); in HWTEST_F()
230 auto idv = pResource->GetIdValuesByName(std::string("integer_ref"), ResType::INTEGER); in HWTEST_F()
233 idv = pResource->GetIdValuesByName(std::string("string_ref"), ResType::STRING); in HWTEST_F()
237 idv = pResource->GetIdValuesByName(std::string("string_ref2"), ResType::STRING); in HWTEST_F()
240 idv = pResource->GetIdValuesByName(std::string("boolean_ref"), ResType::BOOLEAN); in HWTEST_F()
243 idv = pResource->GetIdValuesByName(std::string("color_ref"), ResType::COLOR); in HWTEST_F()
246 idv = pResource->GetIdValuesByName(std::string("float_ref"), ResType in HWTEST_F()
[all...]
H A Dresource_manager_test.cpp55 int GetResId(std::string name, ResType resType) const;
68 int ResourceManagerTest::GetResId(std::string name, ResType resType) const in GetResId()
96 int id = GetResId(name, ResType::STRING); in TestStringById()
123 int id = GetResId("eat_apple", ResType::PLURALS); in TestPluralStringById()
486 int id = GetResId(name, ResType::STRING); in HWTEST_F()
551 id = GetResId("size", ResType::STRINGARRAY); in HWTEST_F()
630 id = GetResId("base", ResType::PATTERN); in HWTEST_F()
651 id = GetResId("child", ResType::PATTERN); in HWTEST_F()
672 id = GetResId("ccchild", ResType::PATTERN); in HWTEST_F()
964 int id = GetResId("app_theme", ResType in HWTEST_F()
[all...]
H A Dglobal_test.cpp63 int GetResId(const std::string &name, ResType resType) in GetResId()
151 int id = GetResId("app_name", ResType::STRING); in HWTEST_F()
169 int id = GetResId("app_name", ResType::STRING); in HWTEST_F()
/base/global/resource_management/frameworks/resmgr/src/
H A Dres_desc.cpp201 std::map<ResType, std::string> IdItem::resTypeStrList;
207 resTypeStrList.insert(make_pair(ResType::STRING, std::string("string"))); in Init()
208 resTypeStrList.insert(make_pair(ResType::BOOLEAN, std::string("boolean"))); in Init()
209 resTypeStrList.insert(make_pair(ResType::COLOR, std::string("color"))); in Init()
210 resTypeStrList.insert(make_pair(ResType::FLOAT, std::string("float"))); in Init()
211 resTypeStrList.insert(make_pair(ResType::INTEGER, std::string("integer"))); in Init()
212 resTypeStrList.insert(make_pair(ResType::PATTERN, std::string("pattern"))); in Init()
213 resTypeStrList.insert(make_pair(ResType::THEME, std::string("theme"))); in Init()
214 resTypeStrList.insert(make_pair(ResType::MEDIA, std::string("media"))); in Init()
215 resTypeStrList.insert(make_pair(ResType in Init()
[all...]
H A Dresource_manager_impl.cpp107 const std::shared_ptr<IdItem> idItem = hapManager_->FindResourceByName(name, ResType::STRING, isOverrideResMgr_); in GetStringByName()
136 const std::shared_ptr<IdItem> idItem = hapManager_->FindResourceByName(name, ResType::STRING, isOverrideResMgr_); in GetStringFormatByName()
188 if (idItem == nullptr || idItem->resType_ != ResType::STRING) { in GetString()
221 name, ResType::STRINGARRAY, isOverrideResMgr_); in GetStringArrayByName()
236 if (idItem == nullptr || idItem->resType_ != ResType::STRINGARRAY) { in GetStringArray()
280 const std::shared_ptr<IdItem> idItem = hapManager_->FindResourceByName(name, ResType::PATTERN, isOverrideResMgr_); in GetPatternByName()
296 if (idItem->resType_ != ResType::PATTERN) { in GetPattern()
298 "actual resType = %{public}d, expect resType = %{public}d", idItem->resType_, ResType::PATTERN); in GetPattern()
314 hapManager_->FindQualifierValueByName(name, ResType::PLURALS, isOverrideResMgr_); in GetPluralStringByName()
346 hapManager_->FindQualifierValueByName(name, ResType in GetPluralStringByNameFormat()
[all...]
H A Dtheme_pack_resource.cpp53 std::unordered_map<std::string, ResType> themeResTypeMap {
98 ResType GetResType(const std::string &resTypeStr) in GetResType()
100 ResType resType = ResType::VALUES; in GetResType()
105 return ResType::VALUES; in GetResType()
116 ResType resType = GetResType(resTypeStr); in InitThemeRes()
198 ThemeKey themeKey = ThemeKey(bundleName, moduleName, ResType::MEDIA, iconName); in ParseIcon()
201 themeValueVec_.emplace_back(std::make_tuple(ResType::MEDIA, iconName, themeValue)); in ParseIcon()
206 const std::pair<std::string, std::string> &bundInfo, const ResType &resType, const std::string &name) in GetThemeValues()
214 ResType typ in GetThemeValues()
[all...]
/base/inputmethod/imf/services/src/
H A Dfreeze_manager.cpp97 auto type = ResourceSchedule::ResType::RES_TYPE_SA_CONTROL_APP_EVENT; in ReportRss()
98 auto status = shouldFreeze ? ResourceSchedule::ResType::SaControlAppStatus::SA_STOP_APP in ReportRss()
99 : ResourceSchedule::ResType::SaControlAppStatus::SA_START_APP; in ReportRss()
/base/global/resource_management/interfaces/inner_api/include/
H A Dres_common.h78 typedef enum ResType { enum
105 } ResType; typedef

Completed in 16 milliseconds

12