/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageUsageProgressBarPreferenceController.java | 47 long mTotalBytes; field in StorageUsageProgressBarPreferenceController 80 mTotalBytes = cachedData.totalSize; in getStorageStatsAndUpdateUi() 94 mTotalBytes = mStorageStatsManager.getTotalBytes(mStorageEntry.getFsUuid()); in getStorageStatsAndUpdateUi() 95 mUsedBytes = mTotalBytes in getStorageStatsAndUpdateUi() 103 mTotalBytes = rootFile.getTotalSpace(); in getStorageStatsAndUpdateUi() 104 mUsedBytes = mTotalBytes - rootFile.getFreeSpace(); in getStorageStatsAndUpdateUi() 108 mTotalBytes = 0; in getStorageStatsAndUpdateUi() 130 mContext, R.string.storage_total_summary, mTotalBytes)); in updateState() 131 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() 524 final boolean hasLength = mInfoDelta.mTotalBytes != -1; in transferData() 570 if (mInfoDelta.mTotalBytes > 0 && mStorage.isAllocationSupported(outFd)) { in transferData() 571 mStorage.allocateBytes(outFd, mInfoDelta.mTotalBytes); in transferData() 647 if (mInfoDelta.mTotalBytes != -1 && mInfoDelta.mCurrentBytes != mInfoDelta.mTotalBytes) { in transferData() [all …]
|
D | Helpers.java | 192 builder.setRequiredNetworkType(info.getRequiredNetworkType(info.mTotalBytes)); in scheduleJob() 202 if (info.mTotalBytes > 0) { in scheduleJob() 207 if (info.mTotalBytes > info.mCurrentBytes) { in scheduleJob() 208 remainingBytes = info.mTotalBytes - info.mCurrentBytes; in scheduleJob() 217 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 | 1006 downloadCompleted ? info.mTotalBytes : info.mCurrentBytes); in convertToMediaProviderValues()
|
/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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferActivity.java | 270 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent() 292 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent() 317 Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in customizeViewContent() 423 if (mTransInfo.mTotalBytes != 0) { in updateProgressbar() 429 + mTransInfo.mTotalBytes in updateProgressbar() 431 + (int) ((mTransInfo.mCurrentBytes * 100) / mTransInfo.mTotalBytes) in updateProgressbar() 434 (int) ((mTransInfo.mCurrentBytes * 100) / mTransInfo.mTotalBytes)); in updateProgressbar() 441 mTransInfo.mTotalBytes, mTransInfo.mCurrentBytes)); in updateProgressbar()
|
D | BluetoothOppShareInfo.java | 63 public long mTotalBytes; field in BluetoothOppShareInfo 96 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
|
D | BluetoothOppTransferInfo.java | 44 long mTotalBytes; field in BluetoothOppTransferInfo
|
D | BluetoothOppIncomingFileConfirmActivity.java | 148 .setText(Formatter.formatFileSize(this, mTransInfo.mTotalBytes)); in createView()
|
D | BluetoothOppService.java | 325 + info.mTotalBytes); in dump() 879 Log.v(TAG, "TOTAL : " + info.mTotalBytes); in insertShare() 1034 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in updateShare()
|
D | BluetoothOppNotification.java | 761 .setSubText(Formatter.formatFileSize(mContext, info.mTotalBytes)) in updateIncomingFileConfirmNotification() 798 .setSubText(Formatter.formatFileSize(mContext, info.mTotalBytes)) in updateIncomingFileConfirmNotification()
|
D | BluetoothOppUtility.java | 118 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in fillRecord()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferTest.java | 78 private final int mTotalBytes = 1023; field in BluetoothOppTransferTest 125 mTotalBytes, in setUp() 157 mTotalBytes, in onShareAdded_checkFirstPendingShare() 251 mTotalBytes, in eventHandler_handleMessage_MSG_SHARE_COMPLETE_shareAdded() 303 mTotalBytes, in eventHandler_handleMessage_MSG_SHARE_INTERRUPTED_batchFailed() 335 mTotalBytes, in eventHandler_handleMessage_MSG_CONNECT_TIMEOUT()
|
D | BluetoothOppShareInfoTest.java | 79 assertThat(mBluetoothOppShareInfo.mTotalBytes).isEqualTo(totalBytes); in testConstructor()
|
D | BluetoothOppUtilityTest.java | 320 assertThat(info.mTotalBytes).isEqualTo(totalBytesValue); in fillRecord_filledAllProperties()
|
/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()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsCollection.java | 118 private long mTotalBytes; field in NetworkStatsCollection 155 mTotalBytes = 0; in reset() 184 return mTotalBytes; in getTotalBytes() 746 mTotalBytes += totalBytes; in noteRecordedHistory()
|