int query ( int downloadId ) { synchronized ( mCurrentRequests ) { for ( DownloadRequest request : mCurrentRequests ) { if ( request . getDownloadId ( ) == downloadId ) { return request . getDownloadState ( ) ; } } } return DownloadManager . STATUS_NOT_FOUND ; }
Returns the current download state for a download request .