Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DEmailAsyncTask.java39 public abstract class EmailAsyncTask<Params, Progress, Result> {
138 private final InnerTask<Params, Progress, Result> mInnerTask;
146 mInnerTask = new InnerTask<Params, Progress, Result>(this); in EmailAsyncTask()
156 protected abstract Result doInBackground(Params... params); in doInBackground()
166 protected void onCancelled(Result result) { in onCancelled()
176 protected void onSuccess(Result result) { in onSuccess()
184 public final EmailAsyncTask<Params, Progress, Result> executeParallel(Params... params) { in executeParallel()
193 public final EmailAsyncTask<Params, Progress, Result> executeSerial(Params... params) { in executeSerial()
201 public final EmailAsyncTask<Params, Progress, Result> cancelPreviousAndExecuteParallel( in cancelPreviousAndExecuteParallel()
210 public final EmailAsyncTask<Params, Progress, Result> cancelPreviousAndExecuteSerial( in cancelPreviousAndExecuteSerial()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DContactStatusLoader.java40 public class ContactStatusLoader extends AsyncTaskLoader<ContactStatusLoader.Result> {
64 public static class Result { class in ContactStatusLoader
65 public static final Result UNKNOWN = new Result(null, PRESENCE_UNKNOWN_RESOURCE_ID, null);
76 public Result(Bitmap photo, int presenceResId, Uri lookupUri) { in Result() method in ContactStatusLoader.Result
94 public Result loadInBackground() { in loadInBackground()
103 public static Result getContactInfo(Context context, String emailAddress) { in getContactInfo()
110 return Result.UNKNOWN; in getContactInfo()
116 return Result.UNKNOWN; in getContactInfo()
144 return new Result(photo, presenceStatusResId, lookupUri); in getContactInfo()
DMailboxFinder.java49 private Controller.Result mControllerResults; // Not final, we null it out when done.
126 private class ControllerResults extends Controller.Result {
261 /* package */ Controller.Result getControllerResultsForTest() { in getControllerResultsForTest()
DEmailActivity.java71 private Controller.Result mControllerResult;
362 private class ControllerResult extends Controller.Result {
DMessageViewFragmentBase.java701 implements LoaderCallbacks<ContactStatusLoader.Result> {
716 public Loader<ContactStatusLoader.Result> onCreateLoader(int id, Bundle args) { in onCreateLoader()
722 public void onLoadFinished(Loader<ContactStatusLoader.Result> loader, in onLoadFinished()
723 ContactStatusLoader.Result result) { in onLoadFinished()
744 public void onLoaderReset(Loader<ContactStatusLoader.Result> loader) { in onLoaderReset()
1758 private class ControllerResults extends Controller.Result {
/packages/apps/Contacts/src/com/android/contacts/util/
DWeakAsyncTask.java23 public abstract class WeakAsyncTask<Params, Progress, Result, WeakTarget> extends
24 AsyncTask<Params, Progress, Result> {
42 protected final Result doInBackground(Params... params) { in doInBackground()
53 protected final void onPostExecute(Result result) { in onPostExecute()
64 protected abstract Result doInBackground(WeakTarget target, Params... params); in doInBackground()
66 protected void onPostExecute(WeakTarget target, Result result) { in onPostExecute()
/packages/apps/Email/tests/src/com/android/email/activity/
DContactStatusLoaderTest.java19 import com.android.email.activity.ContactStatusLoader.Result;
70 Result r = l.loadInBackground(); in testContactNotFound()
88 Result r = l.loadInBackground(); in testNull()
107 Result r = l.loadInBackground(); in testNoPhoto()
135 Result r = l.loadInBackground(); in testNull2()
155 Result r = l.loadInBackground(); in testWithPhoto()
DMailboxFinderTest.java88 for (Controller.Result callback : controller.getResultCallbacksForTest()) { in checkControllerResultRemoved()
/packages/apps/Email/src/com/android/email/
DController.java83 private final HashSet<Result> mListeners = new HashSet<Result>();
181 public void addResultCallback(Result listener) { in addResultCallback()
195 public void removeResultCallback(Result listener) { in removeResultCallback()
202 public Collection<Result> getResultCallbacksForTest() { in getResultCallbacksForTest()
455 for (Result listener : mListeners) { in loadMessageForView()
1066 for (Result listener : mListeners) {
1069 for (Result listener : mListeners) {
1229 public static abstract class Result {
1355 for (Result listener : mListeners) {
1378 for (Result l : mListeners) {
[all …]
DControllerResultUiThreadWrapper.java21 import com.android.email.Controller.Result;
33 public class ControllerResultUiThreadWrapper<T extends Result> extends Result {
DRefreshManager.java61 private final Controller.Result mControllerResult;
355 private class ControllerResult extends Controller.Result {
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DMultiSourceCorpus.java78 protected Result createResult(String query, ArrayList<SourceResult> results, int latency) { in createResult()
79 return new Result(query, results, latency); in createResult()
150 Result result = createResult(query, results, latency); in getSuggestions()
161 protected class Result extends ListSuggestionCursor implements CorpusResult { class in MultiSourceCorpus
167 public Result(String userQuery, ArrayList<SourceResult> results, int latency) { in Result() method in MultiSourceCorpus.Result
DWebCorpus.java164 protected Result createResult(String query, ArrayList<SourceResult> results, int latency) { in createResult()
168 protected class WebResult extends Result {
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockCorpus.java96 return new Result(query, mSource.getSuggestions(query, queryLimit, true)); in getSuggestions()
118 private class Result extends SuggestionCursorWrapper implements CorpusResult { class in MockCorpus
119 public Result(String userQuery, SuggestionCursor cursor) { in Result() method in MockCorpus.Result
DMockSource.java143 return new Result(query, cursor); in getSuggestions()
173 private class Result extends SuggestionCursorWrapper implements SourceResult { class in MockSource
175 public Result(String userQuery, SuggestionCursor cursor) { in Result() method in MockSource.Result
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerService.java205 public static final class Result { class in AndroidSpellCheckerService.SuggestionsGatherer
208 public Result(final String[] gatheredSuggestions, in Result() method in AndroidSpellCheckerService.SuggestionsGatherer.Result
293 public Result getResults(final int capitalizeType, final Locale locale) { in getResults()
350 return new Result(gatheredSuggestions, hasRecommendedSuggestions); in getResults()
DAndroidWordLevelSpellCheckerSession.java290 final SuggestionsGatherer.Result result = suggestionsGatherer.getResults( in onGetSuggestions()
/packages/apps/Email/tests/src/com/android/email/
DRefreshManagerTest.java429 public volatile Result mListener;
470 public void addResultCallback(Result listener) { in addResultCallback()
/packages/apps/Email/src/com/android/email/service/
DMailService.java91 private final Controller.Result mControllerCallback = new ControllerResults();
617 class ControllerResults extends Controller.Result {