Searched refs:entry_index (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/libs/androidfw/include/androidfw/ |
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 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);
|
/frameworks/base/libs/androidfw/tests/ |
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() 88 const uint16_t entry_index = get_entry_id(sparse::R::integer::foo_9); in TEST() local 95 ASSERT_TRUE(LoadedPackage::GetEntry(type.type, entry_index).has_value()); in TEST() 175 uint8_t entry_index = get_entry_id(basic::R::string::test3); in TEST() local 185 ASSERT_TRUE(LoadedPackage::GetEntry(type_spec->type_entries[0].type, entry_index).has_value()); in TEST() 360 const uint16_t entry_index = get_entry_id(overlayable::R::string::overlayable11); in TEST() local 367 ASSERT_TRUE(LoadedPackage::GetEntry(type.type, entry_index).has_value()); in TEST()
|
/frameworks/base/libs/androidfw/ |
D | LoadedArsc.cpp | 232 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntry() argument 233 base::expected<uint32_t, NullOrIOError> entry_offset = GetEntryOffset(type_chunk, entry_index); in GetEntry() 241 incfs::verified_map_ptr<ResTable_type> type_chunk, uint16_t entry_index) { in GetEntryOffset() argument 254 auto result = std::lower_bound(sparse_indices, sparse_indices_end, entry_index, in GetEntryOffset() 269 if (dtohs(entry->idx) != entry_index) { in GetEntryOffset() 282 if (entry_index >= entry_count) { in GetEntryOffset() 287 const auto entry_offset_ptr = type_chunk.offset(offsets_offset).convert<uint32_t>() + entry_index; in GetEntryOffset()
|