Home | History | Annotate | Download | only in test

Lines Matching full:loader

19 import android.content.Loader;
20 import android.content.Loader.OnLoadCompleteListener;
29 * A convenience class for testing {@link Loader}s. This test case
30 * provides a simple way to synchronously get the result from a Loader making
31 * it easy to assert that the Loader returns the expected result.
49 * Runs a Loader synchronously and returns the result of the load. The loader will
52 * @param loader The loader to run synchronously
53 * @return The result from the loader
55 public <T> T getLoaderResultSynchronously(final Loader<T> loader) {
56 // The test thread blocks on this queue until the loader puts it's result in
63 public void onLoadComplete(Loader<T> completedLoader, T data) {
64 // Shut the loader down
80 loader.registerListener(0, listener);
81 loader.startLoading();