Home
last modified time | relevance | path

Searched refs:num_entries (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/binder/
DPersistableBundle.cpp318 size_t num_entries = size(); in writeToParcelInner() local
319 if (num_entries > std::numeric_limits<int32_t>::max()) { in writeToParcelInner()
321 num_entries); in writeToParcelInner()
324 RETURN_IF_FAILED(parcel->writeInt32(static_cast<int32_t>(num_entries))); in writeToParcelInner()
408 int32_t num_entries; in readFromParcelInner() local
409 RETURN_IF_FAILED(parcel->readInt32(&num_entries)); in readFromParcelInner()
411 for (; num_entries > 0; --num_entries) { in readFromParcelInner()
/frameworks/base/tools/aapt2/format/binary/
DTableFlattener.cpp572 const size_t num_entries = sorted_entries->back()->id.value() + 1; in FlattenTypeSpec() local
574 spec_header->entryCount = util::HostToDevice32(num_entries); in FlattenTypeSpec()
578 uint32_t* config_masks = type_spec_writer.NextBlock<uint32_t>(num_entries); in FlattenTypeSpec()
631 const size_t num_entries = sorted_entries.back()->id.value() + 1; in FlattenTypes() local
663 if (!FlattenConfig(type, entry.first, num_entries, &entry.second, buffer)) { in FlattenTypes()
676 const size_t num_entries = (package_->id.value() == 0x00 ? 1 : 0) + shared_libs_->size(); in FlattenLibrarySpec() local
677 CHECK(num_entries > 0); in FlattenLibrarySpec()
679 lib_header->count = util::HostToDevice32(num_entries); in FlattenLibrarySpec()
681 ResTable_lib_entry* lib_entry = buffer->NextBlock<ResTable_lib_entry>(num_entries); in FlattenLibrarySpec()