Home
last modified time | relevance | path

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

12

/art/tools/veridex/
Dhidden_api.cc85 const dex::FieldId& field_id = dex_file.GetFieldId(field_index); in GetApiFieldName() local
86 ss << dex_file.StringByTypeIdx(field_id.class_idx_) in GetApiFieldName()
88 << dex_file.GetFieldName(field_id) in GetApiFieldName()
90 << dex_file.GetFieldTypeDescriptor(field_id); in GetApiFieldName()
Dresolver.cc66 const dex::FieldId& field_id, in HasSameNameAndType() argument
69 return strcmp(field_name, dex_file.GetFieldName(field_id)) == 0 && in HasSameNameAndType()
70 strcmp(field_type, dex_file.GetFieldTypeDescriptor(field_id)) == 0; in HasSameNameAndType()
280 const dex::FieldId& field_id = dex_file_.GetFieldId(field_index); in GetField() local
281 VeriClass* kls = GetVeriClass(field_id.class_idx_); in GetField()
287 dex_file_.GetFieldName(field_id), in GetField()
288 dex_file_.GetFieldTypeDescriptor(field_id)); in GetField()
Dhidden_api_finder.cc41 void HiddenApiFinder::CheckField(uint32_t field_id, in CheckField() argument
46 const auto& name = HiddenApi::GetApiFieldName(resolver->GetDexFile(), field_id); in CheckField()
Dflow_analysis.cc142 const dex::FieldId& field_id = dex_file.GetFieldId(field_index); in GetFieldType() local
143 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.cc436 dex_ir::FieldId* field_id = header->FieldIds()[index]; in IndexString() local
437 const char* name = field_id->Name()->Data(); in IndexString()
438 const char* type_descriptor = field_id->Type()->GetStringId()->Data(); in IndexString()
439 const char* back_descriptor = field_id->Class()->GetStringId()->Data(); in IndexString()
546 dex_ir::FieldId* field_id = data->GetFieldId(); in DumpEncodedValue() local
547 fputs(field_id->Name()->Data(), out_file_); in DumpEncodedValue()
730 const dex_ir::FieldId* field_id = field->GetFieldId(); in DumpClassAnnotations() local
731 const uint32_t field_idx = field_id->GetIndex(); in DumpClassAnnotations()
732 const char* field_name = field_id->Name()->Data(); in DumpClassAnnotations()
1293 dex_ir::FieldId* field_id = header_->FieldIds()[idx]; in DumpSField() local
[all …]
Ddex_writer.cc323 for (auto& field_id : header_->FieldIds()) { in WriteFieldIds() local
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.h89 virtual void Dispatch(const FieldId* field_id) = 0;
721 FieldItem(uint32_t access_flags, const FieldId* field_id) in FieldItem() argument
722 : access_flags_(access_flags), field_id_(field_id) { } in FieldItem()
782 void SetFieldId(FieldId* field_id) { u_.field_val_ = field_id; } in SetFieldId() argument
1159 FieldAnnotation(FieldId* field_id, AnnotationSetItem* annotation_set_item) in FieldAnnotation() argument
1160 : field_id_(field_id), annotation_set_item_(annotation_set_item) { } in FieldAnnotation()
/art/tools/jvmti-agents/field-null-percent/
Dfieldnull.cc41 static std::pair<jclass, jfieldID> SplitField(JNIEnv* env, const std::string& field_id) { in SplitField() argument
42 CHECK_EQ(field_id[0], 'L'); in SplitField()
44 std::istringstream is(field_id); in SplitField()
58 LOG(INFO) << "listing field " << field_id; in SplitField()
/art/tools/jvmti-agents/field-counts/
Dfieldcount.cc43 static std::pair<jclass, jfieldID> SplitField(JNIEnv* env, const std::string& field_id) { in SplitField() argument
44 CHECK_EQ(field_id[0], 'L'); in SplitField()
46 std::istringstream is(field_id); in SplitField()
60 LOG(INFO) << "listing field " << field_id; in SplitField()
/art/libdexfile/dex/
Ddex_file.h322 uint32_t GetIndexForFieldId(const dex::FieldId& field_id) const { in GetIndexForFieldId() argument
323 CHECK_GE(&field_id, field_ids_) << GetLocation(); in GetIndexForFieldId()
324 CHECK_LT(&field_id, field_ids_ + header_->field_ids_size_) << GetLocation(); in GetIndexForFieldId()
325 return &field_id - field_ids_; in GetIndexForFieldId()
339 const char* GetFieldDeclaringClassDescriptor(const dex::FieldId& field_id) const { in GetFieldDeclaringClassDescriptor() argument
340 const dex::TypeId& type_id = GetTypeId(field_id.class_idx_); in GetFieldDeclaringClassDescriptor()
345 const char* GetFieldTypeDescriptor(const dex::FieldId& field_id) const;
348 const char* GetFieldName(const dex::FieldId& field_id) const;
Ddex_file-inl.h101 inline const char* DexFile::GetFieldTypeDescriptor(const dex::FieldId& field_id) const { in GetFieldTypeDescriptor() argument
102 const dex::TypeId& type_id = GetTypeId(field_id.type_idx_); in GetFieldTypeDescriptor()
106 inline const char* DexFile::GetFieldName(const dex::FieldId& field_id) const { in GetFieldName() argument
107 return StringDataByIdx(field_id.name_idx_); in GetFieldName()
Ddex_file.cc556 const FieldId& field_id = GetFieldId(field_idx); in PrettyField() local
559 result += GetFieldTypeDescriptor(field_id); in PrettyField()
562 AppendPrettyDescriptor(GetFieldDeclaringClassDescriptor(field_id), &result); in PrettyField()
564 result += GetFieldName(field_id); in PrettyField()
Ddex_file_verifier.cc164 const dex::FieldId* field_id = in GetFieldDescription() local
168 std::string class_name = GetClass(begin, header, field_id->class_idx_); in GetFieldDescription()
169 std::string field_name = GetString(begin, header, field_id->name_idx_); in GetFieldDescription()
1265 const dex::FieldId* field_id = reinterpret_cast<const dex::FieldId*>(ptr_); in CheckIntraFieldIdItem() local
1266 if (!CheckIndex(field_id->class_idx_.index_, header_->type_ids_size_, "field_id.class") || in CheckIntraFieldIdItem()
1267 !CheckIndex(field_id->type_idx_.index_, header_->type_ids_size_, "field_id.type") || in CheckIntraFieldIdItem()
1268 !CheckIndex(field_id->name_idx_.index_, header_->string_ids_size_, "field_id.name")) { in CheckIntraFieldIdItem()
/art/runtime/verifier/
Dverifier_deps.cc937 const dex::FieldId& field_id = dex_file.GetFieldId(entry.GetDexFieldIndex()); in Dump() local
939 << dex_file.GetFieldDeclaringClassDescriptor(field_id) << "->" in Dump()
940 << dex_file.GetFieldName(field_id) << ":" in Dump()
941 << dex_file.GetFieldTypeDescriptor(field_id) in Dump()
1079 const dex::FieldId& field_id = dex_file.GetFieldId(index); in GetFieldDescription() local
1080 return std::string(dex_file.GetFieldDeclaringClassDescriptor(field_id)) in GetFieldDescription()
1082 + dex_file.GetFieldName(field_id) in GetFieldDescription()
1084 + dex_file.GetFieldTypeDescriptor(field_id); in GetFieldDescription()
1096 const dex::FieldId& field_id = dex_file.GetFieldId(entry.GetDexFieldIndex()); in VerifyFields() local
1097 std::string_view name(dex_file.StringDataByIdx(field_id.name_idx_)); in VerifyFields()
[all …]
Dmethod_verifier.cc4657 const dex::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetStaticField() local
4659 const RegType& klass_type = ResolveClass<CheckAccess::kYes>(field_id.class_idx_); in GetStaticField()
4662 field_idx, dex_file_->GetFieldName(field_id), in GetStaticField()
4663 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetStaticField()
4682 << dex_file_->GetFieldName(field_id) << ") in " in GetStaticField()
4683 << dex_file_->GetFieldDeclaringClassDescriptor(field_id); in GetStaticField()
4707 const dex::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetInstanceField() local
4709 const RegType& klass_type = ResolveClass<CheckAccess::kYes>(field_id.class_idx_); in GetInstanceField()
4712 field_idx, dex_file_->GetFieldName(field_id), in GetInstanceField()
4713 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetInstanceField()
[all …]
/art/libnativebridge/
Dnative_bridge.cc346 jfieldID field_id = env->GetStaticFieldID(build_class, field, "Ljava/lang/String;"); in SetCpuAbi() local
347 if (field_id == nullptr) { in SetCpuAbi()
360 env->SetStaticObjectField(build_class, field_id, str); in SetCpuAbi()
/art/runtime/
Dhidden_api.cc186 const dex::FieldId& field_id = dex_file.GetFieldId(field.GetIndex()); in MemberSignature() local
187 class_name_ = dex_file.GetFieldDeclaringClassDescriptor(field_id); in MemberSignature()
188 member_name_ = dex_file.GetFieldName(field_id); in MemberSignature()
189 type_signature_ = dex_file.GetFieldTypeDescriptor(field_id); in MemberSignature()
Dart_field-inl.h307 const dex::FieldId& field_id = dex_file->GetFieldId(field_index); in GetTypeDescriptor() local
308 return dex_file->GetFieldTypeDescriptor(field_id); in GetTypeDescriptor()
358 const dex::FieldId& field_id = GetDexFile()->GetFieldId(dex_field_index); in ResolveNameString() local
359 return Runtime::Current()->GetClassLinker()->ResolveString(field_id.name_idx_, this); in ResolveNameString()
Dhidden_api_test.cc80 jfieldID field_id = env->GetFieldID(klass, name, signature); in getArtField() local
81 ArtField* art_field = jni::DecodeArtField(field_id); in getArtField()
/art/dexdump/
Ddexdump.cc1386 const dex::FieldId& field_id = dex_file.GetFieldId(field.GetIndex()); in dumpField() local
1387 const char* name = dex_file.StringDataByIdx(field_id.name_idx_); in dumpField()
1388 const char* typeDescriptor = dex_file.StringByTypeIdx(field_id.type_idx_); in dumpField()
1389 const char* backDescriptor = dex_file.StringByTypeIdx(field_id.class_idx_); in dumpField()
1682 const dex::FieldId& field_id = pDexFile->GetFieldId(mh.field_or_method_idx_); in dumpMethodHandle() local
1683 declaring_class = pDexFile->GetFieldDeclaringClassDescriptor(field_id); in dumpMethodHandle()
1684 member = pDexFile->GetFieldName(field_id); in dumpMethodHandle()
1685 member_type = pDexFile->GetFieldTypeDescriptor(field_id); in dumpMethodHandle()
/art/dex2oat/
Dverifier_deps_test.cc339 const dex::FieldId& field_id = dex_dep.first->GetFieldId(entry.GetDexFieldIndex()); in HasField() local
341 std::string actual_klass = dex_dep.first->StringByTypeIdx(field_id.class_idx_); in HasField()
346 std::string actual_name = dex_dep.first->StringDataByIdx(field_id.name_idx_); in HasField()
351 std::string actual_type = dex_dep.first->StringByTypeIdx(field_id.type_idx_); in HasField()
/art/runtime/native/
Ddalvik_system_VMRuntime.cc440 const dex::FieldId& field_id = dex_file->GetFieldId(field_idx); in PreloadDexCachesResolveField() local
442 field_id.class_idx_, dex_cache, /* class_loader= */ nullptr); in PreloadDexCachesResolveField()
/art/runtime/mirror/
Dobject_test.cc418 const dex::FieldId* field_id = dex_file->FindFieldId( in TEST_F() local
420 ASSERT_TRUE(field_id != nullptr); in TEST_F()
421 uint32_t field_idx = dex_file->GetIndexForFieldId(*field_id); in TEST_F()

12