Home
last modified time | relevance | path

Searched refs:entry_count (Results 1 – 18 of 18) sorted by relevance

/aosp14/frameworks/base/libs/androidfw/
H A DLoadedArsc.cpp82 const size_t entry_count = dtohl(header->entryCount); in VerifyResTableType() local
83 if (entry_count > std::numeric_limits<uint16_t>::max()) { in VerifyResTableType()
92 ? sizeof(uint16_t) * entry_count in VerifyResTableType()
93 : sizeof(uint32_t) * entry_count; in VerifyResTableType()
251 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset() local
259 auto sparse_indices_end = sparse_indices + entry_count; in GetEntryOffset()
288 if (entry_index >= entry_count) { in GetEntryOffset()
395 const size_t entry_count = dtohl(type->entryCount); in FindEntryByName() local
556 const size_t entry_count = dtohl(type_spec->entryCount); in Load() local
560 if (entry_count > std::numeric_limits<uint16_t>::max()) { in Load()
[all …]
H A DAssetManager2.cpp1160 const size_t entry_count = map_entry_end - map_entry; in GetBag() local
1162 malloc(sizeof(ResolvedBag) + (entry_count * sizeof(ResolvedBag::Entry))))}; in GetBag()
1201 std::sort(new_bag->entries, new_bag->entries + entry_count, in GetBag()
1206 new_bag->entry_count = static_cast<uint32_t>(entry_count); in GetBag()
1226 const size_t max_count = (*parent_bag)->entry_count + dtohl(map->count); in GetBag()
1232 const ResolvedBag::Entry* const parent_entry_end = parent_entry + (*parent_bag)->entry_count; in GetBag()
1336 new_bag->entry_count = static_cast<uint32_t>(actual_count); in GetBag()
H A DAttributeResolution.cpp58 bag != nullptr ? bag->entries + bag->entry_count : nullptr) { in BagAttributeFinder()
/aosp14/frameworks/base/cmds/idmap2/libidmap2/
H A DIdmap.cpp219 uint32_t entry_count; in FromBinaryStream() local
221 || !Read32(stream, &entry_count)) { in FromBinaryStream()
224 target_inline_entries.emplace_back(target_entry, entry_offset, entry_count); in FromBinaryStream()
257 for (auto [target_entry, entry_offset, entry_count] : target_inline_entries) { in FromBinaryStream()
258 for(size_t i = 0; i < entry_count; i++) { in FromBinaryStream()
/aosp14/frameworks/base/tools/aapt2/
H A Dformats.md18 | `4` | `entry_count` | The number of entries in this container. |
20 This is followed by `entry_count` of the following data structure. It must be aligned on a 32-bit
H A DResourceTable.cpp489 const size_t entry_count = std::distance(entry_it.first, entry_it.second); in AddResource() local
492 if (entry_count == 0) { in AddResource()
495 } else if (entry_count == 1) { in AddResource()
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DBinaryResourceParser.cpp314 const size_t entry_count = dtohl(type_spec->entryCount); in ParseTypeSpec() local
318 if (entry_count > std::numeric_limits<uint16_t>::max()) { in ParseTypeSpec()
320 << "ResTable_typeSpec has too many entries (" << entry_count << ")"); in ParseTypeSpec()
326 if (entry_count * sizeof(uint32_t) > data_size) { in ParseTypeSpec()
336 for (size_t i = 0; i < entry_count; i++) { in ParseTypeSpec()
486 ref_begin + android::util::DeviceToHost32(policy_header->entry_count); in ParseOverlayable()
H A DTableFlattener.cpp370 policy_type->entry_count = in FlattenOverlayable()
/aosp14/frameworks/base/cmds/idmap2/idmap2/
H A DLookup.cpp131 for (size_t i = 0; i < bag->entry_count; ++i) { in GetValue()
138 if (i != bag->entry_count - 1) { in GetValue()
/aosp14/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp719 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetStyleAttributes()
724 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetStyleAttributes()
746 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceStringArray()
800 jintArray array = env->NewIntArray(bag->entry_count * 2); in NativeGetResourceStringArrayInfo()
810 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceStringArrayInfo()
839 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetResourceIntArray()
849 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceIntArray()
872 return static_cast<jint>((*bag)->entry_count); in NativeGetResourceArraySize()
890 if (static_cast<jsize>(bag->entry_count) > out_data_length * STYLE_NUM_ENTRIES) { in NativeGetResourceArray()
902 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceArray()
[all …]
/aosp14/frameworks/base/libs/androidfw/tests/
H A DAssetManager2_test.cpp259 ASSERT_EQ(3u, (*bag)->entry_count); in TEST_F()
286 ASSERT_GE((*bag)->entry_count, 2u); in TEST_F()
304 ASSERT_EQ((*bag)->entry_count, 2u); in TEST_F()
324 ASSERT_GE((*bag)->entry_count, 2u); in TEST_F()
339 ASSERT_EQ(2u, (*bag_one)->entry_count); in TEST_F()
353 ASSERT_EQ(6u, (*bag_two)->entry_count); in TEST_F()
405 ASSERT_EQ(3u, (*bag)->entry_count); in TEST_F()
/aosp14/frameworks/base/tools/aapt2/format/
H A DContainer.h39 explicit ContainerWriter(::google::protobuf::io::ZeroCopyOutputStream* out, size_t entry_count);
H A DContainer.cpp35 ContainerWriter::ContainerWriter(ZeroCopyOutputStream* out, size_t entry_count) in ContainerWriter() argument
36 : out_(out), total_entry_count_(entry_count), current_entry_count_(0u) { in ContainerWriter()
/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DAssetManager2.h71 uint32_t entry_count; member
607 return bag->entries + bag->entry_count; in end()
H A DResourceTypes.h1844 uint32_t entry_count; member
/aosp14/system/core/trusty/keymaster/3.0/
H A DTrustyKeymaster3Device.cpp146 if (!cert_chain.entry_count || !cert_chain.entries) return result; in kmCertChain2Hidl()
148 result.resize(cert_chain.entry_count); in kmCertChain2Hidl()
149 for (size_t i = 0; i < cert_chain.entry_count; ++i) { in kmCertChain2Hidl()
/aosp14/system/core/trusty/keymaster/4.0/
H A DTrustyKeymaster4Device.cpp198 if (!cert_chain.entry_count || !cert_chain.entries) return result; in kmCertChain2Hidl()
200 result.resize(cert_chain.entry_count); in kmCertChain2Hidl()
201 for (size_t i = 0; i < cert_chain.entry_count; ++i) { in kmCertChain2Hidl()
/aosp14/frameworks/base/tools/aapt2/process/
H A DSymbolTable.cpp276 const size_t count = bag->entry_count; in LookupAttributeInTable()