Home
last modified time | relevance | path

Searched refs:mTotalBytes (Results 1 – 12 of 12) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java129 public long mTotalBytes; field in DownloadThread.DownloadInfoDelta
142 mTotalBytes = info.mTotalBytes; in DownloadInfoDelta()
156 values.put(Downloads.Impl.COLUMN_TOTAL_BYTES, mTotalBytes); in buildContentValues()
262 if (mInfoDelta.mTotalBytes == -1) { in run()
263 mInfoDelta.mTotalBytes = mInfoDelta.mCurrentBytes; in run()
444 final boolean hasLength = mInfoDelta.mTotalBytes != -1; in transferData()
481 if (mInfoDelta.mTotalBytes > 0) { in transferData()
483 final long newBytes = mInfoDelta.mTotalBytes - curSize; in transferData()
489 Os.posix_fallocate(outFd, 0, mInfoDelta.mTotalBytes); in transferData()
493 Os.ftruncate(outFd, mInfoDelta.mTotalBytes); in transferData()
[all …]
DDownloadInfo.java93 info.mTotalBytes = getLong(Downloads.Impl.COLUMN_TOTAL_BYTES); in updateFromDatabase()
228 public long mTotalBytes; field in DownloadInfo
339 return checkCanUseNetwork(mTotalBytes) == NetworkState.OK; in isReadyToDownload()
550 pw.printPair("mTotalBytes", mTotalBytes); in dump()
DDownloadNotifier.java214 if (info.mTotalBytes != -1) { in updateWithLocked()
216 total += info.mTotalBytes; in updateWithLocked()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java58 private long mTotalBytes; field in FileCache
121 mTotalBytes += entry.size; in store()
125 if (mTotalBytes > mCapacity) freeSomeSpaceIfNeed(MAX_DELETE_COUNT); in store()
152 mTotalBytes -= file.size; in lookup()
207 if (cursor.moveToNext()) mTotalBytes = cursor.getLong(0); in initialize()
211 if (mTotalBytes > mCapacity) freeSomeSpaceIfNeed(MAX_DELETE_COUNT); in initialize()
224 && mTotalBytes > mCapacity && cursor.moveToNext()) { in freeSomeSpaceIfNeed()
237 mTotalBytes -= size; in freeSomeSpaceIfNeed()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java78 private long mTotalBytes = 0; field in DownloadCache
159 if (mTotalBytes <= mCapacity) return; in freeSomeSpaceIfNeed()
164 && mTotalBytes > mCapacity && cursor.moveToNext()) { in freeSomeSpaceIfNeed()
175 mTotalBytes -= size; in freeSomeSpaceIfNeed()
190 mTotalBytes += size; in insertEntry()
212 mTotalBytes = 0; in initialize()
215 mTotalBytes = cursor.getLong(SUM_INDEX_SUM); in initialize()
220 if (mTotalBytes > mCapacity) freeSomeSpaceIfNeed(MAX_DELETE_COUNT); in initialize()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCacheStorageUsageInfo.java32 private long mTotalBytes; field in CacheStorageUsageInfo
68 mTotalBytes = blockSize * totalBlocks; in loadStorageInfo()
75 return mTotalBytes; in getTotalBytes()
88 return mTotalBytes - mUsedBytes; in getFreeBytes()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java274 mTransInfo.mTotalBytes)); in customizeViewContent()
293 this, mTransInfo.mTotalBytes)); in customizeViewContent()
312 mTransInfo.mTotalBytes)); in customizeViewContent()
432 if (mTransInfo.mTotalBytes == 0) { in updateProgressbar()
437 mProgressTransfer.setMax(mTransInfo.mTotalBytes); in updateProgressbar()
442 mPercentView.setText(BluetoothOppUtility.formatProgressText(mTransInfo.mTotalBytes, in updateProgressbar()
DBluetoothOppShareInfo.java63 public int mTotalBytes; field in BluetoothOppShareInfo
84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
DBluetoothOppTransferInfo.java44 int mTotalBytes; field in BluetoothOppTransferInfo
DBluetoothOppService.java599 Log.v(TAG, "TOTAL : " + info.mTotalBytes); in insertShare()
733 info.mTotalBytes = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in updateShare()
DBluetoothOppIncomingFileConfirmActivity.java132 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in createView()
DBluetoothOppUtility.java78 info.mTotalBytes = cursor.getInt(cursor in queryRecord()