コード例 #1
0
ファイル: l.java プロジェクト: ZoneMo/test
 private int e(String paramString1, String paramString2, int paramInt)
 {
   int i;
   LinkedList localLinkedList1;
   LinkedList localLinkedList2;
   PInt localPInt;
   if (bm.ac(com.tencent.mm.sdk.platformtools.al.getContext()))
   {
     i = 16384;
     localLinkedList1 = new LinkedList();
     localLinkedList2 = new LinkedList();
     localPInt = new PInt();
     com.tencent.mm.sdk.platformtools.aa.d("MicroMsg.BackupServer", "backupChatMsg start " + paramString1);
     if ((!paramString1.equals(this.cKh.Hg())) || (this.cKh.Hh() == 0))
       break label160;
   }
   Cursor localCursor;
   int k;
   int n;
   Object localObject1;
   label160: for (int j = 1; ; j = 0)
   {
     localCursor = d.Gj().sw().vd(paramString1);
     if (!localCursor.moveToFirst())
       break label421;
     k = 0;
     n = j;
     localObject1 = localLinkedList1;
     if (localCursor.isAfterLast())
       break label428;
     if (!this.cKg.Hs())
       break label166;
     localCursor.close();
     return -1;
     i = 8192;
     break;
   }
   label166: ak localak = new ak();
   localak.convertFrom(localCursor);
   if (n != 0)
     if (localak.AH() != this.cKh.Hh())
       break label527;
   label520: label527: for (int i3 = 0; ; i3 = n)
   {
     localCursor.moveToNext();
     n = i3;
     break;
     boolean bool;
     if (paramInt > 0)
       bool = true;
     while (true)
     {
       try
       {
         ae localae2 = k.a(localak, false, paramString2, localPInt, localLinkedList2, bool);
         ae localae1 = localae2;
         paramInt--;
         if (localae1 == null)
           break label520;
         ((LinkedList)localObject1).add(localae1);
         int i1 = localae1.fzo;
         Object localObject2;
         if (localPInt.value > i)
         {
           com.tencent.mm.sdk.platformtools.aa.d("MicroMsg.BackupServer", "limitSize " + localPInt.value);
           int i2 = a((LinkedList)localObject1, localLinkedList2, localPInt.value);
           if (i2 < 0)
           {
             localCursor.close();
             return i2;
             bool = false;
             continue;
           }
         }
       }
       catch (Exception localException)
       {
         com.tencent.mm.sdk.platformtools.aa.aM("MicroMsg.BackupServer", "backupChatMsg %s" + localException);
         localae1 = null;
         continue;
         this.cKh.A(paramString1, i1);
         localPInt.value = 0;
         localObject2 = new LinkedList();
         localLinkedList2.clear();
       }
       while (true)
       {
         localCursor.moveToNext();
         k = i1;
         localObject1 = localObject2;
         break;
         label421: k = 0;
         localObject1 = localLinkedList1;
         label428: if (localPInt.value > 0)
         {
           int m = a((LinkedList)localObject1, localLinkedList2, localPInt.value);
           localPInt.value = 0;
           if (m < 0)
           {
             localCursor.close();
             return m;
           }
           this.cKh.A(paramString1, k);
         }
         localCursor.close();
         com.tencent.mm.sdk.platformtools.aa.d("MicroMsg.BackupServer", "backupChatMsg end " + paramString1);
         return 0;
         localObject2 = localObject1;
       }
       i1 = k;
     }
   }
 }