Home
last modified time | relevance | path

Searched refs:totalBytes (Results 1 – 25 of 34) sorted by relevance

12

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java177 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/
DAppDataUsagePreferenceController.java117 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/
DDumpDatabaseAction.java65 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/
DPublicVolumeSettings.java161 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()
DStorageSummaryPreference.java41 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument
42 mPercent = MathUtils.constrain((int) ((usedBytes * 100) / totalBytes), in setPercent()
DTopLevelStoragePreferenceController.java66 final double privateUsedBytes = info.totalBytes - info.freeBytes; in refreshSummaryThread()
70 percentageFormat.format(privateUsedBytes / info.totalBytes), in refreshSummaryThread()
DStorageCategoryFragment.java197 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
200 mPreferenceController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
205 userController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
DStorageDashboardFragment.java368 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/
DBluetoothOppTransferAdapter.java101 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()
DBluetoothOppShareInfo.java73 long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) { in BluetoothOppShareInfo() argument
84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
DBluetoothOppUtility.java307 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/
DDownloadInfo.java308 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()
DDownloadNotifier.java302 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/
DManageCachePage.java368 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/
DStorageSettingsManager.java97 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes()
100 mPrivateStorageInfo.totalBytes); in onReceivedSizes()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DLowStorageSlice.java63 final double usedPercentage = (double) (info.totalBytes - info.freeBytes) / info.totalBytes; in getSlice()
/packages/services/Car/cpp/evs/sampleDriver/
DbufferCopy.cpp53 const unsigned totalBytes = sizeY + sizeColor; in fillNV21FromNV21() local
56 memcpy(tgt, imgData, totalBytes); in fillNV21FromNV21()
/packages/modules/adb/client/
Dincremental_server.cpp522 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/
DTunerRecordingSessionWorker.java594 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()
DTunerRecordingSessionWorkerExoV2.java597 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/
DStatsdStats.h228 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/
DStorageAsyncLoaderTest.java158 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()
DVolumeSizesLoaderTest.java47 assertThat(storageInfo.totalBytes).isEqualTo(10000L); in getVolumeSize_getsValidSizes()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java158 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()
DVolumeSizesLoaderTest.java59 assertThat(storageInfo.totalBytes).isEqualTo(10000L); in getVolumeSize_getsValidSizes()

12