Home
last modified time | relevance | path

Searched refs:entry_index (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/androidfw/include/androidfw/
DLoadedArsc.h64 inline uint32_t GetFlagsForEntryIndex(uint16_t entry_index) const { in GetFlagsForEntryIndex()
65 if (entry_index >= dtohl(type_spec->entryCount)) { in GetFlagsForEntryIndex()
70 return flags[entry_index]; in GetFlagsForEntryIndex()
94 static const ResTable_entry* GetEntry(const ResTable_type* type_chunk, uint16_t entry_index);
96 static uint32_t GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index);
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp58 const uint16_t entry_index = get_entry_id(app::R::string::string_one); in TEST() local
66 ASSERT_THAT(LoadedPackage::GetEntry(type, entry_index), NotNull()); in TEST()
82 const uint16_t entry_index = get_entry_id(sparse::R::integer::foo_9); in TEST() local
90 ASSERT_THAT(LoadedPackage::GetEntry(type, entry_index), NotNull()); in TEST()
166 uint8_t entry_index = get_entry_id(basic::R::string::test3); in TEST() local
179 ASSERT_THAT(LoadedPackage::GetEntry(type_spec->types[0], entry_index), NotNull()); in TEST()
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp207 uint16_t entry_index) { in GetEntry() argument
208 uint32_t entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()
215 uint32_t LoadedPackage::GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index) { in GetEntryOffset() argument
230 std::lower_bound(sparse_indices, sparse_indices_end, entry_index, in GetEntryOffset()
235 if (result == sparse_indices_end || dtohs(result->idx) != entry_index) { in GetEntryOffset()
246 if (entry_index >= entry_count) { in GetEntryOffset()
253 return dtohl(entry_offsets[entry_index]); in GetEntryOffset()