Lines Matching refs:entry_count
82 const size_t entry_count = dtohl(header->entryCount); in VerifyResTableType() local
83 if (entry_count > std::numeric_limits<uint16_t>::max()) { in VerifyResTableType()
84 LOG(ERROR) << "RES_TABLE_TYPE_TYPE has too many entries (" << entry_count << ")."; in VerifyResTableType()
92 ? sizeof(uint16_t) * entry_count in VerifyResTableType()
93 : sizeof(uint32_t) * entry_count; in VerifyResTableType()
251 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset() local
259 auto sparse_indices_end = sparse_indices + entry_count; in GetEntryOffset()
288 if (entry_index >= entry_count) { in GetEntryOffset()
395 const size_t entry_count = dtohl(type->entryCount); in FindEntryByName() local
398 for (size_t entry_idx = 0; entry_idx < entry_count; entry_idx++) { in FindEntryByName()
556 const size_t entry_count = dtohl(type_spec->entryCount); in Load() local
560 if (entry_count > std::numeric_limits<uint16_t>::max()) { in Load()
561 LOG(ERROR) << "RES_TABLE_TYPE_SPEC_TYPE has too many entries (" << entry_count << ")."; in Load()
565 if (entry_count * sizeof(uint32_t) > chunk.data_size()) { in Load()
573 loaded_package->resource_ids_.set(type_spec->id, entry_count); in Load()
673 < dtohl(policy_header->entry_count)) { in Load()
680 const auto ids_end = ids_begin + dtohl(policy_header->entry_count); in Load()