Lines Matching refs:entry_count
100 const size_t entry_count = dtohl(header->entryCount); in VerifyResTableType() local
101 if (entry_count > std::numeric_limits<uint16_t>::max()) { in VerifyResTableType()
102 LOG(ERROR) << "RES_TABLE_TYPE_TYPE has too many entries (" << entry_count << ")."; in VerifyResTableType()
109 const size_t offsets_length = sizeof(uint32_t) * entry_count; in VerifyResTableType()
251 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset() local
261 const ResTable_sparseTypeEntry* sparse_indices_end = sparse_indices + entry_count; in GetEntryOffset()
279 if (entry_index >= entry_count) { in GetEntryOffset()
374 size_t entry_count = dtohl(type->entryCount); in FindEntryByName() local
375 for (size_t entry_idx = 0; entry_idx < entry_count; entry_idx++) { in FindEntryByName()
500 const size_t entry_count = dtohl(type_spec->entryCount); in Load() local
504 if (entry_count > std::numeric_limits<uint16_t>::max()) { in Load()
505 LOG(ERROR) << "RES_TABLE_TYPE_SPEC_TYPE has too many entries (" << entry_count << ")."; in Load()
509 if (entry_count * sizeof(uint32_t) > chunk.data_size()) { in Load()
524 loaded_package->resource_ids_.set(type_spec->id, entry_count); in Load()
623 < dtohl(policy_header->entry_count)) { in Load()
632 const auto ids_end = ids_begin + dtohl(policy_header->entry_count); in Load()