Searched refs:resourceId (Results 1 – 7 of 7) sorted by relevance
/developtools/global_resource_tool/src/ |
D | id_defined_parser.cpp | 143 ResourceId resourceId; in IdDefinedToResourceIds() local 144 resourceId.seq = index; in IdDefinedToResourceIds() 145 resourceId.id = startSysId; in IdDefinedToResourceIds() 150 if (!handle.second(cJSON_GetObjectItem(item, handle.first.c_str()), resourceId)) { in IdDefinedToResourceIds() 154 if (!PushResourceId(filePath, resourceId, isSystem)) { in IdDefinedToResourceIds() 161 bool IdDefinedParser::PushResourceId(const std::string &filePath, const ResourceId &resourceId, boo… in PushResourceId() argument 163 ResType resType = ResourceUtil::GetResTypeFromString(resourceId.type); in PushResourceId() 164 auto ret = idDefineds_.emplace(resourceId.id, resourceId); in PushResourceId() 166 …cerr << "Error: '" << ret.first->second.name << "' and '" << resourceId.name << "' defind the same… in PushResourceId() 172 [resType, resourceId](const auto &iterItem) { in PushResourceId() [all …]
|
D | resource_pack.cpp | 180 [&first](stringstream &buffer, const ResourceId& resourceId) { in GenerateTextHeader() argument 186 buffer << resourceId.type << " " << resourceId.name; in GenerateTextHeader() 187 buffer << " 0x" << hex << setw(8) << setfill('0') << resourceId.id; in GenerateTextHeader() 204 }, [](stringstream &buffer, const ResourceId& resourceId) { in GenerateCplusHeader() argument 205 string name = resourceId.type + "_" + resourceId.name; in GenerateCplusHeader() 208 buffer << "0x" << hex << setw(8) << setfill('0') << resourceId.id << ";\n"; in GenerateCplusHeader() 223 }, [&itemType](stringstream &buffer, const ResourceId& resourceId) { in GenerateJsHeader() argument 224 if (itemType != resourceId.type) { in GenerateJsHeader() 228 buffer << " " << resourceId.type << " : {\n"; in GenerateJsHeader() 229 itemType = resourceId.type; in GenerateJsHeader() [all …]
|
D | id_worker.cpp | 64 ResourceId resourceId; in GetHeaderId() local 65 resourceId.id = it.second; in GetHeaderId() 66 resourceId.type = ResourceUtil::ResTypeToString(it.first.first); in GetHeaderId() 67 resourceId.name = it.first.second; in GetHeaderId() 68 idClassify[it.first.first].push_back(resourceId); in GetHeaderId()
|
D | header.cpp | 62 for (const auto &resourceId : resourceIds) { in Create() local 63 bodyHandler(buffer, resourceId); in Create()
|
/developtools/ace_js2bundle/ace-loader/src/ |
D | resource-reference-script.js | 25 const resourceId = "\"@ohos_id_" + OHOS_THEME_PROP_GROUPS[resourceName] + "\"" 26 source = source.replace(result[0], resourceId) 28 ResourceRefReg.lastIndex -= result[0].length - resourceId.length 40 … const resourceId = "\"@sys." + resourceType + "." + OHOS_THEME_PROP_GROUPS[resourceName] + "\"" 41 source = source.replace(result[0], resourceId) 43 SysResourceTypeRefReg.lastIndex -= result[0].length - resourceId.length 55 const resourceId = "\"@app." + resourceType + "." + resourceName + "\"" 56 source = source.replace(result[0], resourceId) 58 AppResourceTypeRefReg.lastIndex -= result[0].length - resourceId.length
|
/developtools/global_resource_tool/include/ |
D | id_defined_parser.h | 45 bool ParseType(const cJSON *type, ResourceId &resourceId); 46 bool ParseName(const cJSON *name, ResourceId &resourceId); 47 bool ParseOrder(const cJSON *order, ResourceId &resourceId); 48 bool ParseId(const cJSON *id, ResourceId &resourceId); 49 bool PushResourceId(const std::string &filePath, const ResourceId &resourceId, bool isSystem);
|
/developtools/packing_tool/adapter/ohos/ |
D | ResourcesParser.java | 213 static String getResourceById(int resourceId, byte[] data) throws BundleException { in getResourceById() argument 215 if (data == null || data.length <= 0 || resourceId == RESOURCE_DEFAULT_ID) { in getResourceById() 220 List<String> result = getResource(resourceId, data); in getResourceById() 235 static String getBaseResourceById(int resourceId, byte[] data) throws BundleException { in getBaseResourceById() argument 237 if (data == null || data.length <= 0 || resourceId == RESOURCE_DEFAULT_ID) { in getBaseResourceById() 241 resourceIdValue = getBaseResource(resourceId, data); in getBaseResourceById()
|