/packages/apps/Mms/src/com/android/mms/util/ |
PhoneNumberFormatter.java | 20 import android.os.AsyncTask; 33 AsyncTask<Void, Void, PhoneNumberFormattingTextWatcher> { 71 .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null);
|
/development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/ |
AsyncTask.java | 43 * https://android.googlesource.com/platform/frameworks/base/+/jb-release/core/java/android/os/AsyncTask.java 48 * There are 3 changes in this copy of AsyncTask: 55 * <p>AsyncTask enables proper and easy use of the UI thread. This class allows to 59 * <p>AsyncTask is designed to be a helper class around {@link Thread} and {@link Handler} 80 * <p>AsyncTask must be subclassed to be used. The subclass will override at least 86 * private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> { 114 * <h2>AsyncTask's generic types</h2> 127 * private class MyTask extends AsyncTask<Void, Void, Void> { ... } 167 * <li>The AsyncTask class must be loaded on the UI thread. This is done 178 * <p>AsyncTask guarantees that all callback calls are synchronized in such a way that the followin [all...] |
/developers/build/prebuilts/gradle/NetworkConnect/NetworkConnectSample/src/main/res/values/ |
base-strings.xml | 27 HttpURLConnection. AsyncTask is used to perform the fetch on a background thread.
|
/development/samples/browseable/NetworkConnect/res/values/ |
base-strings.xml | 27 HttpURLConnection. AsyncTask is used to perform the fetch on a background thread.
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
FlipperDreamSettings.java | 21 import android.os.AsyncTask; 22 import android.os.AsyncTask.Status; 44 private AsyncTask<Void, Void, Void> mLoadingTask; 66 mLoadingTask = new AsyncTask<Void, Void, Void>() {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
WeakAsyncTask.java | 19 import android.os.AsyncTask; 24 AsyncTask<Params, Progress, Result> {
|
/packages/apps/PhoneCommon/src/com/android/phone/common/ |
CallLogAsync.java | 20 import android.os.AsyncTask; 29 * It uses AsyncTask which has its own thread pool. 130 public AsyncTask addCall(AddCallArgs args) { 145 public AsyncTask getLastOutgoingCall(GetLastOutgoingCallArgs args) { 151 * AsyncTask to save calls in the DB. 153 private class AddCallTask extends AsyncTask<AddCallArgs, Void, Uri[]> { 195 * AsyncTask to get the last outgoing call from the DB. 197 private class GetLastOutgoingCallTask extends AsyncTask<GetLastOutgoingCallArgs, Void, String> {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
TargetPackageInfoGetterTask.java | 22 import android.os.AsyncTask; 26 AsyncTask<String, Void, PackageInfo> {
|
/cts/tests/tests/os/src/android/os/cts/ |
AsyncTaskTest.java | 21 import android.os.AsyncTask; 54 return mAsyncTask.getStatus() == AsyncTask.Status.FINISHED; 69 assertEquals(AsyncTask.Status.FINISHED, mAsyncTask.getStatus()); 137 assertEquals(AsyncTask.Status.PENDING, mAsyncTask.getStatus()); 139 assertEquals(AsyncTask.Status.RUNNING, mAsyncTask.getStatus()); 144 private static class MyAsyncTask extends AsyncTask<String, Integer, Long> {
|
/frameworks/base/core/java/android/os/ |
AsyncTask.java | 35 * <p>AsyncTask enables proper and easy use of the UI thread. This class allows to 39 * <p>AsyncTask is designed to be a helper class around {@link Thread} and {@link Handler} 60 * <p>AsyncTask must be subclassed to be used. The subclass will override at least 66 * private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> { 94 * <h2>AsyncTask's generic types</h2> 107 * private class MyTask extends AsyncTask<Void, Void, Void> { ... } 147 * <li>The AsyncTask class must be loaded on the UI thread. This is done 158 * <p>AsyncTask guarantees that all callback calls are synchronized in such a way that the following 177 public abstract class AsyncTask<Params, Progress, Result> { 178 private static final String LOG_TAG = "AsyncTask"; [all...] |
/frameworks/base/docs/html/training/articles/ |
perf-anr.jd | 2 page.tags="threads","asynctask" 95 operations is with the {@link android.os.AsyncTask} 96 class. Simply extend {@link android.os.AsyncTask} and implement the 97 {@link android.os.AsyncTask#doInBackground doInBackground()} method to perform the work. 99 {@link android.os.AsyncTask#publishProgress publishProgress()}, which invokes the 100 {@link android.os.AsyncTask#onProgressUpdate onProgressUpdate()} callback method. From your 101 implementation of {@link android.os.AsyncTask#onProgressUpdate onProgressUpdate()} (which 105 private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> { 132 call {@link android.os.AsyncTask#execute execute()}:</p> 139 <p>Although it's more complicated than {@link android.os.AsyncTask}, you might want to instea [all...] |
/frameworks/base/docs/html/training/location/ |
display-address.jd | 74 should call the method from the {@link android.os.AsyncTask#doInBackground 75 doInBackground()} method of an {@link android.os.AsyncTask}. 97 To create the background task, define a subclass of {@link android.os.AsyncTask} that calls 119 * A subclass of AsyncTask that calls getFromLocation() in the 127 AsyncTask<Location, Void, String> { 207 {@link android.os.AsyncTask#doInBackground doInBackground()} returns the result of the address 209 {@link android.os.AsyncTask#onPostExecute onPostExecute()}, where you do further processing 210 on the results. Since {@link android.os.AsyncTask#onPostExecute onPostExecute()} 216 AsyncTask<Location, Void, String> { 240 To get the address, call {@link android.os.AsyncTask#execute execute()}. For example, th [all...] |
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/src/com/example/android/actionbarcompat/searchview/ |
AppListFragment.java | 22 import android.os.AsyncTask; 59 // Start an AsyncTask to load the application's installed on the device 156 // Start a new AsyncTask which will retrieve the application icon and display it in 183 * Simple AsyncTask which retrieves the installed applications from the {@link PackageManager} 186 private class LoadApplicationsTask extends AsyncTask<Void, Void, List<ApplicationItem>> { 220 * Simple AsyncTask which loads the given application's logo from the {@link PackageManager} and 223 private class ApplicationIconTask extends AsyncTask<ApplicationItem, Void, Drawable> {
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ProviderStatusWatcher.java | 23 import android.os.AsyncTask; 223 mLoaderTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); 226 private class LoaderTask extends AsyncTask<Void, Void, Boolean> { 235 // Note here we can't just say "Status", as AsyncTask has the "Status" 292 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { 302 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
|
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
BusinessCardActivity.java | 22 import android.os.AsyncTask; 99 AsyncTask<Uri, Void, ContactInfo> task = new AsyncTask<Uri, Void, ContactInfo>() {
|
/external/chromium-trace/trace-viewer/src/tracing/importer/linux_perf/ |
disk_parser_test.js | 14 'AsyncTask #2-18830 [000] ...1 154578.668286: ext4_sync_file_enter: ' + 24 'AsyncTask #2-18830 [001] ...1 154578.670901: ext4_sync_file_exit: ' + 45 case 'ext4:AsyncTask #2':
|
/frameworks/base/core/java/android/print/ |
PrintFileDocumentAdapter.java | 20 import android.os.AsyncTask; 90 mWriteFileAsyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, 94 private final class WriteFileAsyncTask extends AsyncTask<Void, Void, Void> {
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ |
RemotePrintDocumentAdapter.java | 19 import android.os.AsyncTask; 84 new AsyncTask<Void, Void, Void>() { 127 }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Void[]) null);
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
ColladaScene.java | 33 import android.os.AsyncTask; 71 private class ColladaLoaderTask extends AsyncTask<String, Void, Boolean> { 111 private class A3DLoaderTask extends AsyncTask<String, Void, Boolean> {
|
/packages/apps/Contacts/src/com/android/contacts/ |
ContactsApplication.java | 26 import android.os.AsyncTask; 133 private class DelayedInitializer extends AsyncTask<Void, Void, Void> { 146 executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
FolderSelectionDialog.java | 25 import android.os.AsyncTask; 104 mRunner.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); 129 private class QueryRunner extends AsyncTask<Void, Void, Void> {
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
ContentProviderTask.java | 26 import android.os.AsyncTask; 34 * a list of {@link ContentProviderOperation}s. As with all {@link AsyncTask}s, subclasses should 42 public class ContentProviderTask extends AsyncTask<Void, Void, ContentProviderTask.Result> {
|
/cts/tests/src/android/app/cts/ |
ActivityManagerMemoryClassTestActivity.java | 20 import android.os.AsyncTask; 44 private class AllocateMemoryTask extends AsyncTask<Void, Void, Void> {
|
/cts/tests/tests/holo/src/android/holo/cts/ |
BitmapDeletionActivity.java | 26 import android.os.AsyncTask; 50 class DeleteBitmapsTask extends AsyncTask<Void, Void, Boolean> {
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
DefaultVideoPosterRequestHandler.java | 8 import android.os.AsyncTask; 44 AsyncTask.THREAD_POOL_EXECUTOR.execute(new Runnable() {
|