Home
last modified time | relevance | path

Searched refs:field_id (Results 1 – 25 of 25) sorted by relevance

/art/test/647-jni-get-field-id/
Dget_field_id.cc36 jfieldID field_id = env->GetFieldID(cls, name_chars.c_str(), signature_chars.c_str()); in Java_Main_getFieldId() local
37 if (field_id == nullptr) { in Java_Main_getFieldId()
/art/dexlayout/
Ddex_visualize.cc128 void DumpFieldId(const dex_ir::FieldId* field_id, int class_index) { in DumpFieldId() argument
129 DumpAddressRange(field_id, class_index); in DumpFieldId()
130 if (field_id == nullptr) { in DumpFieldId()
133 DumpTypeId(field_id->Class(), class_index); in DumpFieldId()
134 DumpTypeId(field_id->Type(), class_index); in DumpFieldId()
135 DumpStringId(field_id->Name(), class_index); in DumpFieldId()
204 for (dex_ir::FieldId* field_id : *field_ids) { in DumpMethodItem()
205 DumpFieldId(field_id, class_index); in DumpMethodItem()
Ddex_writer.cc295 for (std::unique_ptr<dex_ir::FieldId>& field_id : header_->GetCollections().FieldIds()) { in WriteFields()
296 buffer[0] = field_id->Class()->GetIndex(); in WriteFields()
297 buffer[1] = field_id->Type()->GetIndex(); in WriteFields()
298 buffer[2] = field_id->Name()->GetIndex(); in WriteFields()
299 buffer[3] = field_id->Name()->GetIndex() >> 16; in WriteFields()
300 Write(buffer, field_id->GetSize(), field_id->GetOffset()); in WriteFields()
Ddexlayout.cc445 dex_ir::FieldId* field_id = header->GetCollections().GetFieldId(index); in IndexString() local
446 const char* name = field_id->Name()->Data(); in IndexString()
447 const char* type_descriptor = field_id->Type()->GetStringId()->Data(); in IndexString()
448 const char* back_descriptor = field_id->Class()->GetStringId()->Data(); in IndexString()
555 dex_ir::FieldId* field_id = data->GetFieldId(); in DumpEncodedValue() local
556 fputs(field_id->Name()->Data(), out_file_); in DumpEncodedValue()
740 const dex_ir::FieldId* field_id = field->GetFieldId(); in DumpClassAnnotations() local
741 const uint32_t field_idx = field_id->GetIndex(); in DumpClassAnnotations()
742 const char* field_name = field_id->Name()->Data(); in DumpClassAnnotations()
1231 dex_ir::FieldId* field_id = header_->GetCollections().GetFieldId(idx); in DumpSField() local
[all …]
Ddex_ir.h84 virtual void Dispatch(const FieldId* field_id) = 0;
598 FieldItem(uint32_t access_flags, const FieldId* field_id) in FieldItem() argument
599 : access_flags_(access_flags), field_id_(field_id) { } in FieldItem()
655 void SetFieldId(FieldId* field_id) { u_.field_val_ = field_id; } in SetFieldId() argument
1068 FieldAnnotation(FieldId* field_id, AnnotationSetItem* annotation_set_item) in FieldAnnotation() argument
1069 : field_id_(field_id), annotation_set_item_(annotation_set_item) { } in FieldAnnotation()
Ddex_ir.cc376 FieldId* field_id = new FieldId(GetTypeId(disk_field_id.class_idx_.index_), in CreateFieldId() local
379 field_ids_.AddIndexedItem(field_id, FieldIdsOffset() + i * FieldId::ItemSize(), i); in CreateFieldId()
518 FieldId* field_id = GetFieldId(fields[i].field_idx_); in CreateAnnotationsDirectoryItem() local
525 new FieldAnnotation(field_id, annotation_set_item))); in CreateAnnotationsDirectoryItem()
/art/runtime/
Dart_field-inl.h290 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_index); in GetTypeDescriptor() local
291 return dex_file->GetFieldTypeDescriptor(field_id); in GetTypeDescriptor()
314 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_index); in GetType() local
315 ObjPtr<mirror::Class> type = dex_cache->GetResolvedType(field_id.type_idx_); in GetType()
319 type = class_linker->ResolveType(*dex_file, field_id.type_idx_, declaring_class); in GetType()
323 *dex_file, field_id.type_idx_, dex_cache, declaring_class->GetClassLoader()); in GetType()
347 const auto& field_id = dex_file->GetFieldId(dex_field_index); in GetStringName() local
348 ObjPtr<mirror::String> name = dex_cache->GetResolvedString(field_id.name_idx_); in GetStringName()
350 name = ResolveGetStringName(self, *dex_file, field_id.name_idx_, dex_cache); in GetStringName()
Ddex_file-inl.h81 inline const char* DexFile::GetFieldTypeDescriptor(const FieldId& field_id) const { in GetFieldTypeDescriptor() argument
82 const DexFile::TypeId& type_id = GetTypeId(field_id.type_idx_); in GetFieldTypeDescriptor()
86 inline const char* DexFile::GetFieldName(const FieldId& field_id) const { in GetFieldName() argument
87 return StringDataByIdx(field_id.name_idx_); in GetFieldName()
Ddebugger.h396 static void OutputFieldValue(JDWP::FieldId field_id, const JValue* field_value,
403 static std::string GetFieldName(JDWP::FieldId field_id)
405 static JDWP::JdwpTag GetFieldBasicTag(JDWP::FieldId field_id)
407 static JDWP::JdwpTag GetStaticFieldBasicTag(JDWP::FieldId field_id)
409 static JDWP::JdwpError GetFieldValue(JDWP::ObjectId object_id, JDWP::FieldId field_id,
412 static JDWP::JdwpError SetFieldValue(JDWP::ObjectId object_id, JDWP::FieldId field_id,
415 static JDWP::JdwpError GetStaticFieldValue(JDWP::RefTypeId ref_type_id, JDWP::FieldId field_id,
418 static JDWP::JdwpError SetStaticFieldValue(JDWP::FieldId field_id, uint64_t value, int width)
Ddex_file.h626 uint32_t GetIndexForFieldId(const FieldId& field_id) const { in GetIndexForFieldId() argument
627 CHECK_GE(&field_id, field_ids_) << GetLocation(); in GetIndexForFieldId()
628 CHECK_LT(&field_id, field_ids_ + header_->field_ids_size_) << GetLocation(); in GetIndexForFieldId()
629 return &field_id - field_ids_; in GetIndexForFieldId()
641 const char* GetFieldDeclaringClassDescriptor(const FieldId& field_id) const { in GetFieldDeclaringClassDescriptor() argument
642 const DexFile::TypeId& type_id = GetTypeId(field_id.class_idx_); in GetFieldDeclaringClassDescriptor()
647 const char* GetFieldTypeDescriptor(const FieldId& field_id) const;
650 const char* GetFieldName(const FieldId& field_id) const;
Ddebugger.cc1439 std::string Dbg::GetFieldName(JDWP::FieldId field_id) { in GetFieldName() argument
1440 ArtField* f = FromFieldId(field_id); in GetFieldName()
1705 void Dbg::OutputFieldValue(JDWP::FieldId field_id, const JValue* field_value, in OutputFieldValue() argument
1707 ArtField* f = FromFieldId(field_id); in OutputFieldValue()
1728 JDWP::JdwpTag Dbg::GetFieldBasicTag(JDWP::FieldId field_id) { in GetFieldBasicTag() argument
1729 return BasicTagFromDescriptor(FromFieldId(field_id)->GetTypeDescriptor()); in GetFieldBasicTag()
1732 JDWP::JdwpTag Dbg::GetStaticFieldBasicTag(JDWP::FieldId field_id) { in GetStaticFieldBasicTag() argument
1733 return BasicTagFromDescriptor(FromFieldId(field_id)->GetTypeDescriptor()); in GetStaticFieldBasicTag()
1782 JDWP::FieldId field_id, JDWP::ExpandBuf* pReply, in GetFieldValueImpl() argument
1798 ArtField* f = FromFieldId(field_id); in GetFieldValueImpl()
[all …]
Ddex_file.cc1303 const DexFile::FieldId& field_id = GetFieldId(field_idx); in PrettyField() local
1306 result += GetFieldTypeDescriptor(field_id); in PrettyField()
1309 result += PrettyDescriptor(GetFieldDeclaringClassDescriptor(field_id)); in PrettyField()
1311 result += GetFieldName(field_id); in PrettyField()
Dclass_linker.cc2874 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in SizeOfClassWithoutEmbeddedTables() local
2875 const char* descriptor = dex_file.GetFieldTypeDescriptor(field_id); in SizeOfClassWithoutEmbeddedTables()
8195 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in LookupResolvedField() local
8196 ObjPtr<mirror::Class> klass = dex_cache->GetResolvedType(field_id.class_idx_); in LookupResolvedField()
8198 klass = LookupResolvedType(dex_file, field_id.class_idx_, dex_cache, class_loader); in LookupResolvedField()
8214 const char* name = dex_file.GetFieldName(field_id); in LookupResolvedField()
8215 const char* type = dex_file.GetFieldTypeDescriptor(field_id); in LookupResolvedField()
8238 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in ResolveField() local
8240 ObjPtr<mirror::Class> klass = ResolveType(dex_file, field_id.class_idx_, dex_cache, class_loader); in ResolveField()
8253 const char* name = dex_file.GetFieldName(field_id); in ResolveField()
[all …]
Ddex_file_verifier.cc2923 const DexFile::FieldId* field_id = in GetFieldDescriptionOrError() local
2928 std::string class_name = GetClassOrError(begin, header, field_id->class_idx_); in GetFieldDescriptionOrError()
2929 std::string field_name = GetStringOrError(begin, header, field_id->name_idx_); in GetFieldDescriptionOrError()
/art/runtime/verifier/
Dverifier_deps.cc811 const DexFile::FieldId& field_id = dex_file.GetFieldId(entry.GetDexFieldIndex()); in Dump() local
813 << dex_file.GetFieldDeclaringClassDescriptor(field_id) << "->" in Dump()
814 << dex_file.GetFieldName(field_id) << ":" in Dump()
815 << dex_file.GetFieldTypeDescriptor(field_id) in Dump()
961 const DexFile::FieldId& field_id = dex_file.GetFieldId(index); in GetFieldDescription() local
962 return std::string(dex_file.GetFieldDeclaringClassDescriptor(field_id)) in GetFieldDescription()
964 + dex_file.GetFieldName(field_id) in GetFieldDescription()
966 + dex_file.GetFieldTypeDescriptor(field_id); in GetFieldDescription()
977 const DexFile::FieldId& field_id = dex_file.GetFieldId(entry.GetDexFieldIndex()); in VerifyFields() local
978 StringPiece name(dex_file.StringDataByIdx(field_id.name_idx_)); in VerifyFields()
[all …]
Dmethod_verifier.cc4804 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetStaticField() local
4806 const RegType& klass_type = ResolveClassAndCheckAccess(field_id.class_idx_); in GetStaticField()
4809 field_idx, dex_file_->GetFieldName(field_id), in GetStaticField()
4810 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetStaticField()
4824 << dex_file_->GetFieldName(field_id) << ") in " in GetStaticField()
4825 << dex_file_->GetFieldDeclaringClassDescriptor(field_id); in GetStaticField()
4842 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetInstanceField() local
4844 const RegType& klass_type = ResolveClassAndCheckAccess(field_id.class_idx_); in GetInstanceField()
4847 field_idx, dex_file_->GetFieldName(field_id), in GetInstanceField()
4848 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetInstanceField()
[all …]
/art/runtime/jdwp/
Djdwp_event.cc999 FieldId field_id = Dbg::ToFieldId(field); in PostFieldEvent() local
1008 << Dbg::GetClassName(field_id); in PostFieldEvent()
1009 VLOG(jdwp) << StringPrintf(" field=%#" PRIx64, field_id) << " " in PostFieldEvent()
1010 << Dbg::GetFieldName(field_id); in PostFieldEvent()
1035 expandBufAddFieldId(pReq, field_id); in PostFieldEvent()
1039 Dbg::OutputFieldValue(field_id, fieldValue, pReq); in PostFieldEvent()
Djdwp.h418 std::string DescribeField(const FieldId& field_id) REQUIRES_SHARED(Locks::mutator_lock_);
Djdwp_handler.cc45 std::string DescribeField(const FieldId& field_id) { in DescribeField() argument
46 return StringPrintf("%#" PRIx64 " (%s)", field_id, Dbg::GetFieldName(field_id).c_str()); in DescribeField()
/art/compiler/
Dverifier_deps_test.cc334 const DexFile::FieldId& field_id = dex_dep.first->GetFieldId(entry.GetDexFieldIndex()); in HasField() local
336 std::string actual_klass = dex_dep.first->StringByTypeIdx(field_id.class_idx_); in HasField()
341 std::string actual_name = dex_dep.first->StringDataByIdx(field_id.name_idx_); in HasField()
346 std::string actual_type = dex_dep.first->StringByTypeIdx(field_id.type_idx_); in HasField()
Dimage_writer.cc978 const DexFile::FieldId& field_id = dex_file.GetFieldId(i); in PruneAndPreloadDexCache() local
979 if (field_id.class_idx_ != last_class_idx) { in PruneAndPreloadDexCache()
980 last_class_idx = field_id.class_idx_; in PruneAndPreloadDexCache()
989 const char* name = dex_file.StringDataByIdx(field_id.name_idx_); in PruneAndPreloadDexCache()
990 const char* type = dex_file.StringByTypeIdx(field_id.type_idx_); in PruneAndPreloadDexCache()
/art/runtime/mirror/
Dobject_test.cc368 const DexFile::FieldId* field_id = dex_file->FindFieldId( in TEST_F() local
370 ASSERT_TRUE(field_id != nullptr); in TEST_F()
371 uint32_t field_idx = dex_file->GetIndexForFieldId(*field_id); in TEST_F()
/art/runtime/native/
Ddalvik_system_VMRuntime.cc354 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_idx); in PreloadDexCachesResolveField() local
357 Handle<mirror::Class> klass(hs.NewHandle(dex_cache->GetResolvedType(field_id.class_idx_))); in PreloadDexCachesResolveField()
/art/dexdump/
Ddexdump.cc1628 const DexFile::FieldId& field_id = pDexFile->GetFieldId(mh.field_or_method_idx_); in dumpMethodHandle() local
1629 declaring_class = pDexFile->GetFieldDeclaringClassDescriptor(field_id); in dumpMethodHandle()
1630 member = pDexFile->GetFieldName(field_id); in dumpMethodHandle()
1631 member_type = pDexFile->GetFieldTypeDescriptor(field_id); in dumpMethodHandle()
/art/compiler/optimizing/
Dinstruction_builder.cc1185 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_index); in GetFieldAccessType() local
1186 const char* type = dex_file.GetFieldTypeDescriptor(field_id); in GetFieldAccessType()