Lines Matching refs:dex
46 using dex::CallSiteIdItem;
47 using dex::ClassDef;
48 using dex::FieldId;
49 using dex::MapList;
50 using dex::MapItem;
51 using dex::MethodHandleItem;
52 using dex::MethodId;
53 using dex::ProtoId;
54 using dex::StringId;
55 using dex::TryItem;
56 using dex::TypeId;
57 using dex::TypeList;
59 static_assert(sizeof(dex::StringIndex) == sizeof(uint32_t), "StringIndex size is wrong");
60 static_assert(std::is_trivially_copyable<dex::StringIndex>::value, "StringIndex not trivial");
61 static_assert(sizeof(dex::TypeIndex) == sizeof(uint16_t), "TypeIndex size is wrong");
62 static_assert(std::is_trivially_copyable<dex::TypeIndex>::value, "TypeIndex not trivial");
213 const ClassDef* DexFile::FindClassDef(dex::TypeIndex type_idx) const { in FindClassDef()
240 uint32_t DexFile::FindCodeItemOffset(const dex::ClassDef &class_def, in FindCodeItemOffset()
251 const dex::TypeIndex class_idx = GetIndexForTypeId(declaring_klass); in FindFieldId()
252 const dex::StringIndex name_idx = GetIndexForStringId(name); in FindFieldId()
253 const dex::TypeIndex type_idx = GetIndexForTypeId(type); in FindFieldId()
286 const dex::TypeIndex class_idx = GetIndexForTypeId(declaring_klass); in FindMethodId()
287 const dex::StringIndex name_idx = GetIndexForStringId(name); in FindMethodId()
288 const dex::ProtoIndex proto_idx = GetIndexForProtoId(signature); in FindMethodId()
292 const MethodId* DexFile::FindMethodIdByIndex(dex::TypeIndex class_idx, in FindMethodIdByIndex()
293 dex::StringIndex name_idx, in FindMethodIdByIndex()
294 dex::ProtoIndex proto_idx) const { in FindMethodIdByIndex()
332 const StringId& str_id = GetStringId(dex::StringIndex(mid)); in FindStringId()
351 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId()
366 const TypeId* DexFile::FindTypeId(dex::StringIndex string_idx) const { in FindTypeId()
371 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId()
383 const ProtoId* DexFile::FindProtoId(dex::TypeIndex return_type_idx, in FindProtoId()
384 const dex::TypeIndex* signature_type_idxs, in FindProtoId()
390 const dex::ProtoIndex proto_idx = static_cast<dex::ProtoIndex>(mid); in FindProtoId()
422 dex::TypeIndex* return_type_idx, in CreateTypeList()
423 std::vector<dex::TypeIndex>* param_type_idxs) const { in CreateTypeList()
460 dex::TypeIndex type_idx = GetIndexForTypeId(*type_id); in CreateTypeList()
586 std::string DexFile::PrettyType(dex::TypeIndex type_idx) const { in PrettyType()
594 dex::ProtoIndex DexFile::GetProtoIndexForCallSite(uint32_t call_site_idx) const { in GetProtoIndexForCallSite()
600 return dex::ProtoIndex(it.GetJavaValue().i); in GetProtoIndexForCallSite()
688 namespace dex { namespace