Home
last modified time | relevance | path

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

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java152 public long mTotalBytes; field in DownloadThread.DownloadInfoDelta
173 mTotalBytes = info.mTotalBytes; in DownloadInfoDelta()
187 values.put(Downloads.Impl.COLUMN_TOTAL_BYTES, mTotalBytes); in buildContentValues()
316 if (mInfoDelta.mTotalBytes == -1) { in run()
317 mInfoDelta.mTotalBytes = mInfoDelta.mCurrentBytes; in run()
365 && !mInfo.isMeteredAllowed(mInfoDelta.mTotalBytes)) { in run()
534 final boolean hasLength = mInfoDelta.mTotalBytes != -1; in transferData()
580 if (mInfoDelta.mTotalBytes > 0 && mStorage.isAllocationSupported(outFd)) { in transferData()
581 mStorage.allocateBytes(outFd, mInfoDelta.mTotalBytes); in transferData()
657 if (mInfoDelta.mTotalBytes != -1 && mInfoDelta.mCurrentBytes != mInfoDelta.mTotalBytes) { in transferData()
[all …]
DHelpers.java182 builder.setRequiredNetworkType(info.getRequiredNetworkType(info.mTotalBytes)); in scheduleJob()
192 if (info.mTotalBytes > 0) { in scheduleJob()
196 builder.setEstimatedNetworkBytes(info.mTotalBytes - info.mCurrentBytes, in scheduleJob()
199 builder.setEstimatedNetworkBytes(info.mTotalBytes, JobInfo.NETWORK_BYTES_UNKNOWN); in scheduleJob()
DDownloadInfo.java85 info.mTotalBytes = getLong(Downloads.Impl.COLUMN_TOTAL_BYTES); in updateFromDatabase()
174 public long mTotalBytes; field in DownloadInfo
428 pw.printPair("mTotalBytes", mTotalBytes); in dump()
DDownloadProvider.java981 downloadCompleted ? info.mTotalBytes : info.mCurrentBytes); in convertToMediaProviderValues()
/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/Settings/src/com/android/settings/deviceinfo/storage/
DStorageSummaryDonutPreferenceController.java43 private long mTotalBytes; field in StorageSummaryDonutPreferenceController
77 mTotalBytes = info.totalBytes; in displayPreference()
91 Formatter.formatShortFileSize(mContext, mTotalBytes))); in updateState()
92 mSummary.setPercent(mUsedBytes, mTotalBytes); in updateState()
116 mTotalBytes = total; in updateBytes()
/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.java266 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent()
285 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent()
307 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent()
407 if (mTransInfo.mTotalBytes != 0) { in updateProgressbar()
410 + mTransInfo.mTotalBytes + " (" + (int) ((mTransInfo.mCurrentBytes * 100) in updateProgressbar()
411 / mTransInfo.mTotalBytes) + "%)"); in updateProgressbar()
414 (int) ((mTransInfo.mCurrentBytes * 100) / mTransInfo.mTotalBytes)); in updateProgressbar()
419 mPercentView.setText(BluetoothOppUtility.formatProgressText(mTransInfo.mTotalBytes, in updateProgressbar()
DBluetoothOppShareInfo.java63 public long mTotalBytes; field in BluetoothOppShareInfo
84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
DBluetoothOppTransferInfo.java44 long mTotalBytes; field in BluetoothOppTransferInfo
DBluetoothOppService.java275 + info.mTotalBytes); in dump()
752 Log.v(TAG, "TOTAL : " + info.mTotalBytes); in insertShare()
888 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in updateShare()
DBluetoothOppIncomingFileConfirmActivity.java135 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in createView()
DBluetoothOppUtility.java102 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in fillRecord()
DBluetoothOppNotification.java595 .setSubText(Formatter.formatFileSize(mContext, info.mTotalBytes)) in updateIncomingFileConfirmNotification()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DStorageSummaryDonutPreferenceController.java39 private long mTotalBytes; field in StorageSummaryDonutPreferenceController
71 Formatter.formatShortFileSize(mContext, mTotalBytes))); in updateState()
72 summary.setPercent(mUsedBytes, mTotalBytes); in updateState()
101 mTotalBytes = total; in updateBytes()