cq$a.java 13.4 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
import android.os.Bundle;
import android.support.v4.app.FragmentHostCallback;
import android.support.v4.app.LoaderManager.LoaderCallbacks;
import android.support.v4.content.Loader;
import android.support.v4.content.Loader.OnLoadCanceledListener;
import android.support.v4.content.Loader.OnLoadCompleteListener;
import android.support.v4.util.DebugUtils;
import android.support.v4.util.SparseArrayCompat;
import android.util.Log;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.lang.reflect.Modifier;

public final class cq$a
  implements Loader.OnLoadCanceledListener<Object>, Loader.OnLoadCompleteListener<Object>
{
  final int a;
  final Bundle b;
  LoaderManager.LoaderCallbacks<Object> c;
  public Loader<Object> d;
  public boolean e;
  boolean f;
  public Object g;
  public boolean h;
  public boolean i;
  public boolean j;
  public boolean k;
  boolean l;
  boolean m;
  a n;
  
  public cq$a(int paramInt, Bundle paramBundle, LoaderManager.LoaderCallbacks<Object> paramLoaderCallbacks)
  {
    this.a = paramBundle;
    this.b = paramLoaderCallbacks;
    LoaderManager.LoaderCallbacks localLoaderCallbacks;
    this.c = localLoaderCallbacks;
  }
  
  final void a()
  {
    if ((this.i) && (this.j)) {
      this.h = true;
    }
    do
    {
      do
      {
        return;
      } while (this.h);
      this.h = true;
      if (cq.a) {
        Log.v("LoaderManager", "  Starting: " + this);
      }
      if ((this.d == null) && (this.c != null)) {
        this.d = this.c.onCreateLoader(this.a, this.b);
      }
    } while (this.d == null);
    if ((this.d.getClass().isMemberClass()) && (!Modifier.isStatic(this.d.getClass().getModifiers()))) {
      throw new IllegalArgumentException("Object returned from onCreateLoader must not be a non-static inner member class: " + this.d);
    }
    if (!this.m)
    {
      this.d.registerListener(this.a, this);
      this.d.registerOnLoadCanceledListener(this);
      this.m = true;
    }
    this.d.startLoading();
  }
  
  public final void a(Loader<Object> paramLoader, Object paramObject)
  {
    String str;
    if (this.c != null)
    {
      if (this.o.h == null) {
        break label155;
      }
      str = this.o.h.f.u;
      this.o.h.f.u = "onLoadFinished";
    }
    for (;;)
    {
      try
      {
        if (cq.a) {
          Log.v("LoaderManager", "  onLoadFinished in " + paramLoader + ": " + paramLoader.dataToString(paramObject));
        }
        this.c.onLoadFinished(paramLoader, paramObject);
        if (this.o.h != null) {
          this.o.h.f.u = str;
        }
        this.f = true;
        return;
      }
      finally
      {
        if (this.o.h != null) {
          this.o.h.f.u = str;
        }
      }
      label155:
      str = null;
    }
  }
  
  public final void a(String paramString, FileDescriptor paramFileDescriptor, PrintWriter paramPrintWriter, String[] paramArrayOfString)
  {
    String str = paramString;
    paramString = this;
    for (;;)
    {
      paramPrintWriter.print(str);
      paramPrintWriter.print("mId=");
      paramPrintWriter.print(paramString.a);
      paramPrintWriter.print(" mArgs=");
      paramPrintWriter.println(paramString.b);
      paramPrintWriter.print(str);
      paramPrintWriter.print("mCallbacks=");
      paramPrintWriter.println(paramString.c);
      paramPrintWriter.print(str);
      paramPrintWriter.print("mLoader=");
      paramPrintWriter.println(paramString.d);
      if (paramString.d != null) {
        paramString.d.dump(str + "  ", paramFileDescriptor, paramPrintWriter, paramArrayOfString);
      }
      if ((paramString.e) || (paramString.f))
      {
        paramPrintWriter.print(str);
        paramPrintWriter.print("mHaveData=");
        paramPrintWriter.print(paramString.e);
        paramPrintWriter.print("  mDeliveredData=");
        paramPrintWriter.println(paramString.f);
        paramPrintWriter.print(str);
        paramPrintWriter.print("mData=");
        paramPrintWriter.println(paramString.g);
      }
      paramPrintWriter.print(str);
      paramPrintWriter.print("mStarted=");
      paramPrintWriter.print(paramString.h);
      paramPrintWriter.print(" mReportNextStart=");
      paramPrintWriter.print(paramString.k);
      paramPrintWriter.print(" mDestroyed=");
      paramPrintWriter.println(paramString.l);
      paramPrintWriter.print(str);
      paramPrintWriter.print("mRetaining=");
      paramPrintWriter.print(paramString.i);
      paramPrintWriter.print(" mRetainingStarted=");
      paramPrintWriter.print(paramString.j);
      paramPrintWriter.print(" mListenerRegistered=");
      paramPrintWriter.println(paramString.m);
      if (paramString.n == null) {
        break;
      }
      paramPrintWriter.print(str);
      paramPrintWriter.println("Pending Loader ");
      paramPrintWriter.print(paramString.n);
      paramPrintWriter.println(":");
      paramString = paramString.n;
      str = str + "  ";
    }
  }
  
  public final void b()
  {
    if (cq.a) {
      Log.v("LoaderManager", "  Stopping: " + this);
    }
    this.h = false;
    if ((!this.i) && (this.d != null) && (this.m))
    {
      this.m = false;
      this.d.unregisterListener(this);
      this.d.unregisterOnLoadCanceledListener(this);
      this.d.stopLoading();
    }
  }
  
  /* Error */
  final void c()
  {
    // Byte code:
    //   0: aload_0
    //   1: astore_2
    //   2: getstatic 60	cq:a	Z
    //   5: ifeq +25 -> 30
    //   8: ldc 62
    //   10: new 64	java/lang/StringBuilder
    //   13: dup
    //   14: ldc -10
    //   16: invokespecial 69	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   19: aload_2
    //   20: invokevirtual 73	java/lang/StringBuilder:append	(Ljava/lang/Object;)Ljava/lang/StringBuilder;
    //   23: invokevirtual 77	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   26: invokestatic 83	android/util/Log:v	(Ljava/lang/String;Ljava/lang/String;)I
    //   29: pop
    //   30: aload_2
    //   31: iconst_1
    //   32: putfield 216	cq$a:l	Z
    //   35: aload_2
    //   36: getfield 163	cq$a:f	Z
    //   39: istore_1
    //   40: aload_2
    //   41: iconst_0
    //   42: putfield 163	cq$a:f	Z
    //   45: aload_2
    //   46: getfield 49	cq$a:c	Landroid/support/v4/app/LoaderManager$LoaderCallbacks;
    //   49: ifnull +125 -> 174
    //   52: aload_2
    //   53: getfield 85	cq$a:d	Landroid/support/v4/content/Loader;
    //   56: ifnull +118 -> 174
    //   59: aload_2
    //   60: getfield 193	cq$a:e	Z
    //   63: ifeq +111 -> 174
    //   66: iload_1
    //   67: ifeq +107 -> 174
    //   70: getstatic 60	cq:a	Z
    //   73: ifeq +25 -> 98
    //   76: ldc 62
    //   78: new 64	java/lang/StringBuilder
    //   81: dup
    //   82: ldc -8
    //   84: invokespecial 69	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   87: aload_2
    //   88: invokevirtual 73	java/lang/StringBuilder:append	(Ljava/lang/Object;)Ljava/lang/StringBuilder;
    //   91: invokevirtual 77	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   94: invokestatic 83	android/util/Log:v	(Ljava/lang/String;Ljava/lang/String;)I
    //   97: pop
    //   98: aload_2
    //   99: getfield 40	cq$a:o	Lcq;
    //   102: getfield 135	cq:h	Landroid/support/v4/app/FragmentHostCallback;
    //   105: ifnull +171 -> 276
    //   108: aload_2
    //   109: getfield 40	cq$a:o	Lcq;
    //   112: getfield 135	cq:h	Landroid/support/v4/app/FragmentHostCallback;
    //   115: getfield 140	android/support/v4/app/FragmentHostCallback:f	Lcn;
    //   118: getfield 146	cn:u	Ljava/lang/String;
    //   121: astore_3
    //   122: aload_2
    //   123: getfield 40	cq$a:o	Lcq;
    //   126: getfield 135	cq:h	Landroid/support/v4/app/FragmentHostCallback;
    //   129: getfield 140	android/support/v4/app/FragmentHostCallback:f	Lcn;
    //   132: ldc -6
    //   134: putfield 146	cn:u	Ljava/lang/String;
    //   137: aload_2
    //   138: getfield 49	cq$a:c	Landroid/support/v4/app/LoaderManager$LoaderCallbacks;
    //   141: aload_2
    //   142: getfield 85	cq$a:d	Landroid/support/v4/content/Loader;
    //   145: invokeinterface 253 2 0
    //   150: aload_2
    //   151: getfield 40	cq$a:o	Lcq;
    //   154: getfield 135	cq:h	Landroid/support/v4/app/FragmentHostCallback;
    //   157: ifnull +17 -> 174
    //   160: aload_2
    //   161: getfield 40	cq$a:o	Lcq;
    //   164: getfield 135	cq:h	Landroid/support/v4/app/FragmentHostCallback;
    //   167: getfield 140	android/support/v4/app/FragmentHostCallback:f	Lcn;
    //   170: aload_3
    //   171: putfield 146	cn:u	Ljava/lang/String;
    //   174: aload_2
    //   175: aconst_null
    //   176: putfield 49	cq$a:c	Landroid/support/v4/app/LoaderManager$LoaderCallbacks;
    //   179: aload_2
    //   180: aconst_null
    //   181: putfield 206	cq$a:g	Ljava/lang/Object;
    //   184: aload_2
    //   185: iconst_0
    //   186: putfield 193	cq$a:e	Z
    //   189: aload_2
    //   190: getfield 85	cq$a:d	Landroid/support/v4/content/Loader;
    //   193: ifnull +38 -> 231
    //   196: aload_2
    //   197: getfield 118	cq$a:m	Z
    //   200: ifeq +24 -> 224
    //   203: aload_2
    //   204: iconst_0
    //   205: putfield 118	cq$a:m	Z
    //   208: aload_2
    //   209: getfield 85	cq$a:d	Landroid/support/v4/content/Loader;
    //   212: aload_2
    //   213: invokevirtual 238	android/support/v4/content/Loader:unregisterListener	(Landroid/support/v4/content/Loader$OnLoadCompleteListener;)V
    //   216: aload_2
    //   217: getfield 85	cq$a:d	Landroid/support/v4/content/Loader;
    //   220: aload_2
    //   221: invokevirtual 241	android/support/v4/content/Loader:unregisterOnLoadCanceledListener	(Landroid/support/v4/content/Loader$OnLoadCanceledListener;)V
    //   224: aload_2
    //   225: getfield 85	cq$a:d	Landroid/support/v4/content/Loader;
    //   228: invokevirtual 256	android/support/v4/content/Loader:reset	()V
    //   231: aload_2
    //   232: getfield 224	cq$a:n	Lcq$a;
    //   235: ifnull +40 -> 275
    //   238: aload_2
    //   239: getfield 224	cq$a:n	Lcq$a;
    //   242: astore_2
    //   243: goto -241 -> 2
    //   246: astore 4
    //   248: aload_2
    //   249: getfield 40	cq$a:o	Lcq;
    //   252: getfield 135	cq:h	Landroid/support/v4/app/FragmentHostCallback;
    //   255: ifnull +17 -> 272
    //   258: aload_2
    //   259: getfield 40	cq$a:o	Lcq;
    //   262: getfield 135	cq:h	Landroid/support/v4/app/FragmentHostCallback;
    //   265: getfield 140	android/support/v4/app/FragmentHostCallback:f	Lcn;
    //   268: aload_3
    //   269: putfield 146	cn:u	Ljava/lang/String;
    //   272: aload 4
    //   274: athrow
    //   275: return
    //   276: aconst_null
    //   277: astore_3
    //   278: goto -141 -> 137
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	281	0	this	a
    //   39	28	1	bool	boolean
    //   1	258	2	locala	a
    //   121	157	3	str	String
    //   246	27	4	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   137	150	246	finally
  }
  
  public final void onLoadCanceled(Loader<Object> paramLoader)
  {
    if (cq.a) {
      Log.v("LoaderManager", "onLoadCanceled: " + this);
    }
    if (this.l) {
      if (cq.a) {
        Log.v("LoaderManager", "  Ignoring load canceled -- destroyed");
      }
    }
    do
    {
      do
      {
        return;
        if (this.o.b.get(this.a) == this) {
          break;
        }
      } while (!cq.a);
      Log.v("LoaderManager", "  Ignoring load canceled -- not active");
      return;
      paramLoader = this.n;
    } while (paramLoader == null);
    if (cq.a) {
      Log.v("LoaderManager", "  Switching to pending loader: " + paramLoader);
    }
    this.n = null;
    this.o.b.put(this.a, null);
    c();
    this.o.a(paramLoader);
  }
  
  public final void onLoadComplete(Loader<Object> paramLoader, Object paramObject)
  {
    if (cq.a) {
      Log.v("LoaderManager", "onLoadComplete: " + this);
    }
    if (this.l) {
      if (cq.a) {
        Log.v("LoaderManager", "  Ignoring load complete -- destroyed");
      }
    }
    do
    {
      do
      {
        return;
        if (this.o.b.get(this.a) == this) {
          break;
        }
      } while (!cq.a);
      Log.v("LoaderManager", "  Ignoring load complete -- not active");
      return;
      a locala = this.n;
      if (locala != null)
      {
        if (cq.a) {
          Log.v("LoaderManager", "  Switching to pending loader: " + locala);
        }
        this.n = null;
        this.o.b.put(this.a, null);
        c();
        this.o.a(locala);
        return;
      }
      if ((this.g != paramObject) || (!this.e))
      {
        this.g = paramObject;
        this.e = true;
        if (this.h) {
          a(paramLoader, paramObject);
        }
      }
      paramLoader = (a)this.o.c.get(this.a);
      if ((paramLoader != null) && (paramLoader != this))
      {
        paramLoader.f = false;
        paramLoader.c();
        this.o.c.remove(this.a);
      }
    } while ((this.o.h == null) || (this.o.hasRunningLoaders()));
    this.o.h.f.a();
  }
  
  public final String toString()
  {
    StringBuilder localStringBuilder = new StringBuilder(64);
    localStringBuilder.append("LoaderInfo{");
    localStringBuilder.append(Integer.toHexString(System.identityHashCode(this)));
    localStringBuilder.append(" #");
    localStringBuilder.append(this.a);
    localStringBuilder.append(" : ");
    DebugUtils.buildShortClassTag(this.d, localStringBuilder);
    localStringBuilder.append("}}");
    return localStringBuilder.toString();
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/cq$a.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */