• Home
  • Raw
  • Download

Lines Matching refs:out_file_

492   fputs(annotation->GetType()->GetStringId()->Data(), out_file_);  in DumpEncodedAnnotation()
495 fputc(' ', out_file_); in DumpEncodedAnnotation()
496 fputs(subannotation->GetName()->Data(), out_file_); in DumpEncodedAnnotation()
497 fputc('=', out_file_); in DumpEncodedAnnotation()
507 fprintf(out_file_, "%" PRId8, data->GetByte()); in DumpEncodedValue()
510 fprintf(out_file_, "%" PRId16, data->GetShort()); in DumpEncodedValue()
513 fprintf(out_file_, "%" PRIu16, data->GetChar()); in DumpEncodedValue()
516 fprintf(out_file_, "%" PRId32, data->GetInt()); in DumpEncodedValue()
519 fprintf(out_file_, "%" PRId64, data->GetLong()); in DumpEncodedValue()
522 fprintf(out_file_, "%g", data->GetFloat()); in DumpEncodedValue()
526 fprintf(out_file_, "%g", data->GetDouble()); in DumpEncodedValue()
532 DumpEscapedString(string_id->Data(), out_file_); in DumpEncodedValue()
534 DumpXmlAttribute(string_id->Data(), out_file_); in DumpEncodedValue()
540 fputs(type_id->GetStringId()->Data(), out_file_); in DumpEncodedValue()
546 fputs(field_id->Name()->Data(), out_file_); in DumpEncodedValue()
551 fputs(method_id->Name()->Data(), out_file_); in DumpEncodedValue()
555 fputc('{', out_file_); in DumpEncodedValue()
558 fputc(' ', out_file_); in DumpEncodedValue()
561 fputs(" }", out_file_); in DumpEncodedValue()
569 fputs("null", out_file_); in DumpEncodedValue()
572 fputs(StrBool(data->GetBoolean()), out_file_); in DumpEncodedValue()
575 fputs("????", out_file_); in DumpEncodedValue()
585 fprintf(out_file_, "DEX file header:\n"); in DumpFileHeader()
587 fprintf(out_file_, "magic : '%s'\n", sanitized); in DumpFileHeader()
588 fprintf(out_file_, "checksum : %08x\n", header_->Checksum()); in DumpFileHeader()
589 fprintf(out_file_, "signature : %02x%02x...%02x%02x\n", in DumpFileHeader()
593 fprintf(out_file_, "file_size : %d\n", header_->FileSize()); in DumpFileHeader()
594 fprintf(out_file_, "header_size : %d\n", header_->HeaderSize()); in DumpFileHeader()
595 fprintf(out_file_, "link_size : %d\n", header_->LinkSize()); in DumpFileHeader()
596 fprintf(out_file_, "link_off : %d (0x%06x)\n", in DumpFileHeader()
598 fprintf(out_file_, "string_ids_size : %d\n", header_->StringIds().Size()); in DumpFileHeader()
599 fprintf(out_file_, "string_ids_off : %d (0x%06x)\n", in DumpFileHeader()
601 fprintf(out_file_, "type_ids_size : %d\n", header_->TypeIds().Size()); in DumpFileHeader()
602 fprintf(out_file_, "type_ids_off : %d (0x%06x)\n", in DumpFileHeader()
604 fprintf(out_file_, "proto_ids_size : %d\n", header_->ProtoIds().Size()); in DumpFileHeader()
605 fprintf(out_file_, "proto_ids_off : %d (0x%06x)\n", in DumpFileHeader()
607 fprintf(out_file_, "field_ids_size : %d\n", header_->FieldIds().Size()); in DumpFileHeader()
608 fprintf(out_file_, "field_ids_off : %d (0x%06x)\n", in DumpFileHeader()
610 fprintf(out_file_, "method_ids_size : %d\n", header_->MethodIds().Size()); in DumpFileHeader()
611 fprintf(out_file_, "method_ids_off : %d (0x%06x)\n", in DumpFileHeader()
613 fprintf(out_file_, "class_defs_size : %d\n", header_->ClassDefs().Size()); in DumpFileHeader()
614 fprintf(out_file_, "class_defs_off : %d (0x%06x)\n", in DumpFileHeader()
616 fprintf(out_file_, "data_size : %d\n", header_->DataSize()); in DumpFileHeader()
617 fprintf(out_file_, "data_off : %d (0x%06x)\n\n", in DumpFileHeader()
627 fprintf(out_file_, "Class #%d header:\n", idx); in DumpClassDef()
628 fprintf(out_file_, "class_idx : %d\n", class_def->ClassType()->GetIndex()); in DumpClassDef()
629 fprintf(out_file_, "access_flags : %d (0x%04x)\n", in DumpClassDef()
633 fprintf(out_file_, "superclass_idx : %d\n", superclass_idx); in DumpClassDef()
634 fprintf(out_file_, "interfaces_off : %d (0x%06x)\n", in DumpClassDef()
640 fprintf(out_file_, "source_file_idx : %d\n", source_file_offset); in DumpClassDef()
645 fprintf(out_file_, "annotations_off : %d (0x%06x)\n", in DumpClassDef()
648 fprintf(out_file_, "class_data_off : %d (0x%06x)\n", 0, 0); in DumpClassDef()
650 fprintf(out_file_, "class_data_off : %d (0x%06x)\n", in DumpClassDef()
657 fprintf(out_file_, "static_fields_size : %zu\n", class_data->StaticFields()->size()); in DumpClassDef()
659 fprintf(out_file_, "static_fields_size : 0\n"); in DumpClassDef()
662 fprintf(out_file_, "instance_fields_size: %zu\n", class_data->InstanceFields()->size()); in DumpClassDef()
664 fprintf(out_file_, "instance_fields_size: 0\n"); in DumpClassDef()
667 fprintf(out_file_, "direct_methods_size : %zu\n", class_data->DirectMethods()->size()); in DumpClassDef()
669 fprintf(out_file_, "direct_methods_size : 0\n"); in DumpClassDef()
672 fprintf(out_file_, "virtual_methods_size: %zu\n", class_data->VirtualMethods()->size()); in DumpClassDef()
674 fprintf(out_file_, "virtual_methods_size: 0\n"); in DumpClassDef()
676 fprintf(out_file_, "\n"); in DumpClassDef()
684 fputs(" empty-annotation-set\n", out_file_); in DumpAnnotationSetItem()
691 fputs(" ", out_file_); in DumpAnnotationSetItem()
693 case DexFile::kDexVisibilityBuild: fputs("VISIBILITY_BUILD ", out_file_); break; in DumpAnnotationSetItem()
694 case DexFile::kDexVisibilityRuntime: fputs("VISIBILITY_RUNTIME ", out_file_); break; in DumpAnnotationSetItem()
695 case DexFile::kDexVisibilitySystem: fputs("VISIBILITY_SYSTEM ", out_file_); break; in DumpAnnotationSetItem()
696 default: fputs("VISIBILITY_UNKNOWN ", out_file_); break; in DumpAnnotationSetItem()
699 fputc('\n', out_file_); in DumpAnnotationSetItem()
713 fprintf(out_file_, "Class #%d annotations:\n", idx); in DumpClassAnnotations()
722 fprintf(out_file_, "Annotations on class\n"); in DumpClassAnnotations()
732 fprintf(out_file_, "Annotations on field #%u '%s'\n", field_idx, field_name); in DumpClassAnnotations()
743 fprintf(out_file_, "Annotations on method #%u '%s'\n", method_idx, method_name); in DumpClassAnnotations()
754 fprintf(out_file_, "Annotations on method #%u '%s' parameters\n", method_idx, method_name); in DumpClassAnnotations()
757 fprintf(out_file_, "#%u\n", j); in DumpClassAnnotations()
764 fputc('\n', out_file_); in DumpClassAnnotations()
773 fprintf(out_file_, " #%d : '%s'\n", i, interface_name); in DumpInterface()
776 fprintf(out_file_, "<implements name=\"%s\">\n</implements>\n", dot.c_str()); in DumpInterface()
788 fprintf(out_file_, " catches : (none)\n"); in DumpCatches()
793 fprintf(out_file_, " catches : %d\n", tries_size); in DumpCatches()
799 fprintf(out_file_, " 0x%04x - 0x%04x\n", start, end); in DumpCatches()
803 fprintf(out_file_, " %s -> 0x%04x\n", descriptor, handler->GetAddress()); in DumpCatches()
817 fprintf(out_file_, "%06x:", code_offset + 0x10 + insn_idx * 2); in DumpInstruction()
824 fprintf(out_file_, " ... "); in DumpInstruction()
828 fprintf(out_file_, " %02x%02x", bytePtr[0], bytePtr[1]); in DumpInstruction()
831 fputs(" ", out_file_); in DumpInstruction()
839 fprintf(out_file_, "|%04x: packed-switch-data (%d units)", insn_idx, insn_width); in DumpInstruction()
841 fprintf(out_file_, "|%04x: sparse-switch-data (%d units)", insn_idx, insn_width); in DumpInstruction()
843 fprintf(out_file_, "|%04x: array-data (%d units)", insn_idx, insn_width); in DumpInstruction()
845 fprintf(out_file_, "|%04x: nop // spacer", insn_idx); in DumpInstruction()
848 fprintf(out_file_, "|%04x: %s", insn_idx, dec_insn->Name()); in DumpInstruction()
865 fprintf(out_file_, " v%d, v%d", dec_insn->VRegA(), dec_insn->VRegB()); in DumpInstruction()
868 fprintf(out_file_, " v%d, #int %d // #%x", in DumpInstruction()
872 fprintf(out_file_, " v%d", dec_insn->VRegA()); in DumpInstruction()
877 fprintf(out_file_, " %04x // %c%04x", in DumpInstruction()
884 fprintf(out_file_, " v%d, v%d", dec_insn->VRegA(), dec_insn->VRegB()); in DumpInstruction()
888 fprintf(out_file_, " v%d, %04x // %c%04x", dec_insn->VRegA(), in DumpInstruction()
895 fprintf(out_file_, " v%d, #int %d // #%x", in DumpInstruction()
902 fprintf(out_file_, " v%d, #int %d // #%x", in DumpInstruction()
906 fprintf(out_file_, " v%d, #long %" PRId64 " // #%x", in DumpInstruction()
912 fprintf(out_file_, " v%d, %s", dec_insn->VRegA(), index_buf.get()); in DumpInstruction()
915 fprintf(out_file_, " v%d, v%d, v%d", in DumpInstruction()
919 fprintf(out_file_, " v%d, v%d, #int %d // #%02x", in DumpInstruction()
925 fprintf(out_file_, " v%d, v%d, %04x // %c%04x", in DumpInstruction()
933 fprintf(out_file_, " v%d, v%d, #int %d // #%04x", in DumpInstruction()
940 fprintf(out_file_, " v%d, v%d, %s", in DumpInstruction()
944 fprintf(out_file_, " #%08x", dec_insn->VRegA()); in DumpInstruction()
953 fprintf(out_file_, " v%d, #float %g // #%08x", in DumpInstruction()
958 fprintf(out_file_, " v%d, %08x // +%08x", in DumpInstruction()
962 fprintf(out_file_, " v%d, v%d", dec_insn->VRegA(), dec_insn->VRegB()); in DumpInstruction()
971 fputs(" {", out_file_); in DumpInstruction()
974 fprintf(out_file_, "v%d", arg[i]); in DumpInstruction()
976 fprintf(out_file_, ", v%d", arg[i]); in DumpInstruction()
979 fprintf(out_file_, "}, %s", index_buf.get()); in DumpInstruction()
990 fputs(" {", out_file_); in DumpInstruction()
993 fprintf(out_file_, "v%d", dec_insn->VRegC() + i); in DumpInstruction()
995 fprintf(out_file_, ", v%d", dec_insn->VRegC() + i); in DumpInstruction()
998 fprintf(out_file_, "}, %s", index_buf.get()); in DumpInstruction()
1008 fprintf(out_file_, " v%d, #double %g // #%016" PRIx64, in DumpInstruction()
1016 fprintf(out_file_, " ???"); in DumpInstruction()
1020 fputc('\n', out_file_); in DumpInstruction()
1034 fprintf(out_file_, "%06x: |[%06x] %s.%s:%s\n", in DumpBytecodes()
1082 fprintf(out_file_, " registers : %d\n", code->RegistersSize()); in DumpCode()
1083 fprintf(out_file_, " ins : %d\n", code->InsSize()); in DumpCode()
1084 fprintf(out_file_, " outs : %d\n", code->OutsSize()); in DumpCode()
1085 fprintf(out_file_, " insns size : %d 16-bit code units\n", in DumpCode()
1098 fprintf(out_file_, " positions : \n"); in DumpCode()
1105 fprintf(out_file_, in DumpCode()
1112 fprintf(out_file_, " locals : \n"); in DumpCode()
1144 fprintf(out_file_, in DumpCode()
1176 fprintf(out_file_, " #%d : (in %s)\n", i, back_descriptor); in DumpMethod()
1177 fprintf(out_file_, " name : '%s'\n", name); in DumpMethod()
1178 fprintf(out_file_, " type : '%s'\n", type_descriptor); in DumpMethod()
1179 fprintf(out_file_, " access : 0x%04x (%s)\n", flags, access_str); in DumpMethod()
1181 fprintf(out_file_, in DumpMethod()
1187 fprintf(out_file_, " code : (none)\n"); in DumpMethod()
1189 fprintf(out_file_, " code -\n"); in DumpMethod()
1199 fputc('\n', out_file_); in DumpMethod()
1207 fprintf(out_file_, "<constructor name=\"%s\"\n", dot.c_str()); in DumpMethod()
1209 fprintf(out_file_, " type=\"%s\"\n", dot.c_str()); in DumpMethod()
1211 fprintf(out_file_, "<method name=\"%s\"\n", name); in DumpMethod()
1218 fprintf(out_file_, " return=\"%s\"\n", dot.c_str()); in DumpMethod()
1219 fprintf(out_file_, " abstract=%s\n", QuotedBool((flags & kAccAbstract) != 0)); in DumpMethod()
1220 fprintf(out_file_, " native=%s\n", QuotedBool((flags & kAccNative) != 0)); in DumpMethod()
1221 fprintf(out_file_, " synchronized=%s\n", QuotedBool( in DumpMethod()
1226 fprintf(out_file_, " static=%s\n", QuotedBool((flags & kAccStatic) != 0)); in DumpMethod()
1227 fprintf(out_file_, " final=%s\n", QuotedBool((flags & kAccFinal) != 0)); in DumpMethod()
1229 fprintf(out_file_, " visibility=%s\n>\n", QuotedVisibility(flags)); in DumpMethod()
1260 fprintf(out_file_, "<parameter name=\"arg%d\" type=\"%s\">\n" in DumpMethod()
1265 fprintf(out_file_, "</constructor>\n"); in DumpMethod()
1267 fprintf(out_file_, "</method>\n"); in DumpMethod()
1296 fprintf(out_file_, " #%d : (in %s)\n", i, back_descriptor); in DumpSField()
1297 fprintf(out_file_, " name : '%s'\n", name); in DumpSField()
1298 fprintf(out_file_, " type : '%s'\n", type_descriptor); in DumpSField()
1299 fprintf(out_file_, " access : 0x%04x (%s)\n", flags, access_str); in DumpSField()
1301 fprintf(out_file_, in DumpSField()
1307 fputs(" value : ", out_file_); in DumpSField()
1309 fputs("\n", out_file_); in DumpSField()
1312 fprintf(out_file_, "<field name=\"%s\"\n", name); in DumpSField()
1314 fprintf(out_file_, " type=\"%s\"\n", dot.c_str()); in DumpSField()
1315 fprintf(out_file_, " transient=%s\n", QuotedBool((flags & kAccTransient) != 0)); in DumpSField()
1316 fprintf(out_file_, " volatile=%s\n", QuotedBool((flags & kAccVolatile) != 0)); in DumpSField()
1318 fprintf(out_file_, " static=%s\n", QuotedBool((flags & kAccStatic) != 0)); in DumpSField()
1319 fprintf(out_file_, " final=%s\n", QuotedBool((flags & kAccFinal) != 0)); in DumpSField()
1321 fprintf(out_file_, " visibility=%s\n", QuotedVisibility(flags)); in DumpSField()
1323 fputs(" value=\"", out_file_); in DumpSField()
1325 fputs("\"\n", out_file_); in DumpSField()
1327 fputs(">\n</field>\n", out_file_); in DumpSField()
1396 fprintf(out_file_, "</package>\n"); in DumpClass()
1398 fprintf(out_file_, "<package name=\"%s\"\n>\n", mangle); in DumpClass()
1413 fprintf(out_file_, "Class #%d -\n", idx); in DumpClass()
1414 fprintf(out_file_, " Class descriptor : '%s'\n", class_descriptor); in DumpClass()
1415 fprintf(out_file_, " Access flags : 0x%04x (%s)\n", in DumpClass()
1418 fprintf(out_file_, " Superclass : '%s'\n", superclass_descriptor); in DumpClass()
1420 fprintf(out_file_, " Interfaces -\n"); in DumpClass()
1423 fprintf(out_file_, "<class name=\"%s\"\n", dot.c_str()); in DumpClass()
1426 fprintf(out_file_, " extends=\"%s\"\n", dot.c_str()); in DumpClass()
1428 fprintf(out_file_, " interface=%s\n", in DumpClass()
1430 fprintf(out_file_, " abstract=%s\n", in DumpClass()
1432 fprintf(out_file_, " static=%s\n", QuotedBool((class_def->GetAccessFlags() & kAccStatic) != 0)); in DumpClass()
1433 fprintf(out_file_, " final=%s\n", QuotedBool((class_def->GetAccessFlags() & kAccFinal) != 0)); in DumpClass()
1435 fprintf(out_file_, " visibility=%s\n", QuotedVisibility(class_def->GetAccessFlags())); in DumpClass()
1436 fprintf(out_file_, ">\n"); in DumpClass()
1458 fprintf(out_file_, " Static fields -\n"); in DumpClass()
1475 fprintf(out_file_, " Instance fields -\n"); in DumpClass()
1491 fprintf(out_file_, " Direct methods -\n"); in DumpClass()
1508 fprintf(out_file_, " Virtual methods -\n"); in DumpClass()
1530 fprintf(out_file_, " source_file_idx : %d (%s)\n\n", in DumpClass()
1533 fprintf(out_file_, "</class>\n"); in DumpClass()
1547 fprintf(out_file_, "<api>\n"); in DumpDexFile()
1559 fprintf(out_file_, "</package>\n"); in DumpDexFile()
1565 fprintf(out_file_, "</api>\n"); in DumpDexFile()
1895 fprintf(out_file_, "Opened '%s', DEX version '%.3s'\n", in ProcessDexFile()
1984 fprintf(out_file_, "Processing '%s'...\n", file_name); in ProcessFile()
2004 fprintf(out_file_, "Checksum verified\n"); in ProcessFile()