Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DIdmap.cpp55 if (input_entry_id >= dtohs(header->entry_count)) { in Lookup()
150 static_cast<size_t>(dtohs(entry_header->entry_count))) { in Load()
152 (int)dtohs(entry_header->entry_count)); in Load()
157 if (dtohs(entry_header->entry_count != 0)) { in Load()
163 sizeof(*entry_header) + (dtohs(entry_header->entry_count) * sizeof(uint32_t)); in Load()
DLoadedArsc.cpp100 const size_t entry_count = dtohl(header->entryCount); in VerifyResTableType() local
101 if (entry_count > std::numeric_limits<uint16_t>::max()) { in VerifyResTableType()
102 LOG(ERROR) << "RES_TABLE_TYPE_TYPE has too many entries (" << entry_count << ")."; in VerifyResTableType()
109 const size_t offsets_length = sizeof(uint32_t) * entry_count; in VerifyResTableType()
251 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset() local
261 const ResTable_sparseTypeEntry* sparse_indices_end = sparse_indices + entry_count; in GetEntryOffset()
279 if (entry_index >= entry_count) { in GetEntryOffset()
374 size_t entry_count = dtohl(type->entryCount); in FindEntryByName() local
375 for (size_t entry_idx = 0; entry_idx < entry_count; entry_idx++) { in FindEntryByName()
500 const size_t entry_count = dtohl(type_spec->entryCount); in Load() local
[all …]
DAssetManager2.cpp818 const size_t entry_count = map_entry_end - map_entry; in GetBag() local
820 malloc(sizeof(ResolvedBag) + (entry_count * sizeof(ResolvedBag::Entry))))}; in GetBag()
849 new_bag->entry_count = static_cast<uint32_t>(entry_count); in GetBag()
869 const size_t max_count = parent_bag->entry_count + dtohl(map->count); in GetBag()
875 const ResolvedBag::Entry* const parent_entry_end = parent_entry + parent_bag->entry_count; in GetBag()
961 new_bag->entry_count = static_cast<uint32_t>(actual_count); in GetBag()
1111 int entry_count; member
1179 type->entry_count = entry_idx + 1; in ApplyStyle()
1180 } else if (entry_idx >= type->entry_count) { in ApplyStyle()
1188 memset(type->entries + type->entry_count, 0, in ApplyStyle()
[all …]
DAttributeResolution.cpp56 bag != nullptr ? bag->entries + bag->entry_count : nullptr) { in BagAttributeFinder()
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp298 const size_t entry_count = dtohl(type_spec->entryCount); in ParseTypeSpec() local
302 if (entry_count > std::numeric_limits<uint16_t>::max()) { in ParseTypeSpec()
304 << "ResTable_typeSpec has too many entries (" << entry_count << ")"); in ParseTypeSpec()
310 if (entry_count * sizeof(uint32_t) > data_size) { in ParseTypeSpec()
319 for (size_t i = 0; i < entry_count; i++) { in ParseTypeSpec()
490 + util::DeviceToHost32(policy_header->entry_count); in ParseOverlayable()
DTableFlattener.cpp550 policy_type->entry_count = util::HostToDevice32(static_cast<uint32_t>( in FlattenOverlayable()
/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
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp808 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetStyleAttributes()
813 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetStyleAttributes()
828 jobjectArray array = env->NewObjectArray(bag->entry_count, g_stringClass, nullptr); in NativeGetResourceStringArray()
833 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceStringArray()
884 jintArray array = env->NewIntArray(bag->entry_count * 2); in NativeGetResourceStringArrayInfo()
894 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceStringArrayInfo()
926 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetResourceIntArray()
936 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceIntArray()
963 return static_cast<jint>(bag->entry_count); in NativeGetResourceArraySize()
979 if (static_cast<jsize>(bag->entry_count) > out_data_length * STYLE_NUM_ENTRIES) { in NativeGetResourceArray()
[all …]
/frameworks/base/libs/androidfw/tests/
DAssetManager2_test.cpp233 ASSERT_EQ(3u, bag->entry_count); in TEST_F()
260 ASSERT_GE(bag->entry_count, 2u); in TEST_F()
279 ASSERT_GE(bag->entry_count, 2u); in TEST_F()
294 ASSERT_EQ(2u, bag_one->entry_count); in TEST_F()
308 ASSERT_EQ(6u, bag_two->entry_count); in TEST_F()
360 ASSERT_EQ(3u, bag_one->entry_count); in TEST_F()
DLoadedArsc_test.cpp238 entry_header->entry_count = 1; in MockLoadedIdmap()
/frameworks/base/libs/androidfw/include/androidfw/
DAssetManager2.h68 uint32_t entry_count; member
491 return bag->entries + bag->entry_count; in end()
DResourceTypes.h1666 uint32_t entry_count; member
1688 uint16_t entry_count; member
/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/av/camera/ndk/impl/
DACameraMetadata.cpp393 size_t entry_count = mData.entryCount(); in getTags() local
394 mTags.setCapacity(entry_count); in getTags()
396 for (size_t i = 0; i < entry_count; i++) { in getTags()
/frameworks/base/cmds/idmap2/libidmap2/
DIdmap.cpp204 uint16_t entry_count; in FromBinaryStream() local
206 !Read16(stream, &entry_count) || !Read16(stream, &data->entry_offset_)) { in FromBinaryStream()
211 for (uint16_t i = 0; i < entry_count; i++) { in FromBinaryStream()
/frameworks/av/media/extractors/mp4/
DItemTable.cpp1165 uint32_t entry_count; in parse() local
1166 if (!source()->getUInt32Var(offset, &entry_count, entryCountSize)) { in parse()
1169 ALOGV("entry_count %d", entry_count); in parse()
1173 for (size_t i = 0; i < entry_count && offset < stopOffset; i++) { in parse()
DMPEG4Extractor.cpp1136 uint32_t entry_count; in parseChunk() local
1137 if (!mDataSource->getUInt32(data_offset + 4, &entry_count)) { in parseChunk()
1141 if (entry_count != 1) { in parseChunk()
1144 ALOGW("ignoring edit list with %d entries", entry_count); in parseChunk()
1529 uint32_t entry_count = U32_AT(&buffer[4]); in parseChunk() local
1531 if (entry_count > 1) { in parseChunk()
1552 for (uint32_t i = 0; i < entry_count; ++i) { in parseChunk()
/frameworks/base/tools/aapt2/process/
DSymbolTable.cpp279 const size_t count = bag->entry_count; in LookupAttributeInTable()