/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreference.java | 51 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { in StorageVolumePreference() argument 73 if (totalBytes <= 0) { in StorageVolumePreference() 74 totalBytes = path.getTotalSpace(); in StorageVolumePreference() 77 final long usedBytes = totalBytes - freeBytes; in StorageVolumePreference() 80 final String total = Formatter.formatFileSize(context, totalBytes); in StorageVolumePreference() 82 if (totalBytes > 0) { in StorageVolumePreference() 83 mUsedPercent = (int) ((usedBytes * 100) / totalBytes); in StorageVolumePreference()
|
D | PublicVolumeSettings.java | 168 final long totalBytes = file.getTotalSpace(); in update() local 170 final long usedBytes = totalBytes - freeBytes; in update() 176 Formatter.formatFileSize(context, totalBytes))); in update() 177 mSummary.setPercent(usedBytes, totalBytes); in update()
|
D | StorageDashboardFragment.java | 127 long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes() 128 mSummaryController.updateBytes(privateUsedBytes, mStorageInfo.totalBytes); in onReceivedSizes() 131 mPreferenceController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes() 136 userController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
|
D | StorageSummaryPreference.java | 40 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument 41 mPercent = MathUtils.constrain((int) ((usedBytes * 100) / totalBytes), in setPercent()
|
D | StorageSettings.java | 535 double privateUsedBytes = info.totalBytes - info.freeBytes; in updateSummary() 537 percentageFormat.format(privateUsedBytes / info.totalBytes), in updateSummary()
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractPublicApiTest.java | 176 int totalBytes = 0; in runUntilProgress() local 185 totalBytes = cursor.getInt( in runUntilProgress() 191 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); in runUntilProgress() 192 if (totalBytes == 0) { in runUntilProgress() 196 if (numBytesReceivedSoFar * 100 / totalBytes >= progress) { in runUntilProgress() 205 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); in runUntilProgress()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | CachedStorageValuesHelper.java | 72 final long totalBytes = mSharedPreferences.getLong(TOTAL_BYTES_KEY, -1); in getCachedPrivateStorageInfo() local 73 if (freeBytes < 0 || totalBytes < 0) { in getCachedPrivateStorageInfo() 77 return new PrivateStorageInfo(freeBytes, totalBytes); in getCachedPrivateStorageInfo() 138 .putLong(TOTAL_BYTES_KEY, storageInfo.totalBytes) in cacheResult() 145 .putLong(EXTERNAL_TOTAL_BYTES, result.externalStats.totalBytes) in cacheResult()
|
D | StorageSummaryDonutPreference.java | 63 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument 64 if (totalBytes == 0) { in setPercent() 68 mPercent = usedBytes / (double) totalBytes; in setPercent()
|
D | StorageItemPreferenceController.java | 264 data.externalStats.totalBytes in onLoadFinished() 283 attributedSize += otherData.externalStats.totalBytes in onLoadFinished()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadInfo.java | 303 public int getRequiredNetworkType(long totalBytes) { in getRequiredNetworkType() argument 310 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) { in getRequiredNetworkType() 313 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile() in getRequiredNetworkType() 371 public boolean isMeteredAllowed(long totalBytes) { in isMeteredAllowed() argument 372 return getRequiredNetworkType(totalBytes) != JobInfo.NETWORK_TYPE_UNMETERED; in isMeteredAllowed()
|
D | DownloadNotifier.java | 298 final long totalBytes = cursor.getLong(UpdateQuery.TOTAL_BYTES); in updateWithLocked() local 300 if (totalBytes != -1) { in updateWithLocked() 302 total += totalBytes; in updateWithLocked()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | DumpDatabaseAction.java | 65 int totalBytes = 0; in executeAction() local 74 totalBytes += bytesRead; in executeAction() 97 ", copy size: " + totalBytes); in executeAction()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferAdapter.java | 102 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in bindView() local 112 mContext, totalBytes)); in bindView() 115 mContext, totalBytes)); in bindView()
|
D | BluetoothOppShareInfo.java | 73 long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) { in BluetoothOppShareInfo() argument 84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
|
D | BluetoothOppUtility.java | 273 public static String formatProgressText(long totalBytes, long currentBytes) { in formatProgressText() argument 274 if (totalBytes <= 0) { in formatProgressText() 277 long progress = currentBytes * 100 / totalBytes; in formatProgressText()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | ManageCachePage.java | 368 long totalBytes = mCacheStorageInfo.getTotalBytes(); in refreshCacheStorageInfo() local 374 if (totalBytes == 0) { in refreshCacheStorageInfo() 382 progressBar.setProgress((int) (usedBytes * PROGRESS_BAR_MAX / totalBytes)); in refreshCacheStorageInfo() 384 (int) (expectedBytes * PROGRESS_BAR_MAX / totalBytes)); in refreshCacheStorageInfo()
|
/packages/services/Car/evs/sampleDriver/ |
D | bufferCopy.cpp | 78 const unsigned totalBytes = sizeY + sizeColor; in fillNV21FromNV21() local 81 memcpy(tgt, imgData, totalBytes); in fillNV21FromNV21()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 148 assertThat(result.get(PRIMARY_USER_ID).externalStats.totalBytes).isEqualTo(9L); in testMultipleUsers() 149 assertThat(result.get(SECONDARY_USER_ID).externalStats.totalBytes).isEqualTo(10L); in testMultipleUsers()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | CachedStorageValuesHelperTest.java | 100 assertThat(info.totalBytes).isEqualTo(6000L); in getCachedPrivateStorageInfo_cachedValuesAreLoaded() 135 assertThat(primaryResult.externalStats.totalBytes).isEqualTo(222222L); in getCachedAppsStorageResult_cachedValuesAreLoaded()
|
D | VolumeSizesLoaderTest.java | 28 assertThat(storageInfo.totalBytes).isEqualTo(10000L); in getVolumeSize_getsValidSizes()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | AppDataUsage.java | 301 final long totalBytes = backgroundBytes + foregroundBytes; in bindData() local 304 mTotalUsage.setSummary(Formatter.formatFileSize(context, totalBytes)); in bindData()
|
D | DataUsageList.java | 308 final long totalBytes = entry != null ? entry.rxBytes + entry.txBytes : 0; in updateDetailData() local 309 final String totalPhrase = Formatter.formatFileSize(context, totalBytes); in updateDetailData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
D | StorageProfileFragmentTest.java | 72 assertThat(extractedResult.externalStats.totalBytes).isEqualTo(6); in verifyAppSizesAreNotZeroedOut()
|
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
D | TunerRecordingSessionWorker.java | 589 long totalBytes, long startTime, long endTime) { in insertRecordedProgram() argument 596 .setDataBytes(totalBytes) in insertRecordedProgram()
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageManagementJobService.java | 124 long lowStorageThreshold = (info.totalBytes * DEFAULT_LOW_FREE_PERCENT) / 100; in volumeNeedsManagement()
|