Home
last modified time | relevance | path

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

/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/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/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppShareInfo.java63 public int mTotalBytes; field in BluetoothOppShareInfo
84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
DBluetoothOppTransferActivity.java275 mTransInfo.mTotalBytes)); in customizeViewContent()
294 this, mTransInfo.mTotalBytes)); in customizeViewContent()
313 mTransInfo.mTotalBytes)); in customizeViewContent()
427 if (mTransInfo.mTotalBytes == 0) { in updateProgressbar()
432 mProgressTransfer.setMax(mTransInfo.mTotalBytes); in updateProgressbar()
437 mPercentView.setText(BluetoothOppUtility.formatProgressText(mTransInfo.mTotalBytes, in updateProgressbar()
DBluetoothOppTransferInfo.java44 int mTotalBytes; field in BluetoothOppTransferInfo
DBluetoothOppIncomingFileConfirmActivity.java134 mTransInfo.mFileName, Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in createView()
DBluetoothOppUtility.java78 info.mTotalBytes = cursor.getInt(cursor in queryRecord()
DBluetoothOppService.java584 Log.v(TAG, "TOTAL : " + info.mTotalBytes); in insertShare()
718 info.mTotalBytes = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in updateShare()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java97 public long mTotalBytes = -1; field in DownloadThread.State
115 mTotalBytes = info.mTotalBytes; in State()
260 if (state.mCurrentBytes == state.mTotalBytes) { in executeDownload()
641 values.put(Downloads.Impl.COLUMN_TOTAL_BYTES, mInfo.mTotalBytes); in updateDatabaseFromHeaders()
677 state.mTotalBytes = mInfo.mTotalBytes = in readResponseHeaders()
737 state.mTotalBytes + ", bytes recvd so far: " + state.mCurrentBytes); in handleOtherStatus()
923 if (mInfo.mTotalBytes != -1) { in setupDestinationFile()
924 innerState.mHeaderContentLength = Long.toString(mInfo.mTotalBytes); in setupDestinationFile()
958 Log.i(Constants.TAG, " totalBytes = " + state.mTotalBytes); in addRequestHeaders()
DDownloadInfo.java84 info.mTotalBytes = getLong(Downloads.Impl.COLUMN_TOTAL_BYTES); in updateFromDatabase()
214 public long mTotalBytes; field in DownloadInfo
437 if (mTotalBytes <= 0) { in checkSizeAllowedForNetwork()
444 if (maxBytesOverMobile != null && mTotalBytes > maxBytesOverMobile) { in checkSizeAllowedForNetwork()
450 && mTotalBytes > recommendedMaxBytesOverMobile) { in checkSizeAllowedForNetwork()
514 pw.printPair("mTotalBytes", mTotalBytes); in dump()
DDownloadNotifier.java172 if (info.mTotalBytes != -1) { in updateWithLocked()
174 total += info.mTotalBytes; in updateWithLocked()