Lines Matching refs:first

39     auto it = strings_.emplace(str, IdxAndDataOffset()).first;  in AddString()
40 CHECK_LT(it->first.length(), 128u); // Don't allow multi-byte length in uleb128. in AddString()
71 auto it = protos_.emplace(proto_key, IdxAndDataOffset()).first; in AddMethod()
72 const ProtoKey* proto = &it->first; // Valid as long as the element remains in protos_. in AddMethod()
105 data_section_size += entry.first.length() + 1u /* length */ + 1u /* null-terminator */; in Build()
124 size_t num_args = entry.first.args.size(); in Build()
167 CHECK_LT(entry.first.size(), 128u); in Build()
169 dex_file_data_[raw_offset] = static_cast<uint8_t>(entry.first.size()); in Build()
170 std::memcpy(&dex_file_data_[raw_offset + 1], entry.first.c_str(), entry.first.size() + 1); in Build()
175 Write32(type_ids_offset + entry.second * sizeof(DexFile::TypeId), GetStringIdx(entry.first)); in Build()
180 size_t num_args = entry.first.args.size(); in Build()
184 Write32(raw_offset + 0u, GetStringIdx(entry.first.shorty)); in Build()
185 Write16(raw_offset + 4u, GetTypeIdx(entry.first.return_type)); in Build()
192 GetTypeIdx(entry.first.args[i])); in Build()
199 Write16(raw_offset + 0u, GetTypeIdx(entry.first.class_descriptor)); in Build()
200 Write16(raw_offset + 2u, GetTypeIdx(entry.first.type)); in Build()
201 Write32(raw_offset + 4u, GetStringIdx(entry.first.name)); in Build()
206 Write16(raw_offset + 0u, GetTypeIdx(entry.first.class_descriptor)); in Build()
207 auto it = protos_.find(*entry.first.proto); in Build()
210 Write32(raw_offset + 4u, GetStringIdx(entry.first.name)); in Build()