Lines Matching refs:loader

47          * @param id The ID whose loader is to be created.
54 * Called when a previously created loader has finished its load. Note
89 * @param loader The Loader that has finished.
92 public void onLoadFinished(Loader<D> loader, D data);
95 * Called when a previously created loader is being reset, and thus
99 * @param loader The Loader that is being reset.
101 public void onLoaderReset(Loader<D> loader);
105 * Ensures a loader is initialized and active. If the loader doesn't
107 * started) starts the loader. Otherwise the last created
108 * loader is re-used.
110 * <p>In either case, the given callback is associated with the loader, and
111 * will be called as the loader state changes. If at the point of call
112 * the caller is in its started state, and the requested loader
118 * @param id A unique identifier for this loader. Can be whatever you want.
120 * @param args Optional arguments to supply to the loader at construction.
121 * If a loader already exists (a new one does not need to be created), this
124 * changes in the state of the loader. Required.
133 * If a loader with the same id has previously been
134 * started it will automatically be destroyed when the new loader completes
135 * its work. The callback will be delivered before the old loader
138 * @param id A unique identifier for this loader. Can be whatever you want.
140 * @param args Optional arguments to supply to the loader at construction.
142 * changes in the state of the loader. Required.
148 * Stops and removes the loader with the given ID. If this loader
172 * Control whether the framework's internal loader manager debugging
174 * the framework performs loader operations.
194 // These are the currently active loaders. A loader is here
200 // to avoid destroying a loader while an application is still using it.
201 // It allows an application to restart a loader, but continue using its
202 // previously run loader until the new loader's data is available.
251 // If loader already started, don't restart.
291 // This loader was retained in a started state, but
300 // This loader has retained its data, either completely across
326 // Let the loader know we're done with it
384 public void onLoadCanceled(Loader<Object> loader) {
393 // This cancellation message is not coming from the current active loader.
403 // it. So now it is time, switch over to the new loader.
404 if (DEBUG) Log.v(TAG, " Switching to pending loader: " + pending);
413 public void onLoadComplete(Loader<Object> loader, Object data) {
422 // This data is not coming from the current active loader.
432 // it. So now it is time, switch over to the new loader.
433 if (DEBUG) Log.v(TAG, " Switching to pending loader: " + pending);
447 callOnLoadFinished(loader, data);
453 // We have now given the application the new loader with its
455 // loader. If there is a previous loader on the inactive list,
469 void callOnLoadFinished(Loader<Object> loader, Object data) {
477 if (DEBUG) Log.v(TAG, " onLoadFinished in " + loader + ": "
478 + loader.dataToString(data));
479 mCallbacks.onLoadFinished(loader, data);
542 Loader<Object> loader = callback.onCreateLoader(id, args);
543 info.mLoader = loader;
596 throw new IllegalStateException("Called while creating a loader");
606 if (DEBUG) Log.v(TAG, " Created new loader " + info);
608 if (DEBUG) Log.v(TAG, " Re-using existing loader " + info);
613 // If the loader has already generated its data, report it now.
646 throw new IllegalStateException("Called while creating a loader");
655 // This loader now has data... we are probably being
657 // yet destroyed the last inactive loader. So just do
659 if (DEBUG) Log.v(TAG, " Removing last inactive loader: " + info);
665 // We already have an inactive loader for this ID that we are
672 if (DEBUG) Log.v(TAG, " Current loader is stopped; replacing");
680 " Current loader is running; configuring pending loader");
682 if (DEBUG) Log.v(TAG, " Removing pending loader: " + info.mPendingLoader);
686 if (DEBUG) Log.v(TAG, " Enqueuing as new pending loader");
693 // Keep track of the previous instance of this loader so we can destroy
695 if (DEBUG) Log.v(TAG, " Making last loader inactive: " + info);
714 throw new IllegalStateException("Called while creating a loader");
742 throw new IllegalStateException("Called while creating a loader");