Home
last modified time | relevance | path

Searched refs:ResTable_entry (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/tools/aapt2/format/binary/
DResEntryWriter.cpp188 static_assert(std::is_same_v<ResTable_entry, T> || std::is_same_v<ResTable_entry_ext, T>, in WriteEntry()
191 ResTable_entry* out_entry = (ResTable_entry*)out_result; in WriteEntry()
195 flags |= ResTable_entry::FLAG_PUBLIC; in WriteEntry()
199 flags |= ResTable_entry::FLAG_WEAK; in WriteEntry()
203 flags |= ResTable_entry::FLAG_COMPLEX; in WriteEntry()
213 CHECK(compact && (std::is_same_v<ResTable_entry, T>)) << "cannot encode complex entry"; in WriteEntry()
216 flags |= ResTable_entry::FLAG_COMPACT | (value.dataType << 8); in WriteEntry()
DResEntryWriter.h32 using android::ResTable_entry;
47 ResTable_entry entry;
51 static_assert(sizeof(ResEntryValuePair) == sizeof(ResTable_entry) + sizeof(Res_value),
55 using ResEntryValue = std::conditional_t<compact, ResTable_entry, ResEntryValuePair>;
DResEntryWriter_test.cpp76 std::vector<int32_t> expected_offsets{0, sizeof(ResTable_entry), in TEST_F()
77 2 * sizeof(ResTable_entry)}; in TEST_F()
78 EXPECT_EQ(out.size(), 3 * sizeof(ResTable_entry)); in TEST_F()
147 EXPECT_EQ(out.size(), sizeof(ResTable_entry)); in TEST_F()
DResourceTypeExtensions.h26 android::ResTable_entry entry;
DBinaryResourceParser.cpp382 const ResTable_entry* entry = *it; in ParseType()
417 if (entry->flags() & ResTable_entry::FLAG_PUBLIC) { in ParseType()
639 attr->SetWeak((android::util::DeviceToHost16(map->flags) & ResTable_entry::FLAG_WEAK) != 0); in ParseAttr()
DTableFlattener_test.cpp750 deduplicated_output.size() + 4 * (sizeof(ResTable_entry) + sizeof(Res_value))); in TEST_F()
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp42 size_t entry_size = compact_entry ? sizeof(ResTable_entry) in createTypeTable()
43 : sizeof(ResTable_entry) + sizeof(Res_value); in createTypeTable()
67 ResTable_entry entry{}; in createTypeTable()
70 entry.compact.flags = ResTable_entry::FLAG_COMPACT | (v->dataType << 8); in createTypeTable()
/frameworks/base/libs/androidfw/
DTypeWrappers.cpp51 const ResTable_entry* TypeVariant::iterator::operator*() const { in operator *()
94 const ResTable_entry* entry = reinterpret_cast<const ResTable_entry*>( in operator *()
DLoadedArsc.cpp116 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
134 if (UNLIKELY(entry_offset > chunk_size - sizeof(ResTable_entry))) { in VerifyResTableEntry()
140 auto entry = type.offset(entry_offset).convert<ResTable_entry>(); in VerifyResTableEntry()
242 base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError> LoadedPackage::GetEntry( in GetEntry()
319 base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
429 auto entry = type.offset(dtohl(type->entriesStart) + offset).convert<ResTable_entry>(); in FindEntryByName()
DResourceTypes.cpp3717 const ResTable_entry* entry;
5262 const ResTable_entry* entry = *iter; in findEntry()
6802 if (bestOffset > (dtohl(bestType->header.size)-sizeof(ResTable_entry))) { in getEntry()
6812 const ResTable_entry* const entry = reinterpret_cast<const ResTable_entry*>( in getEntry()
7060 && dtohl(type->entriesStart) > (typeSize-sizeof(ResTable_entry))) { in parsePackage()
7888 if ((thisOffset+sizeof(ResTable_entry)) > typeSize) { in print()
7894 const ResTable_entry* ent = (const ResTable_entry*) in print()
7925 if (ent->flags() & ResTable_entry::FLAG_PUBLIC) { in print()
DAssetManager2.cpp51 incfs::verified_map_ptr<ResTable_entry> table_entry) { in GetEntryValue()
/frameworks/base/libs/androidfw/include/androidfw/
DTypeWrappers.h50 const ResTable_entry* operator->() const {
59 const ResTable_entry* operator*() const;
DResourceTypes.h1534 union ResTable_entry union
1581 return is_compact() ? sizeof(ResTable_entry) : dtohs(this->full.size); in size()
1623 static_assert(sizeof(ResTable_entry) == sizeof(ResTable_entry::Full));
1624 static_assert(sizeof(ResTable_entry) == sizeof(ResTable_entry::Compact));
1625 static_assert(offsetof(ResTable_entry, full.flags) == offsetof(ResTable_entry, compact.flags));
1631 struct ResTable_map_entry : public ResTable_entry::Full
DLoadedArsc.h175 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
181 static base::expected<incfs::verified_map_ptr<ResTable_entry>, NullOrIOError>
/frameworks/base/tools/aapt2/
DDebug.cpp695 const ResTable_entry* entry = *it; in PrintTableType()
/frameworks/base/tools/aapt/
DResourceTable.cpp3746 ResTable_entry header; in flatten()