Home
last modified time | relevance | path

Searched refs:resourceId (Results 1 - 6 of 6) sorted by relevance

/developtools/global_resource_tool/src/
H A Did_defined_parser.cpp143 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, bool isSystem) 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 in PushResourceId()
186 sysDefinedIds_.emplace(make_pair(resType, resourceId.name), resourceId); PushResourceId() local
188 appDefinedIds_.emplace(make_pair(resType, resourceId.name), resourceId); PushResourceId() local
193 ParseId(const cJSON *origId, ResourceId &resourceId) ParseId() argument
219 ParseType(const cJSON *type, ResourceId &resourceId) ParseType() argument
238 ParseName(const cJSON *name, ResourceId &resourceId) ParseName() argument
260 ParseOrder(const cJSON *order, ResourceId &resourceId) ParseOrder() argument
[all...]
H A Did_worker.cpp64 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()
H A Dresource_pack.cpp194 [&first](stringstream &buffer, const ResourceId& resourceId) { in GenerateTextHeader()
200 buffer << resourceId.type << " " << resourceId.name; in GenerateTextHeader()
201 buffer << " 0x" << hex << setw(8) << setfill('0') << resourceId.id; in GenerateTextHeader()
218 }, [](stringstream &buffer, const ResourceId& resourceId) { in GenerateCplusHeader()
219 string name = resourceId.type + "_" + resourceId.name; in GenerateCplusHeader()
222 buffer << "0x" << hex << setw(8) << setfill('0') << resourceId.id << ";\n"; in GenerateCplusHeader()
237 }, [&itemType](stringstream &buffer, const ResourceId& resourceId) { in GenerateJsHeader()
238 if (itemType != resourceId in GenerateJsHeader()
[all...]
H A Dheader.cpp62 for (const auto &resourceId : resourceIds) { in Create()
63 bodyHandler(buffer, resourceId); in Create()
/developtools/global_resource_tool/include/
H A Did_defined_parser.h45 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/
H A DResourcesParser.java208 * @param resourceId resource id
210 * @return the resourceId value
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()
230 * @param resourceId resource id
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()

Completed in 3 milliseconds