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.cc446 dex_ir::FieldId* field_id = header->GetCollections().GetFieldId(index); in IndexString() local
447 const char* name = field_id->Name()->Data(); in IndexString()
448 const char* type_descriptor = field_id->Type()->GetStringId()->Data(); in IndexString()
449 const char* back_descriptor = field_id->Class()->GetStringId()->Data(); in IndexString()
556 dex_ir::FieldId* field_id = data->GetFieldId(); in DumpEncodedValue() local
557 fputs(field_id->Name()->Data(), out_file_); in DumpEncodedValue()
741 const dex_ir::FieldId* field_id = field->GetFieldId(); in DumpClassAnnotations() local
742 const uint32_t field_idx = field_id->GetIndex(); in DumpClassAnnotations()
743 const char* field_name = field_id->Name()->Data(); in DumpClassAnnotations()
1232 dex_ir::FieldId* field_id = header_->GetCollections().GetFieldId(idx); in DumpSField() local
[all …]
Ddex_ir.h85 virtual void Dispatch(const FieldId* field_id) = 0;
599 FieldItem(uint32_t access_flags, const FieldId* field_id) in FieldItem() argument
600 : access_flags_(access_flags), field_id_(field_id) { } in FieldItem()
656 void SetFieldId(FieldId* field_id) { u_.field_val_ = field_id; } in SetFieldId() argument
1069 FieldAnnotation(FieldId* field_id, AnnotationSetItem* annotation_set_item) in FieldAnnotation() argument
1070 : field_id_(field_id), annotation_set_item_(annotation_set_item) { } in FieldAnnotation()
Ddex_ir.cc351 FieldId* field_id = new FieldId(GetTypeId(disk_field_id.class_idx_.index_), in CreateFieldId() local
354 field_ids_.AddIndexedItem(field_id, FieldIdsOffset() + i * FieldId::ItemSize(), i); in CreateFieldId()
493 FieldId* field_id = GetFieldId(fields[i].field_idx_); in CreateAnnotationsDirectoryItem() local
500 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.h627 uint32_t GetIndexForFieldId(const FieldId& field_id) const { in GetIndexForFieldId() argument
628 CHECK_GE(&field_id, field_ids_) << GetLocation(); in GetIndexForFieldId()
629 CHECK_LT(&field_id, field_ids_ + header_->field_ids_size_) << GetLocation(); in GetIndexForFieldId()
630 return &field_id - field_ids_; in GetIndexForFieldId()
644 const char* GetFieldDeclaringClassDescriptor(const FieldId& field_id) const { in GetFieldDeclaringClassDescriptor() argument
645 const DexFile::TypeId& type_id = GetTypeId(field_id.class_idx_); in GetFieldDeclaringClassDescriptor()
650 const char* GetFieldTypeDescriptor(const FieldId& field_id) const;
653 const char* GetFieldName(const FieldId& field_id) const;
Ddebugger.cc1445 std::string Dbg::GetFieldName(JDWP::FieldId field_id) { in GetFieldName() argument
1446 ArtField* f = FromFieldId(field_id); in GetFieldName()
1711 void Dbg::OutputFieldValue(JDWP::FieldId field_id, const JValue* field_value, in OutputFieldValue() argument
1713 ArtField* f = FromFieldId(field_id); in OutputFieldValue()
1734 JDWP::JdwpTag Dbg::GetFieldBasicTag(JDWP::FieldId field_id) { in GetFieldBasicTag() argument
1735 return BasicTagFromDescriptor(FromFieldId(field_id)->GetTypeDescriptor()); in GetFieldBasicTag()
1738 JDWP::JdwpTag Dbg::GetStaticFieldBasicTag(JDWP::FieldId field_id) { in GetStaticFieldBasicTag() argument
1739 return BasicTagFromDescriptor(FromFieldId(field_id)->GetTypeDescriptor()); in GetStaticFieldBasicTag()
1788 JDWP::FieldId field_id, JDWP::ExpandBuf* pReply, in GetFieldValueImpl() argument
1804 ArtField* f = FromFieldId(field_id); in GetFieldValueImpl()
[all …]
Ddex_file.cc1324 const DexFile::FieldId& field_id = GetFieldId(field_idx); in PrettyField() local
1327 result += GetFieldTypeDescriptor(field_id); in PrettyField()
1330 result += PrettyDescriptor(GetFieldDeclaringClassDescriptor(field_id)); in PrettyField()
1332 result += GetFieldName(field_id); in PrettyField()
Dclass_linker.cc3009 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in SizeOfClassWithoutEmbeddedTables() local
3010 const char* descriptor = dex_file.GetFieldTypeDescriptor(field_id); in SizeOfClassWithoutEmbeddedTables()
8100 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in LookupResolvedField() local
8101 ObjPtr<mirror::Class> klass = dex_cache->GetResolvedType(field_id.class_idx_); in LookupResolvedField()
8103 klass = LookupResolvedType(dex_file, field_id.class_idx_, dex_cache, class_loader); in LookupResolvedField()
8119 const char* name = dex_file.GetFieldName(field_id); in LookupResolvedField()
8120 const char* type = dex_file.GetFieldTypeDescriptor(field_id); in LookupResolvedField()
8143 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_idx); in ResolveField() local
8145 ObjPtr<mirror::Class> klass = ResolveType(dex_file, field_id.class_idx_, dex_cache, class_loader); in ResolveField()
8158 const char* name = dex_file.GetFieldName(field_id); in ResolveField()
[all …]
Ddex_file_verifier.cc2925 const DexFile::FieldId* field_id = in GetFieldDescriptionOrError() local
2930 std::string class_name = GetClassOrError(begin, header, field_id->class_idx_); in GetFieldDescriptionOrError()
2931 std::string field_name = GetStringOrError(begin, header, field_id->name_idx_); in GetFieldDescriptionOrError()
/art/runtime/verifier/
Dverifier_deps.cc806 const DexFile::FieldId& field_id = dex_file.GetFieldId(entry.GetDexFieldIndex()); in Dump() local
808 << dex_file.GetFieldDeclaringClassDescriptor(field_id) << "->" in Dump()
809 << dex_file.GetFieldName(field_id) << ":" in Dump()
810 << dex_file.GetFieldTypeDescriptor(field_id) in Dump()
950 const DexFile::FieldId& field_id = dex_file.GetFieldId(index); in GetFieldDescription() local
951 return std::string(dex_file.GetFieldDeclaringClassDescriptor(field_id)) in GetFieldDescription()
953 + dex_file.GetFieldName(field_id) in GetFieldDescription()
955 + dex_file.GetFieldTypeDescriptor(field_id); in GetFieldDescription()
966 const DexFile::FieldId& field_id = dex_file.GetFieldId(entry.GetDexFieldIndex()); in VerifyFields() local
967 StringPiece name(dex_file.StringDataByIdx(field_id.name_idx_)); in VerifyFields()
[all …]
Dmethod_verifier.cc4809 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetStaticField() local
4811 const RegType& klass_type = ResolveClassAndCheckAccess(field_id.class_idx_); in GetStaticField()
4814 field_idx, dex_file_->GetFieldName(field_id), in GetStaticField()
4815 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetStaticField()
4829 << dex_file_->GetFieldName(field_id) << ") in " in GetStaticField()
4830 << dex_file_->GetFieldDeclaringClassDescriptor(field_id); in GetStaticField()
4847 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetInstanceField() local
4849 const RegType& klass_type = ResolveClassAndCheckAccess(field_id.class_idx_); in GetInstanceField()
4852 field_idx, dex_file_->GetFieldName(field_id), in GetInstanceField()
4853 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.cc333 const DexFile::FieldId& field_id = dex_dep.first->GetFieldId(entry.GetDexFieldIndex()); in HasField() local
335 std::string actual_klass = dex_dep.first->StringByTypeIdx(field_id.class_idx_); in HasField()
340 std::string actual_name = dex_dep.first->StringDataByIdx(field_id.name_idx_); in HasField()
345 std::string actual_type = dex_dep.first->StringByTypeIdx(field_id.type_idx_); in HasField()
Dimage_writer.cc1094 const DexFile::FieldId& field_id = dex_file.GetFieldId(i); in PruneAndPreloadDexCache() local
1095 if (field_id.class_idx_ != last_class_idx) { in PruneAndPreloadDexCache()
1096 last_class_idx = field_id.class_idx_; in PruneAndPreloadDexCache()
1105 const char* name = dex_file.StringDataByIdx(field_id.name_idx_); in PruneAndPreloadDexCache()
1106 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.cc360 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_idx); in PreloadDexCachesResolveField() local
362 ClassLinker::LookupResolvedType(field_id.class_idx_, dex_cache, nullptr); in PreloadDexCachesResolveField()
/art/dexdump/
Ddexdump.cc1646 const DexFile::FieldId& field_id = pDexFile->GetFieldId(mh.field_or_method_idx_); in dumpMethodHandle() local
1647 declaring_class = pDexFile->GetFieldDeclaringClassDescriptor(field_id); in dumpMethodHandle()
1648 member = pDexFile->GetFieldName(field_id); in dumpMethodHandle()
1649 member_type = pDexFile->GetFieldTypeDescriptor(field_id); in dumpMethodHandle()
/art/compiler/optimizing/
Dinstruction_builder.cc1251 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_index); in GetFieldAccessType() local
1252 const char* type = dex_file.GetFieldTypeDescriptor(field_id); in GetFieldAccessType()