Searched refs:entry_index (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/libs/androidfw/include/androidfw/ |
D | LoadedArsc.h | 62 inline uint32_t GetFlagsForEntryIndex(uint16_t entry_index) const { in GetFlagsForEntryIndex() 63 if (entry_index >= dtohl(type_spec->entryCount)) { in GetFlagsForEntryIndex() 68 return flags[entry_index]; in GetFlagsForEntryIndex() 166 static const ResTable_entry* GetEntry(const ResTable_type* type_chunk, uint16_t entry_index); 168 static uint32_t GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index);
|
/frameworks/base/libs/androidfw/tests/ |
D | LoadedArsc_test.cpp | 63 const uint16_t entry_index = get_entry_id(app::R::string::string_one); in TEST() local 71 ASSERT_THAT(LoadedPackage::GetEntry(type, entry_index), NotNull()); in TEST() 87 const uint16_t entry_index = get_entry_id(sparse::R::integer::foo_9); in TEST() local 95 ASSERT_THAT(LoadedPackage::GetEntry(type, entry_index), NotNull()); in TEST() 170 uint8_t entry_index = get_entry_id(basic::R::string::test3); in TEST() local 183 ASSERT_THAT(LoadedPackage::GetEntry(type_spec->types[0], entry_index), NotNull()); in TEST() 358 const uint16_t entry_index = get_entry_id(overlayable::R::string::overlayable11); in TEST() local 366 ASSERT_THAT(LoadedPackage::GetEntry(type, entry_index), NotNull()); in TEST()
|
/frameworks/base/libs/androidfw/ |
D | LoadedArsc.cpp | 237 uint16_t entry_index) { in GetEntry() argument 238 uint32_t entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry() 245 uint32_t LoadedPackage::GetEntryOffset(const ResTable_type* type_chunk, uint16_t entry_index) { in GetEntryOffset() argument 260 std::lower_bound(sparse_indices, sparse_indices_end, entry_index, in GetEntryOffset() 265 if (result == sparse_indices_end || dtohs(result->idx) != entry_index) { in GetEntryOffset() 276 if (entry_index >= entry_count) { in GetEntryOffset() 283 return dtohl(entry_offsets[entry_index]); in GetEntryOffset()
|