/art/test/647-jni-get-field-id/ |
D | get_field_id.cc | 36 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/tools/veridex/ |
D | hidden_api.cc | 85 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()
|
D | resolver.cc | 66 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()
|
D | hidden_api_finder.cc | 41 void HiddenApiFinder::CheckField(uint32_t field_id, in CheckField() argument 46 const auto& name = HiddenApi::GetApiFieldName(resolver->GetDexFile(), field_id); in CheckField()
|
D | flow_analysis.cc | 142 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/dexlayout/ |
D | dex_visualize.cc | 130 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()
|
D | dexlayout.cc | 436 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() 1290 dex_ir::FieldId* field_id = header_->FieldIds()[idx]; in DumpSField() local [all …]
|
D | dex_writer.cc | 323 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()
|
D | dex_ir.h | 89 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()
|
D | dex_ir_builder.cc | 740 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/ |
D | fieldnull.cc | 41 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/ |
D | fieldcount.cc | 43 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/ |
D | dex_file.h | 322 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;
|
D | dex_file-inl.h | 101 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()
|
D | dex_file.cc | 556 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()
|
D | dex_file_verifier.cc | 164 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() 1269 const dex::FieldId* field_id = reinterpret_cast<const dex::FieldId*>(ptr_); in CheckIntraFieldIdItem() local 1270 if (!CheckIndex(field_id->class_idx_.index_, header_->type_ids_size_, "field_id.class") || in CheckIntraFieldIdItem() 1271 !CheckIndex(field_id->type_idx_.index_, header_->type_ids_size_, "field_id.type") || in CheckIntraFieldIdItem() 1272 !CheckIndex(field_id->name_idx_.index_, header_->string_ids_size_, "field_id.name")) { in CheckIntraFieldIdItem()
|
/art/runtime/verifier/ |
D | verifier_deps.cc | 884 const dex::FieldId& field_id = dex_file.GetFieldId(entry.GetDexFieldIndex()); in Dump() local 886 << dex_file.GetFieldDeclaringClassDescriptor(field_id) << "->" in Dump() 887 << dex_file.GetFieldName(field_id) << ":" in Dump() 888 << dex_file.GetFieldTypeDescriptor(field_id) in Dump() 1026 const dex::FieldId& field_id = dex_file.GetFieldId(index); in GetFieldDescription() local 1027 return std::string(dex_file.GetFieldDeclaringClassDescriptor(field_id)) in GetFieldDescription() 1029 + dex_file.GetFieldName(field_id) in GetFieldDescription() 1031 + dex_file.GetFieldTypeDescriptor(field_id); in GetFieldDescription() 1043 const dex::FieldId& field_id = dex_file.GetFieldId(entry.GetDexFieldIndex()); in VerifyFields() local 1044 std::string_view name(dex_file.StringDataByIdx(field_id.name_idx_)); in VerifyFields() [all …]
|
/art/libnativebridge/ |
D | native_bridge.cc | 346 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/ |
D | hidden_api.cc | 180 const dex::FieldId& field_id = dex_file.GetFieldId(field.GetIndex()); in MemberSignature() local 181 class_name_ = dex_file.GetFieldDeclaringClassDescriptor(field_id); in MemberSignature() 182 member_name_ = dex_file.GetFieldName(field_id); in MemberSignature() 183 type_signature_ = dex_file.GetFieldTypeDescriptor(field_id); in MemberSignature()
|
D | art_field-inl.h | 307 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()
|
D | hidden_api_test.cc | 78 jfieldID field_id = env->GetFieldID(klass, name, signature); in getArtField() local 79 ArtField* art_field = jni::DecodeArtField(field_id); in getArtField()
|
/art/dexdump/ |
D | dexdump.cc | 1344 const dex::FieldId& field_id = dex_file.GetFieldId(field.GetIndex()); in dumpField() local 1345 const char* name = dex_file.StringDataByIdx(field_id.name_idx_); in dumpField() 1346 const char* typeDescriptor = dex_file.StringByTypeIdx(field_id.type_idx_); in dumpField() 1347 const char* backDescriptor = dex_file.StringByTypeIdx(field_id.class_idx_); in dumpField() 1640 const dex::FieldId& field_id = pDexFile->GetFieldId(mh.field_or_method_idx_); in dumpMethodHandle() local 1641 declaring_class = pDexFile->GetFieldDeclaringClassDescriptor(field_id); in dumpMethodHandle() 1642 member = pDexFile->GetFieldName(field_id); in dumpMethodHandle() 1643 member_type = pDexFile->GetFieldTypeDescriptor(field_id); in dumpMethodHandle()
|
/art/dex2oat/ |
D | verifier_deps_test.cc | 339 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/ |
D | dalvik_system_VMRuntime.cc | 440 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/ |
D | object_test.cc | 418 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()
|