H A D | dex_verify.cc | 34 dex_ir::Collections& orig = orig_header->GetCollections(); local 38 if (!VerifyIds(orig.StringIds(), output.StringIds(), "string ids", error_msg) || 39 !VerifyIds(orig.TypeIds(), output.TypeIds(), "type ids", error_msg) || 40 !VerifyIds(orig.ProtoIds(), output.ProtoIds(), "proto ids", error_msg) || 41 !VerifyIds(orig.FieldIds(), output.FieldIds(), "field ids", error_msg) || 42 !VerifyIds(orig.MethodIds(), output.MethodIds(), "method ids", error_msg)) { 46 if (!VerifyClassDefs(orig.ClassDefs(), output.ClassDefs(), error_msg)) { 52 template<class T> bool VerifyIds(std::vector<std::unique_ptr<T>>& orig, argument 56 if (orig.size() != output.size()) { 58 "Mismatched size for %s section: %zu vs %zu.", section_name, orig 69 VerifyId(dex_ir::StringId* orig, dex_ir::StringId* output, std::string* error_msg) argument 81 VerifyId(dex_ir::TypeId* orig, dex_ir::TypeId* output, std::string* error_msg) argument 93 VerifyId(dex_ir::ProtoId* orig, dex_ir::ProtoId* output, std::string* error_msg) argument 118 VerifyId(dex_ir::FieldId* orig, dex_ir::FieldId* output, std::string* error_msg) argument 147 VerifyId(dex_ir::MethodId* orig, dex_ir::MethodId* output, std::string* error_msg) argument 184 VerifyClassDefs(std::vector<std::unique_ptr<dex_ir::ClassDef>>& orig, std::vector<std::unique_ptr<dex_ir::ClassDef>>& output, std::string* error_msg) argument 211 VerifyClassDef(dex_ir::ClassDef* orig, dex_ir::ClassDef* output, std::string* error_msg) argument 266 VerifyTypeList(const dex_ir::TypeList* orig, const dex_ir::TypeList* output) argument 283 VerifyAnnotationsDirectory(dex_ir::AnnotationsDirectoryItem* orig, dex_ir::AnnotationsDirectoryItem* output, std::string* error_msg) argument 314 VerifyFieldAnnotations(dex_ir::FieldAnnotationVector* orig, dex_ir::FieldAnnotationVector* output, uint32_t orig_offset, std::string* error_msg) argument 355 VerifyMethodAnnotations(dex_ir::MethodAnnotationVector* orig, dex_ir::MethodAnnotationVector* output, uint32_t orig_offset, std::string* error_msg) argument 396 VerifyParameterAnnotations(dex_ir::ParameterAnnotationVector* orig, dex_ir::ParameterAnnotationVector* output, uint32_t orig_offset, std::string* error_msg) argument 437 VerifyAnnotationSetRefList(dex_ir::AnnotationSetRefList* orig, dex_ir::AnnotationSetRefList* output, std::string* error_msg) argument 458 VerifyAnnotationSet(dex_ir::AnnotationSetItem* orig, dex_ir::AnnotationSetItem* output, std::string* error_msg) argument 485 VerifyAnnotation(dex_ir::AnnotationItem* orig, dex_ir::AnnotationItem* output, std::string* error_msg) argument 501 VerifyEncodedAnnotation(dex_ir::EncodedAnnotation* orig, dex_ir::EncodedAnnotation* output, uint32_t orig_offset, std::string* error_msg) argument 534 VerifyAnnotationElement(dex_ir::AnnotationElement* orig, dex_ir::AnnotationElement* output, uint32_t orig_offset, std::string* error_msg) argument 549 VerifyEncodedValue(dex_ir::EncodedValue* orig, dex_ir::EncodedValue* output, uint32_t orig_offset, std::string* error_msg) argument 701 VerifyEncodedArray(dex_ir::EncodedArrayItem* orig, dex_ir::EncodedArrayItem* output, std::string* error_msg) argument 731 VerifyClassData(dex_ir::ClassData* orig, dex_ir::ClassData* output, std::string* error_msg) argument 760 VerifyFields(dex_ir::FieldItemVector* orig, dex_ir::FieldItemVector* output, uint32_t orig_offset, std::string* error_msg) argument 793 VerifyMethods(dex_ir::MethodItemVector* orig, dex_ir::MethodItemVector* output, uint32_t orig_offset, std::string* error_msg) argument 829 VerifyCode(dex_ir::CodeItem* orig, dex_ir::CodeItem* output, std::string* error_msg) argument 886 VerifyDebugInfo(dex_ir::DebugInfoItem* orig, dex_ir::DebugInfoItem* output, std::string* error_msg) argument 917 VerifyTries(dex_ir::TryItemVector* orig, dex_ir::TryItemVector* output, uint32_t orig_offset, std::string* error_msg) argument 964 VerifyHandlers(dex_ir::CatchHandlerVector* orig, dex_ir::CatchHandlerVector* output, uint32_t orig_offset, std::string* error_msg) argument 991 VerifyHandler(const dex_ir::CatchHandler* orig, const dex_ir::CatchHandler* output, uint32_t orig_offset, std::string* error_msg) argument [all...] |