// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.olio.data.object.analytics; import android.content.Context; import android.content.res.Resources; import android.os.Environment; import com.olio.util.ALog; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.text.SimpleDateFormat; import java.util.Locale; // Referenced classes of package com.olio.data.object.analytics: // DumpsysBatteryStatsHelper class val.context implements Runnable { final DumpsysBatteryStatsHelper this$0; final Context val$context; final long val$currentTime; public void run() { Object obj3; ALog.d("DumpsysBatteryStatsHelper makeOlioDumpsysCopy", new Object[0]); Object obj = DumpsysBatteryStatsHelper.access$100().format(Long.valueOf(val$currentTime)); obj = String.format(Locale.US, "%s%s.txt", new Object[] { "olio_dumpsys_", obj }); String s1 = (new StringBuilder()).append(Environment.getExternalStorageDirectory()).append(File.separator).append(val$context.getResources().getString(com.olio.comunication.)).append(File.separator).toString(); String s = (new StringBuilder()).append(Environment.getExternalStorageDirectory()).append(File.separator).append(val$context.getResources().getString(com.olio.comunication.)).append(File.separator).toString(); Object obj2 = null; Object obj5 = null; Object obj1 = null; obj3 = null; Object obj4 = null; Exception exception; try { obj = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(s1, ((String) (obj)))))); } // Misplaced declaration of an exception variable catch (Object obj3) { obj = obj5; continue; /* Loop/switch isn't completed */ } finally { } _L4: obj1 = new BufferedReader(new InputStreamReader(new FileInputStream(new File(s, "olio_dumpsys.txt")))); _L3: obj2 = ((BufferedReader) (obj1)).readLine(); if (obj2 == null) goto _L2; else goto _L1 _L1: ((BufferedWriter) (obj)).write(((String) (obj2))); ((BufferedWriter) (obj)).newLine(); goto _L3 obj3; obj4 = obj1; _L7: obj1 = obj4; obj2 = obj; ALog.e("Exception getting batterystats", ((Throwable) (obj3)), new Object[0]); if (obj4 != null) { try { ((BufferedReader) (obj4)).close(); } // Misplaced declaration of an exception variable catch (Object obj1) { ALog.e("Exception closing buffer", ((Throwable) (obj1)), new Object[0]); } } if (obj != null) { try { ((BufferedWriter) (obj)).close(); } // Misplaced declaration of an exception variable catch (Object obj) { ALog.e("Exception closing buffer", ((Throwable) (obj)), new Object[0]); } } break MISSING_BLOCK_LABEL_275; _L2: if (obj1 != null) { try { ((BufferedReader) (obj1)).close(); } // Misplaced declaration of an exception variable catch (Object obj1) { ALog.e("Exception closing buffer", ((Throwable) (obj1)), new Object[0]); } } if (obj != null) { try { ((BufferedWriter) (obj)).close(); } // Misplaced declaration of an exception variable catch (Object obj) { ALog.e("Exception closing buffer", ((Throwable) (obj)), new Object[0]); } } break MISSING_BLOCK_LABEL_275; _L5: if (obj1 != null) { try { ((BufferedReader) (obj1)).close(); } // Misplaced declaration of an exception variable catch (Object obj1) { ALog.e("Exception closing buffer", ((Throwable) (obj1)), new Object[0]); } } if (obj2 != null) { try { ((BufferedWriter) (obj2)).close(); } // Misplaced declaration of an exception variable catch (Object obj1) { ALog.e("Exception closing buffer", ((Throwable) (obj1)), new Object[0]); } } throw obj; try { DumpsysBatteryStatsHelper.access$000(DumpsysBatteryStatsHelper.this).close(); obj = new FileOutputStream(new File(DumpsysBatteryStatsHelper.access$200(DumpsysBatteryStatsHelper.this), "olio_dumpsys.txt")); DumpsysBatteryStatsHelper.access$002(DumpsysBatteryStatsHelper.this, new BufferedWriter(new OutputStreamWriter(((java.io.OutputStream) (obj))))); return; } // Misplaced declaration of an exception variable catch (Object obj) { ALog.e("unable to close the writer while deleting the file", new Object[0]); } return; exception; obj1 = obj3; obj2 = obj; obj = exception; continue; /* Loop/switch isn't completed */ obj3; obj2 = obj; obj = obj3; if (true) goto _L5; else goto _L4 obj3; if (true) goto _L7; else goto _L6 _L6: } () { this$0 = final_dumpsysbatterystatshelper; val$currentTime = l; val$context = Context.this; super(); } }