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.h66 inline uint32_t GetFlagsForEntryIndex(uint16_t entry_index) const { in GetFlagsForEntryIndex()
67 if (entry_index >= dtohl(type_spec->entryCount)) { in GetFlagsForEntryIndex()
72 return flags[entry_index]; in GetFlagsForEntryIndex()
151 static const ResTable_entry* GetEntry(const ResTable_type* type_chunk, uint16_t entry_index);
153 static uint32_t GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index);
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp60 const uint16_t entry_index = get_entry_id(app::R::string::string_one); in TEST() local
68 ASSERT_THAT(LoadedPackage::GetEntry(type, entry_index), NotNull()); in TEST()
84 const uint16_t entry_index = get_entry_id(sparse::R::integer::foo_9); in TEST() local
92 ASSERT_THAT(LoadedPackage::GetEntry(type, entry_index), NotNull()); in TEST()
168 uint8_t entry_index = get_entry_id(basic::R::string::test3); in TEST() local
181 ASSERT_THAT(LoadedPackage::GetEntry(type_spec->types[0], entry_index), NotNull()); in TEST()
/frameworks/base/libs/androidfw/
DLoadedArsc.cpp240 uint16_t entry_index) { in GetEntry() argument
241 uint32_t entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry()
248 uint32_t LoadedPackage::GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index) { in GetEntryOffset() argument
263 std::lower_bound(sparse_indices, sparse_indices_end, entry_index, in GetEntryOffset()
268 if (result == sparse_indices_end || dtohs(result->idx) != entry_index) { in GetEntryOffset()
279 if (entry_index >= entry_count) { in GetEntryOffset()
286 return dtohl(entry_offsets[entry_index]); in GetEntryOffset()