/developtools/global_resource_tool/include/ |
D | resource_data.h | 60 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 …]
|
D | id_worker.h | 44 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_;
|
D | reference_parser.h | 36 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;
|
D | i_resource_compiler.h | 28 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_;
|
D | resource_module.h | 32 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;
|
D | resource_item.h | 29 ResourceItem(const std::string &name, const std::vector<KeyParam> &keyparams, ResType type); 41 const ResType &GetResType() const; 54 ResType type_;
|
D | resource_util.h | 80 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);
|
D | factory_resource_compiler.h | 27 … static std::unique_ptr<IResourceCompiler> CreateCompiler(ResType type, const std::string &output); 28 …static std::unique_ptr<IResourceCompiler> CreateCompilerForAppend(ResType type, const std::string …
|
D | append_compiler.h | 26 AppendCompiler(ResType type, const std::string &output);
|
D | json_compiler.h | 28 JsonCompiler(ResType type, const std::string &output); 61 std::map<ResType, HandleResource> handles_;
|
D | generic_compiler.h | 26 GenericCompiler(ResType type, const std::string &output);
|
/developtools/global_resource_tool/src/ |
D | reference_parser.cpp | 26 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 …]
|
D | factory_resource_compiler.cpp | 25 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()
|
D | resource_module.cpp | 26 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()
|
D | json_compiler.cpp | 31 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 …]
|
D | resource_util.cpp | 111 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()
|
D | resource_append.cpp | 100 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 …]
|
D | id_worker.cpp | 41 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()
|
D | file_manager.cpp | 35 map<ResType, vector<DirectoryInfo>> resTypeOfDirs; in ScanModules() 50 map<ResType, vector<DirectoryInfo>> &resTypeOfDirs) in ScanModule() argument
|
D | resource_directory.cpp | 80 ResType type = ResourceUtil::GetResTypeByDir(fileCluster); in ScanResourceLimitKeyDir() 81 if (type == ResType::INVALID_RES_TYPE) { in ScanResourceLimitKeyDir()
|
D | resource_pack.cpp | 429 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()
|
D | resource_item.cpp | 33 ResourceItem::ResourceItem(const string &name, const vector<KeyParam> &keyparams, ResType type) in ResourceItem() 97 const ResType &ResourceItem::GetResType() const in GetResType()
|
D | append_compiler.cpp | 24 AppendCompiler::AppendCompiler(ResType type, const string &output) : IResourceCompiler(type, output) in AppendCompiler()
|
D | i_resource_compiler.cpp | 28 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/ |
D | ResourcesParser.java | 51 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()
|