Home
last modified time | relevance | path

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

12

/art/tools/veridex/
Dhidden_api.cc38 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_index); in GetApiFieldName() local
39 ss << dex_file.StringByTypeIdx(field_id.class_idx_) in GetApiFieldName()
41 << dex_file.GetFieldName(field_id) in GetApiFieldName()
43 << dex_file.GetFieldTypeDescriptor(field_id); in GetApiFieldName()
Dresolver.cc76 const DexFile::FieldId& field_id, in HasSameNameAndType() argument
79 return strcmp(field_name, dex_file.GetFieldName(field_id)) == 0 && in HasSameNameAndType()
80 strcmp(field_type, dex_file.GetFieldTypeDescriptor(field_id)) == 0; in HasSameNameAndType()
302 const DexFile::FieldId& field_id = dex_file_.GetFieldId(field_index); in GetField() local
303 VeriClass* kls = GetVeriClass(field_id.class_idx_); in GetField()
309 dex_file_.GetFieldName(field_id), in GetField()
310 dex_file_.GetFieldTypeDescriptor(field_id)); in GetField()
Dhidden_api_finder.cc42 void HiddenApiFinder::CheckField(uint32_t field_id, in CheckField() argument
47 std::string name = HiddenApi::GetApiFieldName(resolver->GetDexFile(), field_id); in CheckField()
Dflow_analysis.cc134 const DexFile::FieldId& field_id = dex_file.GetFieldId(field_index); in GetFieldType() local
135 VeriClass* cls = resolver_->GetVeriClass(field_id.type_idx_); in GetFieldType()
/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.cc130 void DumpFieldId(const dex_ir::FieldId* field_id, int class_index) { in DumpFieldId() argument
131 DumpAddressRange(field_id, class_index); in DumpFieldId()
132 if (field_id == nullptr) { in DumpFieldId()
135 DumpTypeId(field_id->Class(), class_index); in DumpFieldId()
136 DumpTypeId(field_id->Type(), class_index); in DumpFieldId()
137 DumpStringId(field_id->Name(), class_index); in DumpFieldId()
202 for (dex_ir::FieldId* field_id : fixups->FieldIds()) { in DumpMethodItem()
203 DumpFieldId(field_id, class_index); in DumpMethodItem()
Ddexlayout.cc449 dex_ir::FieldId* field_id = header->GetCollections().GetFieldId(index); in IndexString() local
450 const char* name = field_id->Name()->Data(); in IndexString()
451 const char* type_descriptor = field_id->Type()->GetStringId()->Data(); in IndexString()
452 const char* back_descriptor = field_id->Class()->GetStringId()->Data(); in IndexString()
559 dex_ir::FieldId* field_id = data->GetFieldId(); in DumpEncodedValue() local
560 fputs(field_id->Name()->Data(), out_file_); in DumpEncodedValue()
744 const dex_ir::FieldId* field_id = field->GetFieldId(); in DumpClassAnnotations() local
745 const uint32_t field_idx = field_id->GetIndex(); in DumpClassAnnotations()
746 const char* field_name = field_id->Name()->Data(); in DumpClassAnnotations()
1295 dex_ir::FieldId* field_id = header_->GetCollections().GetFieldId(idx); in DumpSField() local
[all …]
Ddex_writer.cc323 for (std::unique_ptr<dex_ir::FieldId>& field_id : header_->GetCollections().FieldIds()) { in WriteFieldIds()
325 ProcessOffset(stream, field_id.get()); in WriteFieldIds()
326 buffer[0] = field_id->Class()->GetIndex(); in WriteFieldIds()
327 buffer[1] = field_id->Type()->GetIndex(); in WriteFieldIds()
328 buffer[2] = field_id->Name()->GetIndex(); in WriteFieldIds()
329 buffer[3] = field_id->Name()->GetIndex() >> 16; in WriteFieldIds()
330 stream->Write(buffer, field_id->GetSize()); in WriteFieldIds()
Ddex_ir.h87 virtual void Dispatch(const FieldId* field_id) = 0;
743 FieldItem(uint32_t access_flags, const FieldId* field_id) in FieldItem() argument
744 : access_flags_(access_flags), field_id_(field_id) { } in FieldItem()
800 void SetFieldId(FieldId* field_id) { u_.field_val_ = field_id; } in SetFieldId() argument
1179 FieldAnnotation(FieldId* field_id, AnnotationSetItem* annotation_set_item) in FieldAnnotation() argument
1180 : field_id_(field_id), annotation_set_item_(annotation_set_item) { } in FieldAnnotation()
Ddex_ir.cc347 FieldId* field_id = new FieldId(GetTypeId(disk_field_id.class_idx_.index_), in CreateFieldId() local
350 AddIndexedItem(field_ids_, field_id, FieldIdsOffset() + i * FieldId::ItemSize(), i); in CreateFieldId()
501 FieldId* field_id = GetFieldId(fields[i].field_idx_); in CreateAnnotationsDirectoryItem() local
508 new FieldAnnotation(field_id, annotation_set_item))); in CreateAnnotationsDirectoryItem()
/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.cc4629 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetStaticField() local
4631 const RegType& klass_type = ResolveClass<CheckAccess::kYes>(field_id.class_idx_); in GetStaticField()
4634 field_idx, dex_file_->GetFieldName(field_id), in GetStaticField()
4635 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetStaticField()
4652 << dex_file_->GetFieldName(field_id) << ") in " in GetStaticField()
4653 << dex_file_->GetFieldDeclaringClassDescriptor(field_id); in GetStaticField()
4670 const DexFile::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetInstanceField() local
4672 const RegType& klass_type = ResolveClass<CheckAccess::kYes>(field_id.class_idx_); in GetInstanceField()
4675 field_idx, dex_file_->GetFieldName(field_id), in GetInstanceField()
4676 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetInstanceField()
[all …]
/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()
344 const DexFile::FieldId& field_id = dex_cache->GetDexFile()->GetFieldId(dex_field_index); in GetStringName() local
345 ObjPtr<mirror::String> name = dex_cache->GetResolvedString(field_id.name_idx_); in GetStringName()
347 name = ResolveGetStringName(self, field_id.name_idx_, dex_cache); in GetStringName()
Ddebugger.h416 static void OutputFieldValue(JDWP::FieldId field_id, const JValue* field_value,
423 static std::string GetFieldName(JDWP::FieldId field_id)
425 static JDWP::JdwpTag GetFieldBasicTag(JDWP::FieldId field_id)
427 static JDWP::JdwpTag GetStaticFieldBasicTag(JDWP::FieldId field_id)
429 static JDWP::JdwpError GetFieldValue(JDWP::ObjectId object_id, JDWP::FieldId field_id,
432 static JDWP::JdwpError SetFieldValue(JDWP::ObjectId object_id, JDWP::FieldId field_id,
435 static JDWP::JdwpError GetStaticFieldValue(JDWP::RefTypeId ref_type_id, JDWP::FieldId field_id,
438 static JDWP::JdwpError SetStaticFieldValue(JDWP::FieldId field_id, uint64_t value, int width)
Ddebugger.cc1514 std::string Dbg::GetFieldName(JDWP::FieldId field_id) { in GetFieldName() argument
1515 ArtField* f = FromFieldId(field_id); in GetFieldName()
1787 void Dbg::OutputFieldValue(JDWP::FieldId field_id, const JValue* field_value, in OutputFieldValue() argument
1789 ArtField* f = FromFieldId(field_id); in OutputFieldValue()
1810 JDWP::JdwpTag Dbg::GetFieldBasicTag(JDWP::FieldId field_id) { in GetFieldBasicTag() argument
1811 return BasicTagFromDescriptor(FromFieldId(field_id)->GetTypeDescriptor()); in GetFieldBasicTag()
1814 JDWP::JdwpTag Dbg::GetStaticFieldBasicTag(JDWP::FieldId field_id) { in GetStaticFieldBasicTag() argument
1815 return BasicTagFromDescriptor(FromFieldId(field_id)->GetTypeDescriptor()); in GetStaticFieldBasicTag()
1864 JDWP::FieldId field_id, JDWP::ExpandBuf* pReply, in GetFieldValueImpl() argument
1880 ArtField* f = FromFieldId(field_id); in GetFieldValueImpl()
[all …]
Dhidden_api_test.cc66 jfieldID field_id = env->GetFieldID(klass, name, signature); in getArtField() local
67 ArtField* art_field = jni::DecodeArtField(field_id); in getArtField()
/art/libdexfile/dex/
Ddex_file-inl.h83 inline const char* DexFile::GetFieldTypeDescriptor(const FieldId& field_id) const { in GetFieldTypeDescriptor() argument
84 const DexFile::TypeId& type_id = GetTypeId(field_id.type_idx_); in GetFieldTypeDescriptor()
88 inline const char* DexFile::GetFieldName(const FieldId& field_id) const { in GetFieldName() argument
89 return StringDataByIdx(field_id.name_idx_); in GetFieldName()
Ddex_file.h557 uint32_t GetIndexForFieldId(const FieldId& field_id) const { in GetIndexForFieldId() argument
558 CHECK_GE(&field_id, field_ids_) << GetLocation(); in GetIndexForFieldId()
559 CHECK_LT(&field_id, field_ids_ + header_->field_ids_size_) << GetLocation(); in GetIndexForFieldId()
560 return &field_id - field_ids_; in GetIndexForFieldId()
574 const char* GetFieldDeclaringClassDescriptor(const FieldId& field_id) const { in GetFieldDeclaringClassDescriptor() argument
575 const DexFile::TypeId& type_id = GetTypeId(field_id.class_idx_); in GetFieldDeclaringClassDescriptor()
580 const char* GetFieldTypeDescriptor(const FieldId& field_id) const;
583 const char* GetFieldName(const FieldId& field_id) const;
Ddex_file.cc607 const DexFile::FieldId& field_id = GetFieldId(field_idx); in PrettyField() local
610 result += GetFieldTypeDescriptor(field_id); in PrettyField()
613 AppendPrettyDescriptor(GetFieldDeclaringClassDescriptor(field_id), &result); in PrettyField()
615 result += GetFieldName(field_id); in PrettyField()
/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.h422 std::string DescribeField(const FieldId& field_id) REQUIRES_SHARED(Locks::mutator_lock_);
/art/compiler/
Dverifier_deps_test.cc332 const DexFile::FieldId& field_id = dex_dep.first->GetFieldId(entry.GetDexFieldIndex()); in HasField() local
334 std::string actual_klass = dex_dep.first->StringByTypeIdx(field_id.class_idx_); in HasField()
339 std::string actual_name = dex_dep.first->StringDataByIdx(field_id.name_idx_); in HasField()
344 std::string actual_type = dex_dep.first->StringByTypeIdx(field_id.type_idx_); in HasField()
/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.cc404 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_idx); in PreloadDexCachesResolveField() local
406 field_id.class_idx_, dex_cache, /* class_loader */ nullptr); in PreloadDexCachesResolveField()
/art/dexdump/
Ddexdump.cc1664 const DexFile::FieldId& field_id = pDexFile->GetFieldId(mh.field_or_method_idx_); in dumpMethodHandle() local
1665 declaring_class = pDexFile->GetFieldDeclaringClassDescriptor(field_id); in dumpMethodHandle()
1666 member = pDexFile->GetFieldName(field_id); in dumpMethodHandle()
1667 member_type = pDexFile->GetFieldTypeDescriptor(field_id); in dumpMethodHandle()

12