/frameworks/base/libs/androidfw/ |
D | LoadedArsc.cpp | 86 const size_t entry_count = dtohl(header->entryCount); in VerifyResTableType() local 87 if (entry_count > std::numeric_limits<uint16_t>::max()) { in VerifyResTableType() 88 LOG(ERROR) << "RES_TABLE_TYPE_TYPE has too many entries (" << entry_count << ")."; in VerifyResTableType() 96 ? sizeof(uint16_t) * entry_count in VerifyResTableType() 97 : sizeof(uint32_t) * entry_count; in VerifyResTableType() 255 const size_t entry_count = dtohl(type_chunk->entryCount); in GetEntryOffset() local 263 auto sparse_indices_end = sparse_indices + entry_count; in GetEntryOffset() 292 if (entry_index >= entry_count) { in GetEntryOffset() 399 const size_t entry_count = dtohl(type->entryCount); in FindEntryByName() local 402 for (size_t entry_idx = 0; entry_idx < entry_count; entry_idx++) { in FindEntryByName() [all …]
|
D | AssetManager2.cpp | 1241 const size_t entry_count = map_entry_end - map_entry; in GetBag() local 1243 malloc(sizeof(ResolvedBag) + (entry_count * sizeof(ResolvedBag::Entry))))}; in GetBag() 1282 std::sort(new_bag->entries, new_bag->entries + entry_count, in GetBag() 1287 new_bag->entry_count = static_cast<uint32_t>(entry_count); in GetBag() 1307 const size_t max_count = (*parent_bag)->entry_count + dtohl(map->count); in GetBag() 1313 const ResolvedBag::Entry* const parent_entry_end = parent_entry + (*parent_bag)->entry_count; in GetBag() 1417 new_bag->entry_count = static_cast<uint32_t>(actual_count); in GetBag()
|
D | AttributeResolution.cpp | 58 bag != nullptr ? bag->entries + bag->entry_count : nullptr) { in BagAttributeFinder()
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | Idmap.cpp | 220 uint32_t entry_count; in FromBinaryStream() local 222 || !Read32(stream, &entry_count)) { in FromBinaryStream() 225 target_inline_entries.emplace_back(target_entry, entry_offset, entry_count); in FromBinaryStream() 258 for (auto [target_entry, entry_offset, entry_count] : target_inline_entries) { in FromBinaryStream() 259 for(size_t i = 0; i < entry_count; i++) { in FromBinaryStream()
|
/frameworks/base/tools/aapt2/ |
D | formats.md | 18 | `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
|
D | ResourceTable.cpp | 489 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()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | BinaryResourceParser.cpp | 314 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()
|
D | TableFlattener.cpp | 368 policy_type->entry_count = in FlattenOverlayable()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Lookup.cpp | 131 for (size_t i = 0; i < bag->entry_count; ++i) { in GetValue() 138 if (i != bag->entry_count - 1) { in GetValue()
|
/frameworks/base/tools/aapt2/format/ |
D | Container.h | 39 explicit ContainerWriter(::google::protobuf::io::ZeroCopyOutputStream* out, size_t entry_count);
|
D | Container.cpp | 35 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/core/jni/ |
D | android_util_AssetManager.cpp | 745 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetStyleAttributes() 750 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetStyleAttributes() 767 jobjectArray array = env->NewObjectArray(bag->entry_count, g_stringClass, nullptr); in NativeGetResourceStringArray() 772 for (uint32_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceStringArray() 826 jintArray array = env->NewIntArray(bag->entry_count * 2); in NativeGetResourceStringArrayInfo() 836 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceStringArrayInfo() 865 jintArray array = env->NewIntArray(bag->entry_count); in NativeGetResourceIntArray() 875 for (size_t i = 0; i < bag->entry_count; i++) { in NativeGetResourceIntArray() 898 return static_cast<jint>((*bag)->entry_count); in NativeGetResourceArraySize() 916 if (static_cast<jsize>(bag->entry_count) > out_data_length * STYLE_NUM_ENTRIES) { in NativeGetResourceArray() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_test.cpp | 259 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()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraMetadata.cpp | 462 size_t entry_count = mData->entryCount(); in getTags() local 463 mTags.setCapacity(entry_count); in getTags() 465 for (size_t i = 0; i < entry_count; i++) { in getTags()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | AssetManager2.h | 71 uint32_t entry_count; member 622 return bag->entries + bag->entry_count; in end()
|
D | ResourceTypes.h | 1852 uint32_t entry_count; member
|
/frameworks/av/media/module/extractors/mp4/ |
D | ItemTable.cpp | 1274 uint32_t entry_count; in parse() local 1275 if (!source()->getUInt32Var(offset, &entry_count, entryCountSize)) { in parse() 1278 ALOGV("entry_count %d", entry_count); in parse() 1282 for (size_t i = 0; i < entry_count && offset < stopOffset; i++) { in parse()
|
D | MPEG4Extractor.cpp | 1270 uint32_t entry_count; in parseChunk() local 1271 if (!mDataSource->getUInt32(data_offset + 4, &entry_count)) { in parseChunk() 1275 if (entry_count > 2) { in parseChunk() 1279 ALOGW("ignoring edit list with %d entries", entry_count); in parseChunk() 1285 for (int i = 0; i < entry_count; ++i) { in parseChunk() 1335 ALOGW("for now, unsupported entry in edit list %" PRIu32, entry_count); in parseChunk() 1697 uint32_t entry_count = U32_AT(&buffer[4]); in parseChunk() local 1699 if (entry_count > 1) { in parseChunk() 1720 for (uint32_t i = 0; i < entry_count; ++i) { in parseChunk()
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 276 const size_t count = bag->entry_count; in LookupAttributeInTable()
|