Lines Matching refs:item

104     T* item = vector.CreateAndAddItem(std::forward<Args>(args)...);  in CreateAndAddItem()  local
106 DCHECK(!item->OffsetAssigned()); in CreateAndAddItem()
108 item->SetOffset(offset); in CreateAndAddItem()
110 AddItem(item, offset); in CreateAndAddItem()
111 return item; in CreateAndAddItem()
204 EncodedValue* item);
219 Type* item = vector.CreateAndAddIndexedItem(index, std::forward<Args>(args)...); in CreateAndAddIndexedItem() local
220 DCHECK(!item->OffsetAssigned()); in CreateAndAddIndexedItem()
222 item->SetOffset(offset); in CreateAndAddIndexedItem()
224 return item; in CreateAndAddIndexedItem()
338 const dex::MapItem* item = map->list_ + i; in CheckAndSetRemainingOffsets() local
339 switch (item->type_) { in CheckAndSetRemainingOffsets()
341 CHECK_EQ(item->size_, 1u); in CheckAndSetRemainingOffsets()
342 CHECK_EQ(item->offset_, 0u); in CheckAndSetRemainingOffsets()
345 CHECK_EQ(item->size_, header_->StringIds().Size()); in CheckAndSetRemainingOffsets()
346 CHECK_EQ(item->offset_, header_->StringIds().GetOffset()); in CheckAndSetRemainingOffsets()
349 CHECK_EQ(item->size_, header_->TypeIds().Size()); in CheckAndSetRemainingOffsets()
350 CHECK_EQ(item->offset_, header_->TypeIds().GetOffset()); in CheckAndSetRemainingOffsets()
353 CHECK_EQ(item->size_, header_->ProtoIds().Size()); in CheckAndSetRemainingOffsets()
354 CHECK_EQ(item->offset_, header_->ProtoIds().GetOffset()); in CheckAndSetRemainingOffsets()
357 CHECK_EQ(item->size_, header_->FieldIds().Size()); in CheckAndSetRemainingOffsets()
358 CHECK_EQ(item->offset_, header_->FieldIds().GetOffset()); in CheckAndSetRemainingOffsets()
361 CHECK_EQ(item->size_, header_->MethodIds().Size()); in CheckAndSetRemainingOffsets()
362 CHECK_EQ(item->offset_, header_->MethodIds().GetOffset()); in CheckAndSetRemainingOffsets()
367 CHECK_EQ(item->size_, header_->ClassDefs().Size()); in CheckAndSetRemainingOffsets()
369 CHECK_EQ(item->offset_, header_->ClassDefs().GetOffset()); in CheckAndSetRemainingOffsets()
372 CHECK_EQ(item->size_, header_->CallSiteIds().Size()); in CheckAndSetRemainingOffsets()
373 CHECK_EQ(item->offset_, header_->CallSiteIds().GetOffset()); in CheckAndSetRemainingOffsets()
376 CHECK_EQ(item->size_, header_->MethodHandleItems().Size()); in CheckAndSetRemainingOffsets()
377 CHECK_EQ(item->offset_, header_->MethodHandleItems().GetOffset()); in CheckAndSetRemainingOffsets()
380 CHECK_EQ(item->size_, 1u); in CheckAndSetRemainingOffsets()
381 CHECK_EQ(item->offset_, disk_header.map_off_); in CheckAndSetRemainingOffsets()
384 header_->TypeLists().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
387 header_->AnnotationSetRefLists().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
390 header_->AnnotationSetItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
393 header_->ClassDatas().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
396 header_->CodeItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
399 header_->StringDatas().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
402 header_->DebugInfoItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
405 header_->AnnotationItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
406 AddAnnotationsFromMapListSection(dex_file, item->offset_, item->size_); in CheckAndSetRemainingOffsets()
409 header_->EncodedArrayItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
412 header_->AnnotationsDirectoryItems().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
415 header_->HiddenapiClassDatas().SetOffset(item->offset_); in CheckAndSetRemainingOffsets()
416 AddHiddenapiClassDataFromMapListSection(dex_file, item->offset_); in CheckAndSetRemainingOffsets()
557 const dex::MapItem* item = map->list_ + i; in CreateCallSitesAndMethodHandles() local
558 switch (item->type_) { in CreateCallSitesAndMethodHandles()
560 header_->CallSiteIds().SetOffset(item->offset_); in CreateCallSitesAndMethodHandles()
563 header_->MethodHandleItems().SetOffset(item->offset_); in CreateCallSitesAndMethodHandles()
1100 EncodedValue* item = new EncodedValue(type); in ReadEncodedValue() local
1101 ReadEncodedValue(dex_file, data, type, encoded_value >> 5, item); in ReadEncodedValue()
1102 return item; in ReadEncodedValue()
1109 EncodedValue* item = new EncodedValue(type); in ReadEncodedValue() local
1110 ReadEncodedValue(dex_file, data, type, length, item); in ReadEncodedValue()
1111 return item; in ReadEncodedValue()
1118 EncodedValue* item) { in ReadEncodedValue() argument
1121 item->SetByte(static_cast<int8_t>(ReadVarWidth(data, length, false))); in ReadEncodedValue()
1124 item->SetShort(static_cast<int16_t>(ReadVarWidth(data, length, true))); in ReadEncodedValue()
1127 item->SetChar(static_cast<uint16_t>(ReadVarWidth(data, length, false))); in ReadEncodedValue()
1130 item->SetInt(static_cast<int32_t>(ReadVarWidth(data, length, true))); in ReadEncodedValue()
1133 item->SetLong(static_cast<int64_t>(ReadVarWidth(data, length, true))); in ReadEncodedValue()
1142 item->SetFloat(conv.f); in ReadEncodedValue()
1152 item->SetDouble(conv.d); in ReadEncodedValue()
1157 item->SetProtoId(header_->ProtoIds()[proto_index]); in ReadEncodedValue()
1162 item->SetMethodHandle(header_->MethodHandleItems()[method_handle_index]); in ReadEncodedValue()
1167 item->SetStringId(header_->StringIds()[string_index]); in ReadEncodedValue()
1172 item->SetTypeId(header_->TypeIds()[string_index]); in ReadEncodedValue()
1178 item->SetFieldId(header_->FieldIds()[field_index]); in ReadEncodedValue()
1183 item->SetMethodId(header_->MethodIds()[method_index]); in ReadEncodedValue()
1198 item->SetEncodedArray(array_item); in ReadEncodedValue()
1212 item->SetEncodedAnnotation(new EncodedAnnotation(header_->TypeIds()[type_idx], elements)); in ReadEncodedValue()
1218 item->SetBoolean(length != 0); in ReadEncodedValue()