Home | History | Annotate | Download | only in downloads

Lines Matching refs:mInfo

88     private final DownloadInfo mInfo;
99 mInfo = info;
108 String userAgent = mInfo.mUserAgent;
169 mNotifier.notifyDownloadSpeed(mInfo.mId, 0);
176 if (DownloadInfo.queryDownloadStatus(mContext.getContentResolver(), mInfo.mId)
178 Log.d(TAG, "Download " + mInfo.mId + " already finished; skipping");
182 State state = new State(mInfo);
185 int numFailed = mInfo.mNumFailed;
193 wakeLock.setWorkSource(new WorkSource(mInfo.mUid));
199 Log.i(Constants.TAG, "Download " + mInfo.mId + " starting");
203 final NetworkInfo info = mSystemFacade.getActiveNetworkInfo(mInfo.mUid);
211 TrafficStats.setThreadStatsUid(mInfo.mUid);
227 String msg = "Aborting request for download " + mInfo.mId + ": " + errorMsg;
249 final NetworkInfo info = mSystemFacade.getActiveNetworkInfo(mInfo.mUid);
264 String msg = "Exception for id " + mInfo.mId + ": " + errorMsg;
279 Log.i(Constants.TAG, "Download " + mInfo.mId + " finished with status "
303 mInfo.mId + "; already completed");
446 final NetworkState networkUsable = mInfo.checkCanUseNetwork();
451 mInfo.notifyPauseDueToSize(true);
454 mInfo.notifyPauseDueToSize(false);
481 + mInfo.mUri);
517 synchronized (mInfo) {
518 if (mInfo.mControl == Downloads.Impl.CONTROL_PAUSED) {
522 if (mInfo.mStatus == Downloads.Impl.STATUS_CANCELED || mInfo.mDeleted) {
552 mNotifier.notifyDownloadSpeed(mInfo.mId, state.mSpeed);
563 mContext.getContentResolver().update(mInfo.getAllDownloadsUri(), values, null, null);
577 mInfo.mDestination, state.mFilename, bytesRead);
588 mStorageManager.verifySpace(mInfo.mDestination, state.mFilename, bytesRead);
608 mContext.getContentResolver().update(mInfo.getAllDownloadsUri(), values, null, null);
624 return (state.mCurrentBytes > 0 && !mInfo.mNoIntegrity && state.mHeaderETag == null)
646 mContext.getContentResolver().update(mInfo.getAllDownloadsUri(), values, null, null);
669 mInfo.mUri,
670 mInfo.mHint,
674 mInfo.mDestination,
696 values.put(Downloads.Impl.COLUMN_TOTAL_BYTES, mInfo.mTotalBytes);
697 mContext.getContentResolver().update(mInfo.getAllDownloadsUri(), values, null, null);
723 mInfo.mTotalBytes = state.mContentLength;
727 if (!mInfo.mNoIntegrity && noSizeInfo) {
755 Log.i(Constants.TAG, "have run thread before for id: " + mInfo.mId +
768 Log.i(Constants.TAG, "resuming download for id: " + mInfo.mId +
781 Log.i(Constants.TAG, "resuming download for id: " + mInfo.mId +
784 } else if (mInfo.mETag == null && !mInfo.mNoIntegrity) {
796 Log.i(Constants.TAG, "resuming download for id: " + mInfo.mId +
800 if (mInfo.mTotalBytes != -1) {
801 state.mContentLength = mInfo.mTotalBytes;
803 state.mHeaderETag = mInfo.mETag;
806 Log.i(Constants.TAG, "resuming download for id: " + mInfo.mId +
819 for (Pair<String, String> header : mInfo.getHeaders()) {
847 mInfo.sendIntentIfRequested();
861 if (!TextUtils.equals(mInfo.mUri, state.mRequestUri)) {
869 mContext.getContentResolver().update(mInfo.getAllDownloadsUri(), values, null, null);
876 if (uid == mInfo.mUid) {