Home
last modified time | relevance | path

Searched refs:ResType (Results 1 – 25 of 28) sorted by relevance

12

/developtools/global_resource_tool/include/
Dresource_data.h60 enum class ResType { enum
176 const std::map<std::string, ResType> g_fileClusterMap = {
177 { "element", ResType::ELEMENT },
178 { "media", ResType::MEDIA },
179 { "profile", ResType::PROF },
182 const std::map<std::string, ResType> g_contentClusterMap = {
183 { "id", ResType::ID },
184 { "integer", ResType::INTEGER },
185 { "string", ResType::STRING },
186 { "strarray", ResType::STRARRAY },
[all …]
Did_worker.h44 int32_t GenerateId(ResType resType, const std::string &name);
46 int32_t GetId(ResType resType, const std::string &name) const;
47 int32_t GetSystemId(ResType resType, const std::string &name) const;
49 bool PushCache(ResType resType, const std::string &name, int32_t id);
53 int32_t GenerateAppId(ResType resType, const std::string &name);
54 int32_t GenerateSysId(ResType resType, const std::string &name);
72 std::map<std::pair<ResType, std::string>, int32_t> ids_;
73 std::map<std::pair<ResType, std::string>, ResourceId> sysDefinedIds_;
74 std::map<std::pair<ResType, std::string>, ResourceId> appDefinedIds_;
78 std::map<std::pair<ResType, std::string>, int32_t> cacheIds_;
Dreference_parser.h36 bool IsStringOfResourceItem(ResType resType) const;
37 bool IsArrayOfResourceItem(ResType resType) const;
43 …bool ParseRefImpl(std::string &key, const std::map<std::string, ResType> &refs, bool isSystem) con…
46 static const std::map<std::string, ResType> ID_REFS;
47 static const std::map<std::string, ResType> ID_OHOS_REFS;
Di_resource_compiler.h28 IResourceCompiler(ResType type, const std::string &output);
35 …const std::map<std::pair<ResType, std::string>, std::vector<ResourceItem>> &GetResourceItems() con…
41 ResType type_;
48 std::map<std::pair<ResType, std::string>, std::vector<ResourceItem>> nameInfos_;
Dresource_module.h32 const std::map<ResType, std::vector<DirectoryInfo>> &GetScanDirectorys() const;
41 std::map<ResType, std::vector<DirectoryInfo>> scanDirs_;
44 static const std::vector<ResType> SCAN_SEQ;
Dresource_item.h29 ResourceItem(const std::string &name, const std::vector<KeyParam> &keyparams, ResType type);
41 const ResType &GetResType() const;
54 ResType type_;
Dresource_util.h80 static ResType GetResTypeByDir(const std::string &name);
87 static std::string ResTypeToString(ResType type);
95 static std::string GetIdName(const std::string &name, ResType type);
117 static ResType GetResTypeFromString(const std::string &type);
Dfactory_resource_compiler.h27 … static std::unique_ptr<IResourceCompiler> CreateCompiler(ResType type, const std::string &output);
28 …static std::unique_ptr<IResourceCompiler> CreateCompilerForAppend(ResType type, const std::string …
Dappend_compiler.h26 AppendCompiler(ResType type, const std::string &output);
Djson_compiler.h28 JsonCompiler(ResType type, const std::string &output);
61 std::map<ResType, HandleResource> handles_;
Dgeneric_compiler.h26 GenericCompiler(ResType type, const std::string &output);
/developtools/global_resource_tool/src/
Dreference_parser.cpp26 const map<string, ResType> ReferenceParser::ID_REFS = {
27 { "^\\$id:", ResType::ID },
28 { "^\\$boolean:", ResType::BOOLEAN },
29 { "^\\$color:", ResType::COLOR },
30 { "^\\$float:", ResType::FLOAT },
31 { "^\\$media:", ResType::MEDIA },
32 { "^\\$profile:", ResType::PROF },
33 { "^\\$integer:", ResType::INTEGER },
34 { "^\\$string:", ResType::STRING },
35 { "^\\$pattern:", ResType::PATTERN },
[all …]
Dfactory_resource_compiler.cpp25 unique_ptr<IResourceCompiler> FactoryResourceCompiler::CreateCompiler(ResType type, const string &o… in CreateCompiler()
27 if (type == ResType::ELEMENT) { in CreateCompiler()
34 unique_ptr<IResourceCompiler> FactoryResourceCompiler::CreateCompilerForAppend(ResType type, const … in CreateCompilerForAppend()
36 if (type == ResType::ELEMENT) { in CreateCompilerForAppend()
38 } else if (type == ResType::MEDIA || type == ResType::PROF) { in CreateCompilerForAppend()
Dresource_module.cpp26 const vector<ResType> ResourceModule::SCAN_SEQ = {
27 ResType::ELEMENT,
28 ResType::MEDIA,
29 ResType::PROF,
72 const map<ResType, vector<DirectoryInfo>> &ResourceModule::GetScanDirectorys() const in GetScanDirectorys()
Djson_compiler.cpp31 JsonCompiler::JsonCompiler(ResType type, const string &output) in JsonCompiler()
83 handles_.emplace(ResType::STRING, bind(&JsonCompiler::HandleString, this, _1, _2)); in InitParser()
84 handles_.emplace(ResType::INTEGER, bind(&JsonCompiler::HandleInteger, this, _1, _2)); in InitParser()
85 handles_.emplace(ResType::BOOLEAN, bind(&JsonCompiler::HandleBoolean, this, _1, _2)); in InitParser()
86 handles_.emplace(ResType::COLOR, bind(&JsonCompiler::HandleColor, this, _1, _2)); in InitParser()
87 handles_.emplace(ResType::FLOAT, bind(&JsonCompiler::HandleFloat, this, _1, _2)); in InitParser()
88 handles_.emplace(ResType::STRARRAY, bind(&JsonCompiler::HandleStringArray, this, _1, _2)); in InitParser()
89 handles_.emplace(ResType::INTARRAY, bind(&JsonCompiler::HandleIntegerArray, this, _1, _2)); in InitParser()
90 handles_.emplace(ResType::THEME, bind(&JsonCompiler::HandleTheme, this, _1, _2)); in InitParser()
91 handles_.emplace(ResType::PATTERN, bind(&JsonCompiler::HandlePattern, this, _1, _2)); in InitParser()
[all …]
Dresource_util.cpp111 ResType ResourceUtil::GetResTypeByDir(const string &name) in GetResTypeByDir()
115 return ResType::INVALID_RES_TYPE; in GetResTypeByDir()
120 string ResourceUtil::ResTypeToString(ResType type) in ResTypeToString()
138 string ResourceUtil::GetIdName(const string &name, ResType type) in GetIdName()
140 if (type != ResType::MEDIA && type != ResType::PROF) { in GetIdName()
199 ResType ResourceUtil::GetResTypeFromString(const string &type) in GetResTypeFromString()
201 ResType resType = GetResTypeByDir(type); in GetResTypeFromString()
202 if (resType != ResType::INVALID_RES_TYPE) { in GetResTypeFromString()
210 return ResType::INVALID_RES_TYPE; in GetResTypeFromString()
Dresource_append.cpp100 if (iter->GetResType() == ResType::PROF || iter->GetResType() == ResType::MEDIA) { in ParseRef()
218 ResType resType = ResourceUtil::GetResTypeByDir(fileCuster); in ScanLimitKey()
219 if (resType == ResType::INVALID_RES_TYPE) { in ScanLimitKey()
299 ResType resType = ResourceUtil::GetResTypeByDir(fileCuster); in ScanSingleFile()
300 if (resType == ResType::INVALID_RES_TYPE) { in ScanSingleFile()
440 ResourceItem resourceItem("", keyParams, ResType::RAW); in WriteRawFile()
491 ResType resType = resourceItem->GetResType(); in AddRef()
492 if (resType == ResType::MEDIA) { in AddRef()
499 if (resType == ResType::PROF) { in AddRef()
525 ResType resType = static_cast<ResType>(type); in LoadResourceItemFromMem()
[all …]
Did_worker.cpp41 int32_t IdWorker::GenerateId(ResType resType, const string &name) in GenerateId()
51 map<ResType, vector<ResourceId>> idClassify; in GetHeaderId()
67 int32_t IdWorker::GetId(ResType resType, const string &name) const in GetId()
76 int32_t IdWorker::GetSystemId(ResType resType, const string &name) const in GetSystemId()
97 bool IdWorker::PushCache(ResType resType, const string &name, int32_t id) in PushCache()
124 int32_t IdWorker::GenerateAppId(ResType resType, const string &name) in GenerateAppId()
180 int32_t IdWorker::GenerateSysId(ResType resType, const string &name) in GenerateSysId()
341 if (ResourceUtil::GetResTypeFromString(type.asString()) == ResType::INVALID_RES_TYPE) { in ParseType()
390 ResType resType = ResourceUtil::GetResTypeFromString(resourceId.type); in PushResourceId()
Dfile_manager.cpp35 map<ResType, vector<DirectoryInfo>> resTypeOfDirs; in ScanModules()
50 map<ResType, vector<DirectoryInfo>> &resTypeOfDirs) in ScanModule() argument
Dresource_directory.cpp80 ResType type = ResourceUtil::GetResTypeByDir(fileCluster); in ScanResourceLimitKeyDir()
81 if (type == ResType::INVALID_RES_TYPE) { in ScanResourceLimitKeyDir()
Dresource_pack.cpp429 ResType type = ResType::INVALID_RES_TYPE; in FindResourceItems()
436 if (type == ResType::INVALID_RES_TYPE) { in FindResourceItems()
453 if (it.GetResType() != ResType::STRING) { in HandleLabel()
465 nextId = IdWorker::GetInstance().GenerateId(ResType::STRING, idName); in HandleLabel()
502 if (it.GetResType() != ResType::MEDIA) { in HandleIcon()
521 ResourceItem resourceItem(fileName, it.GetKeyParam(), ResType::MEDIA); in HandleIcon()
527 nextId = IdWorker::GetInstance().GenerateId(ResType::MEDIA, idName); in HandleIcon()
Dresource_item.cpp33 ResourceItem::ResourceItem(const string &name, const vector<KeyParam> &keyparams, ResType type) in ResourceItem()
97 const ResType &ResourceItem::GetResType() const in GetResType()
Dappend_compiler.cpp24 AppendCompiler::AppendCompiler(ResType type, const string &output) : IResourceCompiler(type, output) in AppendCompiler()
Di_resource_compiler.cpp28 IResourceCompiler::IResourceCompiler(ResType type, const string &output) in IResourceCompiler()
94 const map<pair<ResType, string>, vector<ResourceItem>> &IResourceCompiler::GetResourceItems() const in GetResourceItems()
/developtools/packing_tool/adapter/ohos/
DResourcesParser.java51 private enum ResType { enum in ResourcesParser
79 private ResType(int index, String type) { in ResType() method in ResourcesParser.ResType
85 for (ResType resType : ResType.values()) { in getType()
515 resourceIndexResult.type = ResType.getType(item.type); in parseDataItems()
518 if (item.type == ResType.StrArray.getIndex() || item.type == ResType.IntArray.getIndex() in parseDataItems()
519 … || item.type == ResType.Theme.getIndex() || item.type == ResType.Plurals.getIndex() in parseDataItems()
520 || item.type == ResType.Pattern.getIndex()) { in parseDataItems()

12