Home
last modified time | relevance | path

Searched refs:downloadTask (Results 1 – 2 of 2) sorted by relevance

/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoManager.java390 PhotoTask downloadTask = sInstance.mPhotoTaskWorkQueue.poll(); in startDownload() local
393 if (null == downloadTask) { in startDownload()
394 downloadTask = new PhotoTask(); in startDownload()
398 downloadTask.initializeDownloaderTask(PhotoManager.sInstance, imageView, cacheFlag); in startDownload()
404 downloadTask.setByteBuffer(sInstance.mPhotoCache.get(downloadTask.getImageURL())); in startDownload()
407 if (null == downloadTask.getByteBuffer()) { in startDownload()
413 sInstance.mDownloadThreadPool.execute(downloadTask.getHTTPDownloadRunnable()); in startDownload()
426 sInstance.handleState(downloadTask, DOWNLOAD_COMPLETE); in startDownload()
430 return downloadTask; in startDownload()
438 void recycleTask(PhotoTask downloadTask) { in recycleTask() argument
[all …]
DPhotoDecodeRunnable.java104 PhotoDecodeRunnable(TaskRunnableDecodeMethods downloadTask) { in PhotoDecodeRunnable() argument
105 mPhotoTask = downloadTask; in PhotoDecodeRunnable()