Lines Matching refs:uint32_t
14 static const uint32_t IDMAP_MAGIC = 0x504D4449;
55 status_t nextUint32(uint32_t* i) {
57 printe("failed to read next uint32_t: buffer not initialized\n");
61 if (pos_ + sizeof(uint32_t) > len_) {
62 printe("failed to read next uint32_t: end of buffer reached at pos=0x%08x\n",
68 printe("failed to read next uint32_t: not aligned on 4-byte boundary\n");
72 *i = dtohl(*reinterpret_cast<const uint32_t*>(buf_ + pos_));
73 pos_ += sizeof(uint32_t);
90 printe("failed to read next uint32_t: not aligned on 2-byte boundary\n");
127 void print(const char *section, const char *subsection, uint32_t value, const char *fmt, ...) {
147 status_t resource_metadata(const AssetManager& am, uint32_t res_id,
168 uint32_t i;
226 const uint32_t packageId = am.getResources().getBasePackageId(0);
233 print("DATA HEADER", "target pkg", static_cast<uint32_t>(data16), "");
239 print("", "types count", static_cast<uint32_t>(data16), "");
241 uint32_t typeCount = static_cast<uint32_t>(data16);
249 const uint32_t targetTypeId = static_cast<uint32_t>(data16);
256 print("", "overlay type", static_cast<uint32_t>(data16), "");
262 const uint32_t entryCount = static_cast<uint32_t>(data16);
269 const uint32_t entryOffset = static_cast<uint32_t>(data16);
272 for (uint32_t i = 0; i < entryCount; i++) {
273 uint32_t data32;
279 uint32_t resID = (packageId << 24) | (targetTypeId << 16) | (entryOffset + i);