Home
last modified time | relevance | path

Searched refs:field_id (Results 1 – 25 of 28) 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.cc160 const dex::FieldId& field_id = dex_file.GetFieldId(field_index); in GetFieldType() local
161 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()
Ddex_ir_builder.cc740 FieldId* field_id = header_->FieldIds()[fields[i].field_idx_]; in CreateAnnotationsDirectoryItem() local
747 field_id, annotation_set_item)); in CreateAnnotationsDirectoryItem()
/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/runtime/
Dsdk_checker.cc118 const dex::FieldId* field_id = dex_file->FindFieldId(*declaring_type_id, *name_id, *type_id); in ShouldDenyAccess() local
119 if (field_id != nullptr) { in ShouldDenyAccess()
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.cc192 const dex::FieldId& field_id = dex_file.GetFieldId(field.GetIndex()); in MemberSignature() local
193 class_name_ = dex_file.GetFieldDeclaringClassDescriptor(field_id); in MemberSignature()
194 member_name_ = dex_file.GetFieldName(field_id); in MemberSignature()
195 type_signature_ = dex_file.GetFieldTypeDescriptor(field_id); in MemberSignature()
Dhidden_api_test.cc168 jfieldID field_id = env->GetFieldID(klass, name, signature); in GetArtField() local
169 ArtField* art_field = jni::DecodeArtField(field_id); in GetArtField()
Dclass_linker.cc3281 const dex::FieldId& field_id = dex_file.GetFieldId(field_idx); in SizeOfClassWithoutEmbeddedTables() local
3282 const char* descriptor = dex_file.GetFieldTypeDescriptor(field_id); in SizeOfClassWithoutEmbeddedTables()
9245 const dex::FieldId& field_id = dex_file.GetFieldId(field_idx); in LookupResolvedField() local
9246 ObjPtr<mirror::Class> klass = dex_cache->GetResolvedType(field_id.class_idx_); in LookupResolvedField()
9248 klass = LookupResolvedType(field_id.class_idx_, dex_cache, class_loader); in LookupResolvedField()
9271 const dex::FieldId& field_id = dex_file.GetFieldId(field_idx); in ResolveField() local
9272 ObjPtr<mirror::Class> klass = ResolveType(field_id.class_idx_, dex_cache, class_loader); in ResolveField()
9280 const char* name = dex_file.GetFieldName(field_id); in ResolveField()
9281 const char* type = dex_file.GetFieldTypeDescriptor(field_id); in ResolveField()
9297 const dex::FieldId& field_id = dex_file.GetFieldId(field_idx); in ResolveFieldJLS() local
[all …]
/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.h326 uint32_t GetIndexForFieldId(const dex::FieldId& field_id) const { in GetIndexForFieldId() argument
327 CHECK_GE(&field_id, field_ids_) << GetLocation(); in GetIndexForFieldId()
328 CHECK_LT(&field_id, field_ids_ + header_->field_ids_size_) << GetLocation(); in GetIndexForFieldId()
329 return &field_id - field_ids_; in GetIndexForFieldId()
350 const char* GetFieldDeclaringClassDescriptor(const dex::FieldId& field_id) const { in GetFieldDeclaringClassDescriptor() argument
351 const dex::TypeId& type_id = GetTypeId(field_id.class_idx_); in GetFieldDeclaringClassDescriptor()
356 const char* GetFieldTypeDescriptor(const dex::FieldId& field_id) const;
359 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.cc574 const FieldId& field_id = GetFieldId(field_idx); in PrettyField() local
577 result += GetFieldTypeDescriptor(field_id); in PrettyField()
580 AppendPrettyDescriptor(GetFieldDeclaringClassDescriptor(field_id), &result); in PrettyField()
582 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/libnativebridge/
Dnative_bridge.cc399 jfieldID field_id = env->GetStaticFieldID(build_class, field, "Ljava/lang/String;"); in SetCpuAbi() local
400 if (field_id == nullptr) { in SetCpuAbi()
413 env->SetStaticObjectField(build_class, field_id, str); in SetCpuAbi()
/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/runtime/verifier/
Dmethod_verifier.cc4593 const dex::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetStaticField() local
4595 const RegType& klass_type = ResolveClass<CheckAccess::kYes>(field_id.class_idx_); in GetStaticField()
4598 field_idx, dex_file_->GetFieldName(field_id), in GetStaticField()
4599 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetStaticField()
4615 << dex_file_->GetFieldName(field_id) << ") in " in GetStaticField()
4616 << dex_file_->GetFieldDeclaringClassDescriptor(field_id); in GetStaticField()
4640 const dex::FieldId& field_id = dex_file_->GetFieldId(field_idx); in GetInstanceField() local
4642 const RegType& klass_type = ResolveClass<CheckAccess::kYes>(field_id.class_idx_); in GetInstanceField()
4645 field_idx, dex_file_->GetFieldName(field_id), in GetInstanceField()
4646 dex_file_->GetFieldDeclaringClassDescriptor(field_id))); in GetInstanceField()
[all …]
/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