/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractPublicApiTest.java | 177 int totalBytes = 0; in runUntilProgress() local 186 totalBytes = cursor.getInt( in runUntilProgress() 192 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); in runUntilProgress() 193 if (totalBytes == 0) { in runUntilProgress() 197 if (numBytesReceivedSoFar * 100 / totalBytes >= progress) { in runUntilProgress() 206 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); in runUntilProgress()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppDataUsagePreferenceController.java | 117 long totalBytes = 0; in getDataSummary() local 120 totalBytes += data.getTotalUsage(); in getDataSummary() 126 if (totalBytes == 0) { in getDataSummary() 130 Formatter.formatFileSize(mContext, totalBytes, Formatter.FLAG_IEC_UNITS), in getDataSummary()
|
/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/Settings/src/com/android/settings/deviceinfo/ |
D | PublicVolumeSettings.java | 161 final long totalBytes = file.getTotalSpace(); in update() local 163 final long usedBytes = totalBytes - freeBytes; in update() 170 Formatter.formatFileSize(context, totalBytes))); in update() 171 mSummary.setPercent(usedBytes, totalBytes); in update()
|
D | StorageSummaryPreference.java | 41 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument 42 mPercent = MathUtils.constrain((int) ((usedBytes * 100) / totalBytes), in setPercent()
|
D | TopLevelStoragePreferenceController.java | 66 final double privateUsedBytes = info.totalBytes - info.freeBytes; in refreshSummaryThread() 70 percentageFormat.format(privateUsedBytes / info.totalBytes), in refreshSummaryThread()
|
D | StorageCategoryFragment.java | 197 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes() 200 mPreferenceController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes() 205 userController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
|
D | StorageDashboardFragment.java | 368 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes() 371 mPreferenceController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes() 376 userController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferAdapter.java | 101 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in bindView() local 111 Formatter.formatFileSize(mContext, totalBytes)); in bindView() 114 Formatter.formatFileSize(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 | 307 public static String formatProgressText(long totalBytes, long currentBytes) { in formatProgressText() argument 311 if (totalBytes > 0) { in formatProgressText() 312 percent = currentBytes / (double) totalBytes; in formatProgressText()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadInfo.java | 308 public int getRequiredNetworkType(long totalBytes) { in getRequiredNetworkType() argument 315 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) { in getRequiredNetworkType() 318 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile() in getRequiredNetworkType() 376 public boolean isMeteredAllowed(long totalBytes) { in isMeteredAllowed() argument 377 return getRequiredNetworkType(totalBytes) != JobInfo.NETWORK_TYPE_UNMETERED; in isMeteredAllowed()
|
D | DownloadNotifier.java | 302 final long totalBytes = cursor.getLong(UpdateQuery.TOTAL_BYTES); in updateWithLocked() local 304 if (totalBytes != -1) { in updateWithLocked() 306 total += totalBytes; in updateWithLocked()
|
/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/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageSettingsManager.java | 97 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes() 100 mPrivateStorageInfo.totalBytes); in onReceivedSizes()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | LowStorageSlice.java | 63 final double usedPercentage = (double) (info.totalBytes - info.freeBytes) / info.totalBytes; in getSlice()
|
/packages/services/Car/cpp/evs/sampleDriver/ |
D | bufferCopy.cpp | 53 const unsigned totalBytes = sizeY + sizeColor; in fillNV21FromNV21() local 56 memcpy(tgt, imgData, totalBytes); in fillNV21FromNV21()
|
/packages/modules/adb/client/ |
D | incremental_server.cpp | 522 auto totalBytes = sizeof(ChunkHeader) + dataBytes; in Flush() local 523 if (!WriteFdExactly(adb_fd_, pendingBlocksBuffer_.data(), totalBytes)) { in Flush() 524 fprintf(stderr, "Failed to write %d bytes\n", int(totalBytes)); in Flush() 526 sentSize_ += totalBytes; in Flush()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/ |
D | TunerRecordingSessionWorker.java | 594 long totalBytes, in insertRecordedProgram() argument 602 values.put(RecordedPrograms.COLUMN_RECORDING_DATA_BYTES, totalBytes); in insertRecordedProgram() 619 private void updateRecordedProgramStateFinished(long endTime, long totalBytes) { in updateRecordedProgramStateFinished() argument 621 values.put(RecordedPrograms.COLUMN_RECORDING_DATA_BYTES, totalBytes); in updateRecordedProgramStateFinished()
|
D | TunerRecordingSessionWorkerExoV2.java | 597 long totalBytes, in insertRecordedProgram() argument 605 values.put(RecordedPrograms.COLUMN_RECORDING_DATA_BYTES, totalBytes); in insertRecordedProgram() 622 private void updateRecordedProgramStateFinished(long endTime, long totalBytes) { in updateRecordedProgramStateFinished() argument 624 values.put(RecordedPrograms.COLUMN_RECORDING_DATA_BYTES, totalBytes); in updateRecordedProgramStateFinished()
|
/packages/modules/StatsD/statsd/src/guardrail/ |
D | StatsdStats.h | 228 void noteDataDropped(const ConfigKey& key, const size_t totalBytes); 639 void noteDataDropped(const ConfigKey& key, const size_t totalBytes, int32_t timeSec);
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/ |
D | StorageAsyncLoaderTest.java | 158 assertThat(result.get(PRIMARY_USER_ID).externalStats.totalBytes).isEqualTo(9L); in testMultipleUsers() 159 assertThat(result.get(SECONDARY_USER_ID).externalStats.totalBytes).isEqualTo(10L); in testMultipleUsers()
|
D | VolumeSizesLoaderTest.java | 47 assertThat(storageInfo.totalBytes).isEqualTo(10000L); in getVolumeSize_getsValidSizes()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/ |
D | StorageAsyncLoaderTest.java | 158 assertThat(result.get(PRIMARY_USER_ID).getExternalStats().totalBytes).isEqualTo(9L); in testMultipleUsers() 159 assertThat(result.get(SECONDARY_USER_ID).getExternalStats().totalBytes).isEqualTo(10L); in testMultipleUsers()
|
D | VolumeSizesLoaderTest.java | 59 assertThat(storageInfo.totalBytes).isEqualTo(10000L); in getVolumeSize_getsValidSizes()
|