/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 | 160 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/ |
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/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() 1293 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/runtime/ |
D | sdk_checker.cc | 118 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()
|
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.cc | 192 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()
|
D | hidden_api_test.cc | 168 jfieldID field_id = env->GetFieldID(klass, name, signature); in GetArtField() local 169 ArtField* art_field = jni::DecodeArtField(field_id); in GetArtField()
|
D | class_linker.cc | 3281 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/ |
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 | 326 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;
|
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 | 574 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()
|
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() 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/ |
D | native_bridge.cc | 399 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/ |
D | dexdump.cc | 1386 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/ |
D | method_verifier.cc | 4593 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/ |
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()
|