예제 #1
0
 private void succeedEntries() {
   // Do not allocate the iterator here.
   for (int i = 0; i < entries.size(); ++i) {
     FrameEntry entry = entries.get(i);
     notifyCallbackSuccess(entry.callback);
     entry.release();
   }
   entries.clear();
 }
예제 #2
0
 @Override
 public void onCompleteFailure(Throwable x) {
   for (FrameEntry entry : entries) {
     notifyCallbackFailure(entry.callback, x);
     entry.release();
   }
   entries.clear();
   failure = x;
   onFailure(x);
 }