コード例 #1
0
 public void run()
 {
   zzb.zzbZ("LoadBitmapFromDiskRunnable can't be executed in the main thread");
   boolean bool1 = false;
   boolean bool2 = false;
   Bitmap localBitmap = null;
   CountDownLatch localCountDownLatch = null;
   if (this.zzYZ != null) {}
   try
   {
     localBitmap = BitmapFactory.decodeFileDescriptor(this.zzYZ.getFileDescriptor());
     bool1 = bool2;
     Object localObject;
     return;
   }
   catch (OutOfMemoryError localOutOfMemoryError)
   {
     try
     {
       for (;;)
       {
         this.zzYZ.close();
         localCountDownLatch = new CountDownLatch(1);
         ImageManager.zzg(ImageManager.this).post(new ImageManager.zzf(ImageManager.this, this.mUri, localBitmap, bool1, localCountDownLatch));
         try
         {
           localCountDownLatch.await();
           return;
         }
         catch (InterruptedException localInterruptedException)
         {
           Log.w("ImageManager", "Latch interrupted while posting " + this.mUri);
         }
         localOutOfMemoryError = localOutOfMemoryError;
         Log.e("ImageManager", "OOM while loading bitmap for uri: " + this.mUri, localOutOfMemoryError);
         bool1 = true;
         localObject = localCountDownLatch;
       }
     }
     catch (IOException localIOException)
     {
       for (;;)
       {
         Log.e("ImageManager", "closed failed", localIOException);
       }
     }
   }
 }
コード例 #2
0
 public void run()
 {
   zzb.zzbY("OnBitmapLoadedRunnable must be executed in the main thread");
   boolean bool;
   if (this.mBitmap != null) {
     bool = true;
   }
   while (ImageManager.zzh(ImageManager.this) != null) {
     if (this.zzZb)
     {
       ImageManager.zzh(ImageManager.this).evictAll();
       System.gc();
       this.zzZb = false;
       ImageManager.zzg(ImageManager.this).post(this);
       return;
       bool = false;
     }
     else if (bool)
     {
       ImageManager.zzh(ImageManager.this).put(new zza.zza(this.mUri), this.mBitmap);
     }
   }
   ??? = (ImageManager.ImageReceiver)ImageManager.zze(ImageManager.this).remove(this.mUri);