/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageUsageProgressBarPreferenceController.java | 47 long mTotalBytes; field in StorageUsageProgressBarPreferenceController 83 mTotalBytes = mStorageStatsManager.getTotalBytes(mStorageEntry.getFsUuid()); in getStorageStatsAndUpdateUi() 84 mUsedBytes = mTotalBytes in getStorageStatsAndUpdateUi() 92 mTotalBytes = rootFile.getTotalSpace(); in getStorageStatsAndUpdateUi() 93 mUsedBytes = mTotalBytes - rootFile.getFreeSpace(); in getStorageStatsAndUpdateUi() 97 mTotalBytes = 0; in getStorageStatsAndUpdateUi() 119 getStorageSummary(R.string.storage_total_summary, mTotalBytes)); in updateState() 120 mUsageProgressBarPreference.setPercent(mUsedBytes, mTotalBytes); in updateState()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadThread.java | 153 public long mTotalBytes; field in DownloadThread.DownloadInfoDelta 174 mTotalBytes = info.mTotalBytes; in DownloadInfoDelta() 188 values.put(Downloads.Impl.COLUMN_TOTAL_BYTES, mTotalBytes); in buildContentValues() 307 if (mInfoDelta.mTotalBytes == -1) { in run() 308 mInfoDelta.mTotalBytes = mInfoDelta.mCurrentBytes; in run() 354 && !mInfo.isMeteredAllowed(mInfoDelta.mTotalBytes)) { in run() 523 final boolean hasLength = mInfoDelta.mTotalBytes != -1; in transferData() 569 if (mInfoDelta.mTotalBytes > 0 && mStorage.isAllocationSupported(outFd)) { in transferData() 570 mStorage.allocateBytes(outFd, mInfoDelta.mTotalBytes); in transferData() 646 if (mInfoDelta.mTotalBytes != -1 && mInfoDelta.mCurrentBytes != mInfoDelta.mTotalBytes) { in transferData() [all …]
|
D | Helpers.java | 182 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()
|
D | DownloadInfo.java | 85 info.mTotalBytes = getLong(Downloads.Impl.COLUMN_TOTAL_BYTES); in updateFromDatabase() 174 public long mTotalBytes; field in DownloadInfo 428 pw.printPair("mTotalBytes", mTotalBytes); in dump()
|
D | DownloadProvider.java | 988 downloadCompleted ? info.mTotalBytes : info.mCurrentBytes); in convertToMediaProviderValues()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | FileCache.java | 58 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/ |
D | DownloadCache.java | 78 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/ |
D | CacheStorageUsageInfo.java | 32 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/ |
D | BluetoothOppTransferActivity.java | 270 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent() 289 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent() 311 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent() 411 if (mTransInfo.mTotalBytes != 0) { in updateProgressbar() 414 + mTransInfo.mTotalBytes + " (" + (int) ((mTransInfo.mCurrentBytes * 100) in updateProgressbar() 415 / mTransInfo.mTotalBytes) + "%)"); in updateProgressbar() 418 (int) ((mTransInfo.mCurrentBytes * 100) / mTransInfo.mTotalBytes)); in updateProgressbar() 423 mPercentView.setText(BluetoothOppUtility.formatProgressText(mTransInfo.mTotalBytes, in updateProgressbar()
|
D | BluetoothOppShareInfo.java | 63 public long mTotalBytes; field in BluetoothOppShareInfo 84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
|
D | BluetoothOppTransferInfo.java | 44 long mTotalBytes; field in BluetoothOppTransferInfo
|
D | BluetoothOppService.java | 271 + info.mTotalBytes); in dump() 748 Log.v(TAG, "TOTAL : " + info.mTotalBytes); in insertShare() 886 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in updateShare()
|
D | BluetoothOppNotification.java | 615 .setSubText(Formatter.formatFileSize(mContext, info.mTotalBytes)) in updateIncomingFileConfirmNotification() 644 .setSubText(Formatter.formatFileSize(mContext, info.mTotalBytes)) in updateIncomingFileConfirmNotification()
|
D | BluetoothOppIncomingFileConfirmActivity.java | 139 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in createView()
|
D | BluetoothOppUtility.java | 102 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in fillRecord()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageUsageProgressBarPreferenceControllerTest.java | 92 assertThat(mController.mTotalBytes).isEqualTo(TOTAL_BYTES); in setSelectedStorageEntry_primaryStorage_getPrimaryStorageBytes()
|