Lines Matching refs:item
103 T* item = vector.CreateAndAddItem(std::forward<Args>(args)...); in CreateAndAddItem() local
105 DCHECK(!item->OffsetAssigned()); in CreateAndAddItem()
107 item->SetOffset(offset); in CreateAndAddItem()
109 AddItem(item, offset); in CreateAndAddItem()
110 return item; in CreateAndAddItem()
203 EncodedValue* item);
218 Type* item = vector.CreateAndAddIndexedItem(index, std::forward<Args>(args)...); in CreateAndAddIndexedItem() local
219 DCHECK(!item->OffsetAssigned()); in CreateAndAddIndexedItem()
221 item->SetOffset(offset); in CreateAndAddIndexedItem()
223 return item; in CreateAndAddIndexedItem()
337 const dex::MapItem* item = map->list_ + i; in CheckAndSetRemainingOffsets() local
338 switch (item->type_) { in CheckAndSetRemainingOffsets()
340 CHECK_EQ(item->size_, 1u); in CheckAndSetRemainingOffsets()
341 CHECK_EQ(item->offset_, 0u); in CheckAndSetRemainingOffsets()
344 CHECK_EQ(item->size_, header_->StringIds().Size()); in CheckAndSetRemainingOffsets()
345 CHECK_EQ(item->offset_, header_->StringIds().GetOffset()); in CheckAndSetRemainingOffsets()
348 CHECK_EQ(item->size_, header_->TypeIds().Size()); in CheckAndSetRemainingOffsets()
349 CHECK_EQ(item->offset_, header_->TypeIds().GetOffset()); in CheckAndSetRemainingOffsets()
352 CHECK_EQ(item->size_, header_->ProtoIds().Size()); in CheckAndSetRemainingOffsets()
353 CHECK_EQ(item->offset_, header_->ProtoIds().GetOffset()); in CheckAndSetRemainingOffsets()
356 CHECK_EQ(item->size_, header_->FieldIds().Size()); in CheckAndSetRemainingOffsets()
357 CHECK_EQ(item->offset_, header_->FieldIds().GetOffset()); in CheckAndSetRemainingOffsets()
360 CHECK_EQ(item->size_, header_->MethodIds().Size()); in CheckAndSetRemainingOffsets()
361 CHECK_EQ(item->offset_, header_->MethodIds().GetOffset()); in CheckAndSetRemainingOffsets()
366 CHECK_EQ(item->size_, header_->ClassDefs().Size()); in CheckAndSetRemainingOffsets()
368 CHECK_EQ(item->offset_, header_->ClassDefs().GetOffset()); in CheckAndSetRemainingOffsets()
371 CHECK_EQ(item->size_, header_->CallSiteIds().Size()); in CheckAndSetRemainingOffsets()
372 CHECK_EQ(item->offset_, header_->CallSiteIds().GetOffset()); in CheckAndSetRemainingOffsets()
375 CHECK_EQ(item->size_, header_->MethodHandleItems().Size()); in CheckAndSetRemainingOffsets()
376 CHECK_EQ(item->offset_, header_->MethodHandleItems().GetOffset()); in CheckAndSetRemainingOffsets()
379 CHECK_EQ(item->size_, 1u); in CheckAndSetRemainingOffsets()
380 CHECK_EQ(item->offset_, disk_header.map_off_); in CheckAndSetRemainingOffsets()
383 header_->TypeLists().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
386 header_->AnnotationSetRefLists().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
389 header_->AnnotationSetItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
392 header_->ClassDatas().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
395 header_->CodeItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
398 header_->StringDatas().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
401 header_->DebugInfoItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
404 header_->AnnotationItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
405 AddAnnotationsFromMapListSection(dex_file, item->offset_, item->size_); in CheckAndSetRemainingOffsets()
408 header_->EncodedArrayItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
411 header_->AnnotationsDirectoryItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
414 header_->HiddenapiClassDatas().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
415 AddHiddenapiClassDataFromMapListSection(dex_file, item->offset_); in CheckAndSetRemainingOffsets()
556 const dex::MapItem* item = map->list_ + i; in CreateCallSitesAndMethodHandles() local
557 switch (item->type_) { in CreateCallSitesAndMethodHandles()
559 header_->CallSiteIds().SetOffset(item->offset_); in CreateCallSitesAndMethodHandles()
562 header_->MethodHandleItems().SetOffset(item->offset_); in CreateCallSitesAndMethodHandles()
1099 EncodedValue* item = new EncodedValue(type); in ReadEncodedValue() local
1100 ReadEncodedValue(dex_file, data, type, encoded_value >> 5, item); in ReadEncodedValue()
1101 return item; in ReadEncodedValue()
1108 EncodedValue* item = new EncodedValue(type); in ReadEncodedValue() local
1109 ReadEncodedValue(dex_file, data, type, length, item); in ReadEncodedValue()
1110 return item; in ReadEncodedValue()
1117 EncodedValue* item) { in ReadEncodedValue() argument
1120 item->SetByte(static_cast<int8_t>(ReadVarWidth(data, length, false))); in ReadEncodedValue()
1123 item->SetShort(static_cast<int16_t>(ReadVarWidth(data, length, true))); in ReadEncodedValue()
1126 item->SetChar(static_cast<uint16_t>(ReadVarWidth(data, length, false))); in ReadEncodedValue()
1129 item->SetInt(static_cast<int32_t>(ReadVarWidth(data, length, true))); in ReadEncodedValue()
1132 item->SetLong(static_cast<int64_t>(ReadVarWidth(data, length, true))); in ReadEncodedValue()
1141 item->SetFloat(conv.f); in ReadEncodedValue()
1151 item->SetDouble(conv.d); in ReadEncodedValue()
1156 item->SetProtoId(header_->ProtoIds()[proto_index]); in ReadEncodedValue()
1161 item->SetMethodHandle(header_->MethodHandleItems()[method_handle_index]); in ReadEncodedValue()
1166 item->SetStringId(header_->StringIds()[string_index]); in ReadEncodedValue()
1171 item->SetTypeId(header_->TypeIds()[string_index]); in ReadEncodedValue()
1177 item->SetFieldId(header_->FieldIds()[field_index]); in ReadEncodedValue()
1182 item->SetMethodId(header_->MethodIds()[method_index]); in ReadEncodedValue()
1197 item->SetEncodedArray(array_item); in ReadEncodedValue()
1211 item->SetEncodedAnnotation(new EncodedAnnotation(header_->TypeIds()[type_idx], elements)); in ReadEncodedValue()
1217 item->SetBoolean(length != 0); in ReadEncodedValue()