Searched refs:entry_index (Results 1 – 3 of 3) sorted by relevance
/aosp14/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | LoadedArsc.h | 65 base::expected<uint32_t, NullOrIOError> GetFlagsForEntryIndex(uint16_t entry_index) const { in GetFlagsForEntryIndex() 66 if (entry_index >= dtohl(type_spec->entryCount)) { in GetFlagsForEntryIndex() 69 const auto entry_flags_ptr = ((type_spec + 1).convert<uint32_t>() + entry_index); in GetFlagsForEntryIndex() 170 GetEntry(incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index); 173 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index);
|
/aosp14/frameworks/base/libs/androidfw/tests/ |
H A D | LoadedArsc_test.cpp | 64 const uint16_t entry_index = get_entry_id(app::R::string::string_one); in TEST() local 71 ASSERT_TRUE(LoadedPackage::GetEntry(type.type, entry_index).has_value()); in TEST() 151 uint8_t entry_index = get_entry_id(basic::R::string::test3); in TEST() local 161 ASSERT_TRUE(LoadedPackage::GetEntry(type_spec->type_entries[0].type, entry_index).has_value()); in TEST() 336 const uint16_t entry_index = get_entry_id(overlayable::R::string::overlayable11); in TEST() local 343 ASSERT_TRUE(LoadedPackage::GetEntry(type.type, entry_index).has_value()); in TEST() 368 const uint16_t entry_index = get_entry_id(sparse::R::integer::foo_9); in TEST_P() local 375 ASSERT_TRUE(LoadedPackage::GetEntry(type.type, entry_index).has_value()); in TEST_P()
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | LoadedArsc.cpp | 239 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntry() argument 240 base::expected<uint32_t, NullOrIOError> entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry() 248 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntryOffset() argument 260 auto result = std::lower_bound(sparse_indices, sparse_indices_end, entry_index, in GetEntryOffset() 275 if (dtohs(entry->idx) != entry_index) { in GetEntryOffset() 288 if (entry_index >= entry_count) { in GetEntryOffset() 296 const auto entry_offset_ptr = offsets.convert<uint16_t>() + entry_index; in GetEntryOffset() 302 const auto entry_offset_ptr = offsets.convert<uint32_t>() + entry_index; in GetEntryOffset()
|