Lines Matching refs:out_file_
493 fputs(annotation->GetType()->GetStringId()->Data(), out_file_); in DumpEncodedAnnotation()
496 fputc(' ', out_file_); in DumpEncodedAnnotation()
497 fputs(subannotation->GetName()->Data(), out_file_); in DumpEncodedAnnotation()
498 fputc('=', out_file_); in DumpEncodedAnnotation()
508 fprintf(out_file_, "%" PRId8, data->GetByte()); in DumpEncodedValue()
511 fprintf(out_file_, "%" PRId16, data->GetShort()); in DumpEncodedValue()
514 fprintf(out_file_, "%" PRIu16, data->GetChar()); in DumpEncodedValue()
517 fprintf(out_file_, "%" PRId32, data->GetInt()); in DumpEncodedValue()
520 fprintf(out_file_, "%" PRId64, data->GetLong()); in DumpEncodedValue()
523 fprintf(out_file_, "%g", data->GetFloat()); in DumpEncodedValue()
527 fprintf(out_file_, "%g", data->GetDouble()); in DumpEncodedValue()
533 DumpEscapedString(string_id->Data(), out_file_); in DumpEncodedValue()
535 DumpXmlAttribute(string_id->Data(), out_file_); in DumpEncodedValue()
541 fputs(type_id->GetStringId()->Data(), out_file_); in DumpEncodedValue()
547 fputs(field_id->Name()->Data(), out_file_); in DumpEncodedValue()
552 fputs(method_id->Name()->Data(), out_file_); in DumpEncodedValue()
556 fputc('{', out_file_); in DumpEncodedValue()
559 fputc(' ', out_file_); in DumpEncodedValue()
562 fputs(" }", out_file_); in DumpEncodedValue()
570 fputs("null", out_file_); in DumpEncodedValue()
573 fputs(StrBool(data->GetBoolean()), out_file_); in DumpEncodedValue()
576 fputs("????", out_file_); in DumpEncodedValue()
586 fprintf(out_file_, "DEX file header:\n"); in DumpFileHeader()
588 fprintf(out_file_, "magic : '%s'\n", sanitized); in DumpFileHeader()
589 fprintf(out_file_, "checksum : %08x\n", header_->Checksum()); in DumpFileHeader()
590 fprintf(out_file_, "signature : %02x%02x...%02x%02x\n", in DumpFileHeader()
594 fprintf(out_file_, "file_size : %d\n", header_->FileSize()); in DumpFileHeader()
595 fprintf(out_file_, "header_size : %d\n", header_->HeaderSize()); in DumpFileHeader()
596 fprintf(out_file_, "link_size : %d\n", header_->LinkSize()); in DumpFileHeader()
597 fprintf(out_file_, "link_off : %d (0x%06x)\n", in DumpFileHeader()
599 fprintf(out_file_, "string_ids_size : %d\n", header_->StringIds().Size()); in DumpFileHeader()
600 fprintf(out_file_, "string_ids_off : %d (0x%06x)\n", in DumpFileHeader()
602 fprintf(out_file_, "type_ids_size : %d\n", header_->TypeIds().Size()); in DumpFileHeader()
603 fprintf(out_file_, "type_ids_off : %d (0x%06x)\n", in DumpFileHeader()
605 fprintf(out_file_, "proto_ids_size : %d\n", header_->ProtoIds().Size()); in DumpFileHeader()
606 fprintf(out_file_, "proto_ids_off : %d (0x%06x)\n", in DumpFileHeader()
608 fprintf(out_file_, "field_ids_size : %d\n", header_->FieldIds().Size()); in DumpFileHeader()
609 fprintf(out_file_, "field_ids_off : %d (0x%06x)\n", in DumpFileHeader()
611 fprintf(out_file_, "method_ids_size : %d\n", header_->MethodIds().Size()); in DumpFileHeader()
612 fprintf(out_file_, "method_ids_off : %d (0x%06x)\n", in DumpFileHeader()
614 fprintf(out_file_, "class_defs_size : %d\n", header_->ClassDefs().Size()); in DumpFileHeader()
615 fprintf(out_file_, "class_defs_off : %d (0x%06x)\n", in DumpFileHeader()
617 fprintf(out_file_, "data_size : %d\n", header_->DataSize()); in DumpFileHeader()
618 fprintf(out_file_, "data_off : %d (0x%06x)\n\n", in DumpFileHeader()
628 fprintf(out_file_, "Class #%d header:\n", idx); in DumpClassDef()
629 fprintf(out_file_, "class_idx : %d\n", class_def->ClassType()->GetIndex()); in DumpClassDef()
630 fprintf(out_file_, "access_flags : %d (0x%04x)\n", in DumpClassDef()
634 fprintf(out_file_, "superclass_idx : %d\n", superclass_idx); in DumpClassDef()
635 fprintf(out_file_, "interfaces_off : %d (0x%06x)\n", in DumpClassDef()
641 fprintf(out_file_, "source_file_idx : %d\n", source_file_offset); in DumpClassDef()
646 fprintf(out_file_, "annotations_off : %d (0x%06x)\n", in DumpClassDef()
649 fprintf(out_file_, "class_data_off : %d (0x%06x)\n", 0, 0); in DumpClassDef()
651 fprintf(out_file_, "class_data_off : %d (0x%06x)\n", in DumpClassDef()
658 fprintf(out_file_, "static_fields_size : %zu\n", class_data->StaticFields()->size()); in DumpClassDef()
660 fprintf(out_file_, "static_fields_size : 0\n"); in DumpClassDef()
663 fprintf(out_file_, "instance_fields_size: %zu\n", class_data->InstanceFields()->size()); in DumpClassDef()
665 fprintf(out_file_, "instance_fields_size: 0\n"); in DumpClassDef()
668 fprintf(out_file_, "direct_methods_size : %zu\n", class_data->DirectMethods()->size()); in DumpClassDef()
670 fprintf(out_file_, "direct_methods_size : 0\n"); in DumpClassDef()
673 fprintf(out_file_, "virtual_methods_size: %zu\n", class_data->VirtualMethods()->size()); in DumpClassDef()
675 fprintf(out_file_, "virtual_methods_size: 0\n"); in DumpClassDef()
677 fprintf(out_file_, "\n"); in DumpClassDef()
685 fputs(" empty-annotation-set\n", out_file_); in DumpAnnotationSetItem()
692 fputs(" ", out_file_); in DumpAnnotationSetItem()
694 case DexFile::kDexVisibilityBuild: fputs("VISIBILITY_BUILD ", out_file_); break; in DumpAnnotationSetItem()
695 case DexFile::kDexVisibilityRuntime: fputs("VISIBILITY_RUNTIME ", out_file_); break; in DumpAnnotationSetItem()
696 case DexFile::kDexVisibilitySystem: fputs("VISIBILITY_SYSTEM ", out_file_); break; in DumpAnnotationSetItem()
697 default: fputs("VISIBILITY_UNKNOWN ", out_file_); break; in DumpAnnotationSetItem()
700 fputc('\n', out_file_); in DumpAnnotationSetItem()
714 fprintf(out_file_, "Class #%d annotations:\n", idx); in DumpClassAnnotations()
723 fprintf(out_file_, "Annotations on class\n"); in DumpClassAnnotations()
733 fprintf(out_file_, "Annotations on field #%u '%s'\n", field_idx, field_name); in DumpClassAnnotations()
744 fprintf(out_file_, "Annotations on method #%u '%s'\n", method_idx, method_name); in DumpClassAnnotations()
755 fprintf(out_file_, "Annotations on method #%u '%s' parameters\n", method_idx, method_name); in DumpClassAnnotations()
758 fprintf(out_file_, "#%u\n", j); in DumpClassAnnotations()
765 fputc('\n', out_file_); in DumpClassAnnotations()
774 fprintf(out_file_, " #%d : '%s'\n", i, interface_name); in DumpInterface()
777 fprintf(out_file_, "<implements name=\"%s\">\n</implements>\n", dot.c_str()); in DumpInterface()
789 fprintf(out_file_, " catches : (none)\n"); in DumpCatches()
794 fprintf(out_file_, " catches : %d\n", tries_size); in DumpCatches()
800 fprintf(out_file_, " 0x%04x - 0x%04x\n", start, end); in DumpCatches()
804 fprintf(out_file_, " %s -> 0x%04x\n", descriptor, handler->GetAddress()); in DumpCatches()
818 fprintf(out_file_, "%06x:", code_offset + 0x10 + insn_idx * 2); in DumpInstruction()
825 fprintf(out_file_, " ... "); in DumpInstruction()
829 fprintf(out_file_, " %02x%02x", bytePtr[0], bytePtr[1]); in DumpInstruction()
832 fputs(" ", out_file_); in DumpInstruction()
840 fprintf(out_file_, "|%04x: packed-switch-data (%d units)", insn_idx, insn_width); in DumpInstruction()
842 fprintf(out_file_, "|%04x: sparse-switch-data (%d units)", insn_idx, insn_width); in DumpInstruction()
844 fprintf(out_file_, "|%04x: array-data (%d units)", insn_idx, insn_width); in DumpInstruction()
846 fprintf(out_file_, "|%04x: nop // spacer", insn_idx); in DumpInstruction()
849 fprintf(out_file_, "|%04x: %s", insn_idx, dec_insn->Name()); in DumpInstruction()
866 fprintf(out_file_, " v%d, v%d", dec_insn->VRegA(), dec_insn->VRegB()); in DumpInstruction()
869 fprintf(out_file_, " v%d, #int %d // #%x", in DumpInstruction()
873 fprintf(out_file_, " v%d", dec_insn->VRegA()); in DumpInstruction()
878 fprintf(out_file_, " %04x // %c%04x", in DumpInstruction()
885 fprintf(out_file_, " v%d, v%d", dec_insn->VRegA(), dec_insn->VRegB()); in DumpInstruction()
889 fprintf(out_file_, " v%d, %04x // %c%04x", dec_insn->VRegA(), in DumpInstruction()
896 fprintf(out_file_, " v%d, #int %d // #%x", in DumpInstruction()
903 fprintf(out_file_, " v%d, #int %d // #%x", in DumpInstruction()
907 fprintf(out_file_, " v%d, #long %" PRId64 " // #%x", in DumpInstruction()
913 fprintf(out_file_, " v%d, %s", dec_insn->VRegA(), index_buf.get()); in DumpInstruction()
916 fprintf(out_file_, " v%d, v%d, v%d", in DumpInstruction()
920 fprintf(out_file_, " v%d, v%d, #int %d // #%02x", in DumpInstruction()
926 fprintf(out_file_, " v%d, v%d, %04x // %c%04x", in DumpInstruction()
934 fprintf(out_file_, " v%d, v%d, #int %d // #%04x", in DumpInstruction()
941 fprintf(out_file_, " v%d, v%d, %s", in DumpInstruction()
945 fprintf(out_file_, " #%08x", dec_insn->VRegA()); in DumpInstruction()
954 fprintf(out_file_, " v%d, #float %g // #%08x", in DumpInstruction()
959 fprintf(out_file_, " v%d, %08x // +%08x", in DumpInstruction()
963 fprintf(out_file_, " v%d, v%d", dec_insn->VRegA(), dec_insn->VRegB()); in DumpInstruction()
972 fputs(" {", out_file_); in DumpInstruction()
975 fprintf(out_file_, "v%d", arg[i]); in DumpInstruction()
977 fprintf(out_file_, ", v%d", arg[i]); in DumpInstruction()
980 fprintf(out_file_, "}, %s", index_buf.get()); in DumpInstruction()
991 fputs(" {", out_file_); in DumpInstruction()
994 fprintf(out_file_, "v%d", dec_insn->VRegC() + i); in DumpInstruction()
996 fprintf(out_file_, ", v%d", dec_insn->VRegC() + i); in DumpInstruction()
999 fprintf(out_file_, "}, %s", index_buf.get()); in DumpInstruction()
1009 fprintf(out_file_, " v%d, #double %g // #%016" PRIx64, in DumpInstruction()
1017 fprintf(out_file_, " ???"); in DumpInstruction()
1021 fputc('\n', out_file_); in DumpInstruction()
1035 fprintf(out_file_, "%06x: |[%06x] %s.%s:%s\n", in DumpBytecodes()
1083 fprintf(out_file_, " registers : %d\n", code->RegistersSize()); in DumpCode()
1084 fprintf(out_file_, " ins : %d\n", code->InsSize()); in DumpCode()
1085 fprintf(out_file_, " outs : %d\n", code->OutsSize()); in DumpCode()
1086 fprintf(out_file_, " insns size : %d 16-bit code units\n", in DumpCode()
1099 fprintf(out_file_, " positions : \n"); in DumpCode()
1106 fprintf(out_file_, in DumpCode()
1113 fprintf(out_file_, " locals : \n"); in DumpCode()
1145 fprintf(out_file_, in DumpCode()
1177 fprintf(out_file_, " #%d : (in %s)\n", i, back_descriptor); in DumpMethod()
1178 fprintf(out_file_, " name : '%s'\n", name); in DumpMethod()
1179 fprintf(out_file_, " type : '%s'\n", type_descriptor); in DumpMethod()
1180 fprintf(out_file_, " access : 0x%04x (%s)\n", flags, access_str); in DumpMethod()
1182 fprintf(out_file_, " method_idx : %d\n", method_id->GetIndex()); in DumpMethod()
1185 fprintf(out_file_, in DumpMethod()
1191 fprintf(out_file_, " code : (none)\n"); in DumpMethod()
1193 fprintf(out_file_, " code -\n"); in DumpMethod()
1203 fputc('\n', out_file_); in DumpMethod()
1211 fprintf(out_file_, "<constructor name=\"%s\"\n", dot.c_str()); in DumpMethod()
1213 fprintf(out_file_, " type=\"%s\"\n", dot.c_str()); in DumpMethod()
1215 fprintf(out_file_, "<method name=\"%s\"\n", name); in DumpMethod()
1222 fprintf(out_file_, " return=\"%s\"\n", dot.c_str()); in DumpMethod()
1223 fprintf(out_file_, " abstract=%s\n", QuotedBool((flags & kAccAbstract) != 0)); in DumpMethod()
1224 fprintf(out_file_, " native=%s\n", QuotedBool((flags & kAccNative) != 0)); in DumpMethod()
1225 fprintf(out_file_, " synchronized=%s\n", QuotedBool( in DumpMethod()
1230 fprintf(out_file_, " static=%s\n", QuotedBool((flags & kAccStatic) != 0)); in DumpMethod()
1231 fprintf(out_file_, " final=%s\n", QuotedBool((flags & kAccFinal) != 0)); in DumpMethod()
1233 fprintf(out_file_, " visibility=%s\n>\n", QuotedVisibility(flags)); in DumpMethod()
1264 fprintf(out_file_, "<parameter name=\"arg%d\" type=\"%s\">\n" in DumpMethod()
1269 fprintf(out_file_, "</constructor>\n"); in DumpMethod()
1271 fprintf(out_file_, "</method>\n"); in DumpMethod()
1300 fprintf(out_file_, " #%d : (in %s)\n", i, back_descriptor); in DumpSField()
1301 fprintf(out_file_, " name : '%s'\n", name); in DumpSField()
1302 fprintf(out_file_, " type : '%s'\n", type_descriptor); in DumpSField()
1303 fprintf(out_file_, " access : 0x%04x (%s)\n", flags, access_str); in DumpSField()
1305 fprintf(out_file_, in DumpSField()
1311 fputs(" value : ", out_file_); in DumpSField()
1313 fputs("\n", out_file_); in DumpSField()
1316 fprintf(out_file_, "<field name=\"%s\"\n", name); in DumpSField()
1318 fprintf(out_file_, " type=\"%s\"\n", dot.c_str()); in DumpSField()
1319 fprintf(out_file_, " transient=%s\n", QuotedBool((flags & kAccTransient) != 0)); in DumpSField()
1320 fprintf(out_file_, " volatile=%s\n", QuotedBool((flags & kAccVolatile) != 0)); in DumpSField()
1322 fprintf(out_file_, " static=%s\n", QuotedBool((flags & kAccStatic) != 0)); in DumpSField()
1323 fprintf(out_file_, " final=%s\n", QuotedBool((flags & kAccFinal) != 0)); in DumpSField()
1325 fprintf(out_file_, " visibility=%s\n", QuotedVisibility(flags)); in DumpSField()
1327 fputs(" value=\"", out_file_); in DumpSField()
1329 fputs("\"\n", out_file_); in DumpSField()
1331 fputs(">\n</field>\n", out_file_); in DumpSField()
1400 fprintf(out_file_, "</package>\n"); in DumpClass()
1402 fprintf(out_file_, "<package name=\"%s\"\n>\n", mangle); in DumpClass()
1417 fprintf(out_file_, "Class #%d -\n", idx); in DumpClass()
1418 fprintf(out_file_, " Class descriptor : '%s'\n", class_descriptor); in DumpClass()
1419 fprintf(out_file_, " Access flags : 0x%04x (%s)\n", in DumpClass()
1422 fprintf(out_file_, " Superclass : '%s'\n", superclass_descriptor); in DumpClass()
1424 fprintf(out_file_, " Interfaces -\n"); in DumpClass()
1427 fprintf(out_file_, "<class name=\"%s\"\n", dot.c_str()); in DumpClass()
1430 fprintf(out_file_, " extends=\"%s\"\n", dot.c_str()); in DumpClass()
1432 fprintf(out_file_, " interface=%s\n", in DumpClass()
1434 fprintf(out_file_, " abstract=%s\n", in DumpClass()
1436 fprintf(out_file_, " static=%s\n", QuotedBool((class_def->GetAccessFlags() & kAccStatic) != 0)); in DumpClass()
1437 fprintf(out_file_, " final=%s\n", QuotedBool((class_def->GetAccessFlags() & kAccFinal) != 0)); in DumpClass()
1439 fprintf(out_file_, " visibility=%s\n", QuotedVisibility(class_def->GetAccessFlags())); in DumpClass()
1440 fprintf(out_file_, ">\n"); in DumpClass()
1462 fprintf(out_file_, " Static fields -\n"); in DumpClass()
1479 fprintf(out_file_, " Instance fields -\n"); in DumpClass()
1495 fprintf(out_file_, " Direct methods -\n"); in DumpClass()
1512 fprintf(out_file_, " Virtual methods -\n"); in DumpClass()
1534 fprintf(out_file_, " source_file_idx : %d (%s)\n\n", in DumpClass()
1537 fprintf(out_file_, "</class>\n"); in DumpClass()
1551 fprintf(out_file_, "<api>\n"); in DumpDexFile()
1563 fprintf(out_file_, "</package>\n"); in DumpDexFile()
1569 fprintf(out_file_, "</api>\n"); in DumpDexFile()
1899 fprintf(out_file_, "Opened '%s', DEX version '%.3s'\n", in ProcessDexFile()
1988 fprintf(out_file_, "Processing '%s'...\n", file_name); in ProcessFile()
2008 fprintf(out_file_, "Checksum verified\n"); in ProcessFile()