Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
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()
84 LOG(ERROR) << "RES_TABLE_TYPE_TYPE has too many entries (" << entry_count << ")."; in VerifyResTableType()
91 const size_t offsets_length = sizeof(uint32_t) * entry_count; in VerifyResTableType()
244 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset() local
253 auto sparse_indices_end = sparse_indices + entry_count; in GetEntryOffset()
282 if (entry_index >= entry_count) { in GetEntryOffset()
379 size_t entry_count = dtohl(type->entryCount); in FindEntryByName() local
380 for (size_t entry_idx = 0; entry_idx < entry_count; entry_idx++) { in FindEntryByName()
520 const size_t entry_count = dtohl(type_spec->entryCount); in Load() local
[all …]
DAssetManager2.cpp1037 const size_t entry_count = map_entry_end - map_entry; in GetBag() local
1039 malloc(sizeof(ResolvedBag) + (entry_count * sizeof(ResolvedBag::Entry))))}; in GetBag()
1078 std::sort(new_bag->entries, new_bag->entries + entry_count, in GetBag()
1083 new_bag->entry_count = static_cast<uint32_t>(entry_count); in GetBag()
1103 const size_t max_count = (*parent_bag)->entry_count + dtohl(map->count); in GetBag()
1109 const ResolvedBag::Entry* const parent_entry_end = parent_entry + (*parent_bag)->entry_count; in GetBag()
1213 new_bag->entry_count = static_cast<uint32_t>(actual_count); in GetBag()
DAttributeResolution.cpp58 bag != nullptr ? bag->entries + bag->entry_count : nullptr) { in BagAttributeFinder()
/frameworks/base/tools/aapt2/
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
DResourceTable.cpp478 const size_t entry_count = std::distance(entry_it.first, entry_it.second); in AddResource() local
481 if (entry_count == 0) { in AddResource()
484 } else if (entry_count == 1) { in AddResource()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp303 const size_t entry_count = dtohl(type_spec->entryCount); in ParseTypeSpec() local
307 if (entry_count > std::numeric_limits<uint16_t>::max()) { in ParseTypeSpec()
309 << "ResTable_typeSpec has too many entries (" << entry_count << ")"); in ParseTypeSpec()
315 if (entry_count * sizeof(uint32_t) > data_size) { in ParseTypeSpec()
324 for (size_t i = 0; i < entry_count; i++) { in ParseTypeSpec()
468 + util::DeviceToHost32(policy_header->entry_count); in ParseOverlayable()
DTableFlattener.cpp528 policy_type->entry_count = util::HostToDevice32(static_cast<uint32_t>( in FlattenOverlayable()
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp131 for (size_t i = 0; i < bag->entry_count; ++i) { in GetValue()
138 if (i != bag->entry_count - 1) { in GetValue()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp683 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetStyleAttributes()
688 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetStyleAttributes()
704 jobjectArray array = env->NewObjectArray(bag->entry_count, g_stringClass, nullptr); in NativeGetResourceStringArray()
709 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceStringArray()
757 jintArray array = env->NewIntArray(bag->entry_count * 2); in NativeGetResourceStringArrayInfo()
767 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceStringArrayInfo()
795 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetResourceIntArray()
805 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceIntArray()
828 return static_cast<jint>((*bag)->entry_count); in NativeGetResourceArraySize()
845 if (static_cast<jsize>(bag->entry_count) > out_data_length * STYLE_NUM_ENTRIES) { in NativeGetResourceArray()
[all …]
/frameworks/base/tools/aapt2/format/
DContainer.h40 explicit ContainerWriter(::google::protobuf::io::ZeroCopyOutputStream* out, size_t entry_count);
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()
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp261 ASSERT_EQ(3u, (*bag)->entry_count); in TEST_F()
289 ASSERT_GE((*bag)->entry_count, 2u); in TEST_F()
308 ASSERT_EQ((*bag)->entry_count, 2u); in TEST_F()
329 ASSERT_GE((*bag)->entry_count, 2u); in TEST_F()
344 ASSERT_EQ(2u, (*bag_one)->entry_count); in TEST_F()
358 ASSERT_EQ(6u, (*bag_two)->entry_count); in TEST_F()
410 ASSERT_EQ(3u, (*bag)->entry_count); in TEST_F()
/frameworks/av/camera/ndk/impl/
DACameraMetadata.cpp448 size_t entry_count = mData->entryCount(); in getTags() local
449 mTags.setCapacity(entry_count); in getTags()
451 for (size_t i = 0; i < entry_count; i++) { in getTags()
/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h68 uint32_t entry_count; member
571 return bag->entries + bag->entry_count; in end()
DResourceTypes.h1739 uint32_t entry_count; member
/frameworks/av/media/extractors/mp4/
DItemTable.cpp1225 uint32_t entry_count; in parse() local
1226 if (!source()->getUInt32Var(offset, &entry_count, entryCountSize)) { in parse()
1229 ALOGV("entry_count %d", entry_count); in parse()
1233 for (size_t i = 0; i < entry_count && offset < stopOffset; i++) { in parse()
DMPEG4Extractor.cpp1257 uint32_t entry_count; in parseChunk() local
1258 if (!mDataSource->getUInt32(data_offset + 4, &entry_count)) { in parseChunk()
1262 if (entry_count > 2) { in parseChunk()
1266 ALOGW("ignoring edit list with %d entries", entry_count); in parseChunk()
1272 for (int i = 0; i < entry_count; ++i) { in parseChunk()
1322 ALOGW("for now, unsupported entry in edit list %" PRIu32, entry_count); in parseChunk()
1684 uint32_t entry_count = U32_AT(&buffer[4]); in parseChunk() local
1686 if (entry_count > 1) { in parseChunk()
1707 for (uint32_t i = 0; i < entry_count; ++i) { in parseChunk()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp281 const size_t count = bag->entry_count; in LookupAttributeInTable()