int flags = target.checkImage(e.image, e); if ((flags & ImageObserver.ABORT) != 0) e.status = ABORTED; else if ((flags & ImageObserver.ERROR) != 0) e.status = ERRORED; else if ((flags & ImageObserver.ALLBITS) != 0) e.status = COMPLETE; }
  public int statusAll(boolean load)  {    int result = 0;    MediaEntry e = head;    while (e != null)      {        if (load && e.status == 0)	  {            boolean complete = target.prepareImage(e.image, e);            if (complete)              e.status = COMPLETE;            else	    e.status = LOADING;	  }        result |= e.status;	e = e.next;      }    return result;  }