Lines Matching refs:dex

243   const dex::StringId& GetStringId(dex::StringIndex idx) const {  in GetStringId()
248 dex::StringIndex GetIndexForStringId(const dex::StringId& string_id) const { in GetIndexForStringId()
251 return dex::StringIndex(&string_id - string_ids_); in GetIndexForStringId()
254 int32_t GetStringLength(const dex::StringId& string_id) const;
259 const char* GetStringDataAndUtf16Length(const dex::StringId& string_id,
262 const char* GetStringData(const dex::StringId& string_id) const;
265 const char* StringDataAndUtf16LengthByIdx(dex::StringIndex idx, uint32_t* utf16_length) const;
267 const char* StringDataByIdx(dex::StringIndex idx) const;
268 std::string_view StringViewByIdx(dex::StringIndex idx) const;
271 const dex::StringId* FindStringId(const char* string) const;
273 const dex::TypeId* FindTypeId(const char* string) const;
281 bool IsTypeIndexValid(dex::TypeIndex idx) const { in IsTypeIndexValid()
286 const dex::TypeId& GetTypeId(dex::TypeIndex idx) const { in GetTypeId()
291 dex::TypeIndex GetIndexForTypeId(const dex::TypeId& type_id) const { in GetIndexForTypeId()
296 return dex::TypeIndex(static_cast<uint16_t>(result)); in GetIndexForTypeId()
300 const char* StringByTypeIdx(dex::TypeIndex idx, uint32_t* unicode_length) const;
302 const char* StringByTypeIdx(dex::TypeIndex idx) const;
305 const char* GetTypeDescriptor(const dex::TypeId& type_id) const;
308 const dex::TypeId* FindTypeId(dex::StringIndex string_idx) const;
317 const dex::FieldId& GetFieldId(uint32_t idx) const { in GetFieldId()
322 uint32_t GetIndexForFieldId(const dex::FieldId& field_id) const { in GetIndexForFieldId()
329 const dex::FieldId* FindFieldId(const dex::TypeId& declaring_klass,
330 const dex::StringId& name,
331 const dex::TypeId& type) const;
333 uint32_t FindCodeItemOffset(const dex::ClassDef& class_def,
336 virtual uint32_t GetCodeItemSize(const dex::CodeItem& disk_code_item) const = 0;
339 const char* GetFieldDeclaringClassDescriptor(const dex::FieldId& field_id) const { in GetFieldDeclaringClassDescriptor()
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;
357 const dex::MethodId& GetMethodId(uint32_t idx) const { in GetMethodId()
362 uint32_t GetIndexForMethodId(const dex::MethodId& method_id) const { in GetIndexForMethodId()
369 const dex::MethodId* FindMethodId(const dex::TypeId& declaring_klass,
370 const dex::StringId& name,
371 const dex::ProtoId& signature) const;
374 const char* GetMethodDeclaringClassDescriptor(const dex::MethodId& method_id) const;
377 const dex::ProtoId& GetMethodPrototype(const dex::MethodId& method_id) const { in GetMethodPrototype()
382 const Signature GetMethodSignature(const dex::MethodId& method_id) const;
385 const Signature GetProtoSignature(const dex::ProtoId& proto_id) const;
388 const char* GetMethodName(const dex::MethodId& method_id) const;
389 const char* GetMethodName(const dex::MethodId& method_id, uint32_t* utf_length) const;
396 const char* GetMethodShorty(const dex::MethodId& method_id) const;
397 const char* GetMethodShorty(const dex::MethodId& method_id, uint32_t* length) const;
406 const dex::ClassDef& GetClassDef(uint16_t idx) const { in GetClassDef()
411 uint16_t GetIndexForClassDef(const dex::ClassDef& class_def) const { in GetIndexForClassDef()
418 const char* GetClassDescriptor(const dex::ClassDef& class_def) const;
421 const dex::ClassDef* FindClassDef(dex::TypeIndex type_idx) const;
423 const dex::TypeList* GetInterfacesList(const dex::ClassDef& class_def) const { in GetInterfacesList()
424 return DataPointer<dex::TypeList>(class_def.interfaces_off_); in GetInterfacesList()
431 const dex::MethodHandleItem& GetMethodHandle(uint32_t idx) const { in GetMethodHandle()
440 const dex::CallSiteIdItem& GetCallSiteId(uint32_t idx) const { in GetCallSiteId()
446 const uint8_t* GetClassData(const dex::ClassDef& class_def) const { in GetClassData()
451 const dex::CodeItem* GetCodeItem(const uint32_t code_off) const { in GetCodeItem()
453 return DataPointer<dex::CodeItem>(code_off); in GetCodeItem()
456 const char* GetReturnTypeDescriptor(const dex::ProtoId& proto_id) const;
465 const dex::ProtoId& GetProtoId(dex::ProtoIndex idx) const { in GetProtoId()
470 dex::ProtoIndex GetIndexForProtoId(const dex::ProtoId& proto_id) const { in GetIndexForProtoId()
473 return dex::ProtoIndex(&proto_id - proto_ids_); in GetIndexForProtoId()
477 const dex::ProtoId* FindProtoId(dex::TypeIndex return_type_idx,
478 const dex::TypeIndex* signature_type_idxs,
480 const dex::ProtoId* FindProtoId(dex::TypeIndex return_type_idx, in FindProtoId()
481 const std::vector<dex::TypeIndex>& signature_type_idxs) const { in FindProtoId()
487 dex::TypeIndex* return_type_idx,
488 std::vector<dex::TypeIndex>* param_type_idxs) const;
491 const char* GetShorty(dex::ProtoIndex proto_idx) const;
493 const dex::TypeList* GetProtoParameters(const dex::ProtoId& proto_id) const { in GetProtoParameters()
494 return DataPointer<dex::TypeList>(proto_id.parameters_off_); in GetProtoParameters()
497 const uint8_t* GetEncodedStaticFieldValuesArray(const dex::ClassDef& class_def) const { in GetEncodedStaticFieldValuesArray()
501 const uint8_t* GetCallSiteEncodedValuesArray(const dex::CallSiteIdItem& call_site_id) const { in GetCallSiteEncodedValuesArray()
505 dex::ProtoIndex GetProtoIndexForCallSite(uint32_t call_site_idx) const;
507 static const dex::TryItem* GetTryItems(const DexInstructionIterator& code_item_end,
516 static int32_t FindTryItem(const dex::TryItem* try_items, uint32_t tries_size, uint32_t address);
553 const dex::AnnotationsDirectoryItem* GetAnnotationsDirectory(const dex::ClassDef& class_def) in GetAnnotationsDirectory()
555 return DataPointer<dex::AnnotationsDirectoryItem>(class_def.annotations_off_); in GetAnnotationsDirectory()
558 const dex::AnnotationSetItem* GetClassAnnotationSet(const dex::AnnotationsDirectoryItem* anno_dir) in GetClassAnnotationSet()
560 return DataPointer<dex::AnnotationSetItem>(anno_dir->class_annotations_off_); in GetClassAnnotationSet()
563 const dex::FieldAnnotationsItem* GetFieldAnnotations( in GetFieldAnnotations()
564 const dex::AnnotationsDirectoryItem* anno_dir) const { in GetFieldAnnotations()
567 : reinterpret_cast<const dex::FieldAnnotationsItem*>(&anno_dir[1]); in GetFieldAnnotations()
570 const dex::MethodAnnotationsItem* GetMethodAnnotations( in GetMethodAnnotations()
571 const dex::AnnotationsDirectoryItem* anno_dir) const { in GetMethodAnnotations()
577 addr += anno_dir->fields_size_ * sizeof(dex::FieldAnnotationsItem); in GetMethodAnnotations()
578 return reinterpret_cast<const dex::MethodAnnotationsItem*>(addr); in GetMethodAnnotations()
581 const dex::ParameterAnnotationsItem* GetParameterAnnotations( in GetParameterAnnotations()
582 const dex::AnnotationsDirectoryItem* anno_dir) const { in GetParameterAnnotations()
588 addr += anno_dir->fields_size_ * sizeof(dex::FieldAnnotationsItem); in GetParameterAnnotations()
589 addr += anno_dir->methods_size_ * sizeof(dex::MethodAnnotationsItem); in GetParameterAnnotations()
590 return reinterpret_cast<const dex::ParameterAnnotationsItem*>(addr); in GetParameterAnnotations()
593 const dex::AnnotationSetItem* GetFieldAnnotationSetItem( in GetFieldAnnotationSetItem()
594 const dex::FieldAnnotationsItem& anno_item) const { in GetFieldAnnotationSetItem()
595 return DataPointer<dex::AnnotationSetItem>(anno_item.annotations_off_); in GetFieldAnnotationSetItem()
598 const dex::AnnotationSetItem* GetMethodAnnotationSetItem( in GetMethodAnnotationSetItem()
599 const dex::MethodAnnotationsItem& anno_item) const { in GetMethodAnnotationSetItem()
600 return DataPointer<dex::AnnotationSetItem>(anno_item.annotations_off_); in GetMethodAnnotationSetItem()
603 const dex::AnnotationSetRefList* GetParameterAnnotationSetRefList( in GetParameterAnnotationSetRefList()
604 const dex::ParameterAnnotationsItem* anno_item) const { in GetParameterAnnotationSetRefList()
605 return DataPointer<dex::AnnotationSetRefList>(anno_item->annotations_off_); in GetParameterAnnotationSetRefList()
608 ALWAYS_INLINE const dex::AnnotationItem* GetAnnotationItemAtOffset(uint32_t offset) const { in GetAnnotationItemAtOffset()
609 return DataPointer<dex::AnnotationItem>(offset); in GetAnnotationItemAtOffset()
612 ALWAYS_INLINE const dex::HiddenapiClassData* GetHiddenapiClassDataAtOffset(uint32_t offset) in GetHiddenapiClassDataAtOffset()
614 return DataPointer<dex::HiddenapiClassData>(offset); in GetHiddenapiClassDataAtOffset()
617 ALWAYS_INLINE const dex::HiddenapiClassData* GetHiddenapiClassData() const { in GetHiddenapiClassData()
625 const dex::AnnotationItem* GetAnnotationItem(const dex::AnnotationSetItem* set_item, in GetAnnotationItem()
631 const dex::AnnotationSetItem* GetSetRefItemItem(const dex::AnnotationSetRefItem* anno_item) in GetSetRefItemItem()
633 return DataPointer<dex::AnnotationSetItem>(anno_item->annotations_off_); in GetSetRefItemItem()
682 const char* GetSourceFile(const dex::ClassDef& class_def) const { in GetSourceFile()
730 const dex::MapList* GetMapList() const { in GetMapList()
731 return reinterpret_cast<const dex::MapList*>(DataBegin() + header_->map_off_); in GetMapList()
754 std::string PrettyType(dex::TypeIndex type_idx) const;
787 static inline bool StringEquals(const DexFile* df1, dex::StringIndex sidx1,
788 const DexFile* df2, dex::StringIndex sidx2);
837 const dex::StringId* const string_ids_;
840 const dex::TypeId* const type_ids_;
843 const dex::FieldId* const field_ids_;
846 const dex::MethodId* const method_ids_;
849 const dex::ProtoId* const proto_ids_;
852 const dex::ClassDef* const class_defs_;
855 const dex::MethodHandleItem* method_handles_;
861 const dex::CallSiteIdItem* call_site_ids_;
868 const dex::HiddenapiClassData* hiddenapi_class_data_;
896 DexFileParameterIterator(const DexFile& dex_file, const dex::ProtoId& proto_id) in DexFileParameterIterator()
906 dex::TypeIndex GetTypeIdx() { in GetTypeIdx()
910 return dex_file_.StringByTypeIdx(dex::TypeIndex(GetTypeIdx())); in GetDescriptor()
914 const dex::TypeList* type_list_ = nullptr;
971 const dex::ClassDef& class_def) in EncodedStaticFieldValueIterator()
984 const dex::CallSiteIdItem& call_site_id) in CallSiteArrayValueIterator()