예제 #1
0
 public static String calculateCrashDescriptor(BufferedReader bufferedreader, Writer writer, com.amazon.device.utils.DetUtil.HeaderProcessor headerprocessor, String s)
     throws Exception
 {
     bufferedreader.mark(25600);
     writer = new char[25600];
     bufferedreader.read(writer, 0, 25600);
     StringBuilder stringbuilder;
     bufferedreader.reset();
     headerprocessor = new BufferedReader(new CharArrayReader(writer), 1);
     stringbuilder = new StringBuilder();
     if (s != null)
     {
         stringbuilder.append(s);
     }
     int i = 0;
     writer = headerprocessor.readLine();
     REGEX_GROUP_ID = 0;
     if (writer != null)
     {
         bufferedreader = writer;
         if (!writer.startsWith("***"))
         {
             break MISSING_BLOCK_LABEL_135;
         }
         REGEX_GROUP_ID = 4;
         for (; !headerprocessor.readLine().startsWith("backtrace:") && i < 50; i++) { }
         break MISSING_BLOCK_LABEL_130;
     }
       goto _L1
 protected void addSpecificHeaders(Artifact artifact, BufferedReader bufferedreader, Writer writer)
     throws Exception {
   mMetricsHeaderProcessor.setProcessTag(artifact.getTag());
   mJavaHeaderProcessor.process("ContentType", "JavaCrash", writer);
   mDetUtil.processHeaders(bufferedreader, writer, mJavaHeaderProcessor);
   if (JAVA_STACK_TRACE_TAGS.contains(artifact.getTag())) {
     bufferedreader =
         extractJavaCrashInfoFromCrashBody(bufferedreader, writer, mJavaHeaderProcessor);
     if (bufferedreader != null) {
       Integer integer = mCrashDuplicateCount.getCount(bufferedreader);
       if (integer != null && integer.intValue() > 1) {
         mJavaHeaderProcessor.process("CrashDuplicateCount", integer.toString(), writer);
       }
     }
     artifact.setCrashDescriptor(bufferedreader);
   }
 }
 protected String extractJavaCrashInfoFromCrashBody(
     BufferedReader bufferedreader,
     Writer writer,
     com.amazon.device.utils.DetUtil.HeaderProcessor headerprocessor)
     throws Exception {
   bufferedreader =
       CrashDescriptorUtil.calculateCrashDescriptor(
           bufferedreader, writer, headerprocessor, mMetricsHeaderProcessor.getProcessName());
   headerprocessor.process("CrashDescriptor", bufferedreader, writer);
   return bufferedreader;
 }
예제 #4
0
 protected void addSpecificHeaders(Artifact artifact, BufferedReader bufferedreader, Writer writer)
     throws Exception {
   mDiagnosticHeaderProcessor.process("ContentType", "Diagnostic", writer);
   mDetUtil.processHeaders(bufferedreader, writer, mDiagnosticHeaderProcessor);
 }